Skip to content
Commit 452e34d6 authored by Oz Shlomo's avatar Oz Shlomo Committed by Greg Kroah-Hartman
Browse files

net/mlx5e: CT: Use per flow counter when CT flow accounting is enabled

[ Upstream commit eed38eee ]

Connection counters may be shared for both directions when the counter
is used for connection aging purposes. However, if TC flow
accounting is enabled then a unique counter is required per direction.

Instantiate a unique counter per direction if the conntrack accounting
extension is enabled. Use a shared counter when the connection accounting
extension is disabled.

Fixes: 1edae233

 ("net/mlx5e: CT: Use the same counter for both directions")
Signed-off-by: default avatarOz Shlomo <ozsh@nvidia.com>
Reported-by: default avatarMarcelo Ricardo Leitner <marcelo.leitner@gmail.com>
Reviewed-by: default avatarRoi Dayan <roid@nvidia.com>
Reviewed-by: default avatarPaul Blakey <paulb@nvidia.com>
Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 518606a8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment