Commit 6a32005f authored by Oz Shlomo's avatar Oz Shlomo Committed by Zheng Zengkai
Browse files

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



stable inclusion
from stable-5.10.9
commit 452e34d6635c9ccf73fd4759c881a487ff1cb73d
bugzilla: 47457

--------------------------------

[ 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>
Signed-off-by: default avatarChen Jun <chenjun102@huawei.com>
Acked-by: default avatarXie XiuQi <xiexiuqi@huawei.com>
parent e062cccc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment