]> www.infradead.org Git - users/willy/xarray.git/commit
net/mlx5e: Present succeeded IPsec SA bytes and packet
authorLeon Romanovsky <leonro@nvidia.com>
Thu, 27 Jun 2024 18:02:39 +0000 (21:02 +0300)
committerDavid S. Miller <davem@davemloft.net>
Fri, 28 Jun 2024 11:58:11 +0000 (12:58 +0100)
commit2d9dac5559f8cc4318e6b0d3c5b71984f462620b
tree06184ef4be700fa09624e5f5f5825835604a6455
parent1da839eab6dbc26b95bfcd1ed1a4d1aaa5c144a3
net/mlx5e: Present succeeded IPsec SA bytes and packet

IPsec SA statistics presents successfully decrypted and encrypted
packet and bytes, and not total handled by this SA. So update the
calculation logic to take into account failures.

Fixes: 6fb7f9408779 ("net/mlx5e: Connect mlx5 IPsec statistics with XFRM core")
Signed-off-by: Leon Romanovsky <leonro@nvidia.com>
Signed-off-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/en_accel/ipsec.c