]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: TLS, Do not expose FPGA TLS counter if not supported
authorTariq Toukan <tariqt@mellanox.com>
Sun, 28 Jun 2020 10:06:06 +0000 (13:06 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 22 Sep 2020 00:22:24 +0000 (17:22 -0700)
commita947e32ff19cd2b8fc0bf1693c5a1b0c7775b0a8
tree1a2504140a3c36f12c01cdafbc61e14fe3fdf1a9
parentc22d202e38d0a3b30cfc1b007adc4356b008d620
net/mlx5e: TLS, Do not expose FPGA TLS counter if not supported

The set of TLS TX global SW counters in mlx5e_tls_sw_stats_desc
is updated from all rings by using atomic ops.
This set of stats is used only in the FPGA TLS use case, not in
the Connect-X TLS one, where regular per-ring counters are used.

Do not expose them in the Connect-X use case, as this would cause
counter duplication. For example, tx_tls_drop_no_sync_data would
appear twice in the ethtool stats.

Fixes: 3e985319cc11 ("net/mlx5e: Add kTLS TX HW offload support")
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Reviewed-by: Moshe Shemesh <moshe@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/tls_stats.c