1
0
Fork 0
alistair23-linux/drivers/net/ethernet/mellanox
Tariq Toukan 1ee92ea9a1 net/mlx5e: TLS, Do not expose FPGA TLS counter if not supported
[ Upstream commit 8f0bcd19b1 ]

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: d2ead1f360 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-09-26 18:03:14 +02:00
..
mlx4 net: ethernet: mlx4: Fix memory allocation in mlx4_buddy_init() 2020-09-09 19:12:27 +02:00
mlx5/core net/mlx5e: TLS, Do not expose FPGA TLS counter if not supported 2020-09-26 18:03:14 +02:00
mlxfw net/mlxfw: Fix out-of-memory error in mfa2 flash burning 2020-01-04 19:18:44 +01:00
mlxsw mlxsw: core: Free EMAD transactions using kfree_rcu() 2020-08-05 09:59:48 +02:00
Kconfig treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00