]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
net/mlx5e: CT: Use the same counter for both directions
authorOz Shlomo <ozsh@mellanox.com>
Sun, 19 Jul 2020 13:51:39 +0000 (13:51 +0000)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 23 Sep 2020 22:44:37 +0000 (15:44 -0700)
commit1edae2335adfa7006853e8b427f0c7c3f46b51dd
treed6733cdb313bc41e618d93756c213022e36af5e5
parentaedd133d17bcee184d3da35f4c808684fae94268
net/mlx5e: CT: Use the same counter for both directions

A connection is represented by two 5-tuple entries, one for each direction.
Currently, each direction allocates its own hw counter, which is
inefficient as ct aging is managed per connection.

Share the counter that was allocated for the original direction with the
reverse direction.

Signed-off-by: Oz Shlomo <ozsh@mellanox.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c