]> 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)
commit01cf073d47926594ddeed486d288a15d6ac5130a
treec93facca8800961adc751622aa55642b796d65fd
parente56ee8a66d08d5f7e22bc04f41556328e636164d
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