net/mlx5e: Fix missing IPsec statistics on uplink representor
authorRaed Salem <raeds@nvidia.com>
Thu, 8 Jul 2021 09:48:24 +0000 (12:48 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Dec 2021 08:04:52 +0000 (09:04 +0100)
commit1adc4914a0dae51331411d938ae8dd41987a6512
tree526afbe911901f943f3ff98a03f6eccbe08e6b0f
parentc4db545992ad89d1bf8181e2af1e37fff250433c
net/mlx5e: Fix missing IPsec statistics on uplink representor

[ Upstream commit 51ebf5db67f5c6aed79c05f1aa5137bdf5ca6614 ]

The cited patch added the IPsec support to uplink representor, however
as uplink representors have his private statistics where IPsec stats
is not part of it, that effectively makes IPsec stats hidden when uplink
representor stats queried.

Resolve by adding IPsec stats to uplink representor private statistics.

Fixes: 5589b8f1a2c7 ("net/mlx5e: Add IPsec support to uplink representor")
Signed-off-by: Raed Salem <raeds@nvidia.com>
Reviewed-by: Alaa Hleihel <alaa@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/mellanox/mlx5/core/en_rep.c