net/mlx5e: Connect mlx5 IPsec statistics with XFRM core
authorLeon Romanovsky <leonro@nvidia.com>
Wed, 4 Oct 2023 11:58:37 +0000 (14:58 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 6 Feb 2024 00:45:49 +0000 (16:45 -0800)
commit6fb7f9408779d5153430f207785628f3e16a85fc
tree6683fd809f7cc5aa97281b59dc906383e00ca343
parentf9f221c98fd83df518fbb2f5ad33980cfedfe1bf
net/mlx5e: Connect mlx5 IPsec statistics with XFRM core

Fill integrity, replay and bad trailer counters.

As an example, after simulating replay window attack with 5 packets:
[leonro@c ~]$ grep XfrmInStateSeqError /proc/net/xfrm_stat
XfrmInStateSeqError      5
[leonro@c ~]$ sudo ip -s x s
<...>
stats:
  replay-window 0 replay 5 failed 0

Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c