]> git.baikalelectronics.ru Git - 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)
commitf11a9363d0f3cf7241a0f210df623f8e1dfbd2f4
treed6733cdb313bc41e618d93756c213022e36af5e5
parentb86e81f0ffb511835b8cb83ff33c495490eabd6b
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