net/mlx5e: IPSec, Expose IPsec HW stat only for supporting HW
authorRaed Salem <raeds@mellanox.com>
Wed, 8 Jan 2020 09:48:37 +0000 (11:48 +0200)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 20 Apr 2020 21:20:19 +0000 (14:20 -0700)
commit0aab3e1b04aeeb5682c1ae7c862f107334ab79c0
treec93facca8800961adc751622aa55642b796d65fd
parent1dbd51d0a71a561056579e2d4f406e5ce5343af0
net/mlx5e: IPSec, Expose IPsec HW stat only for supporting HW

The current HW counters are supported only by Innova, split the ipsec
stats group into two groups, one for HW and one for SW. And expose
the HW counters to ethtool only if Innova HW is used for IPsec offload.

Signed-off-by: Raed Salem <raeds@mellanox.com>
Reviewed-by: Huy Nguyen <huyn@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.h
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec_stats.c
drivers/net/ethernet/mellanox/mlx5/core/en_stats.c
drivers/net/ethernet/mellanox/mlx5/core/en_stats.h