1
0
Fork 0
alistair23-linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel
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
..
en_accel.h net/mlx5e: Move helper functions to a new txrx datapath header 2019-07-05 16:29:19 -07:00
ipsec.c net/mlx5: IPSec, Add support for ESN 2018-03-07 15:54:36 -08:00
ipsec.h net/mlx5e: Move defines out of ipsec code 2018-05-01 09:42:47 -04:00
ipsec_rxtx.c net/mlx5e: Take SW parser code to a separate function 2019-03-22 12:09:31 -07:00
ipsec_rxtx.h net/mlx5e: Move helper functions to a new txrx datapath header 2019-07-05 16:29:19 -07:00
ipsec_stats.c net/mlx5e: IPSec, Add IPSec ethtool stats 2017-06-27 16:36:48 +03:00
ktls.c net/mlx5e: kTLS, Destroy key object after destroying the TIS 2020-06-03 08:21:03 +02:00
ktls.h net/mlx5e: kTLS, Fix wrong value in record tracker enum 2020-04-08 09:08:44 +02:00
ktls_tx.c net/mlx5e: kTLS, Fix TCP seq off-by-1 issue in TX resync flow 2020-04-08 09:08:40 +02:00
tls.c mlx5: Return -EINVAL when WARN_ON_ONCE triggers in mlx5e_tls_resync(). 2019-07-09 21:35:08 -07:00
tls.h net/mlx5e: Add kTLS TX HW offload support 2019-07-05 16:29:20 -07:00
tls_rxtx.c net/mlx5: Deprecate usage of generic TLS HW capability bit 2020-02-11 04:35:51 -08:00
tls_rxtx.h net/mlx5e: Move helper functions to a new txrx datapath header 2019-07-05 16:29:19 -07:00
tls_stats.c net/mlx5e: TLS, Do not expose FPGA TLS counter if not supported 2020-09-26 18:03:14 +02:00