]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9d6805cdf421741c37a29778faf9b06f55c82936
treec93facca8800961adc751622aa55642b796d65fd
parent06817c994f10cdecd9a57daec9ccbe24ecc0d4e9
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