lkml.org 
[lkml]   [2021]   [Dec]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 5.15 162/207] net/mlx5e: Fix missing IPsec statistics on uplink representor
    Date
    From: Raed Salem <raeds@nvidia.com>

    [ 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 | 4 ++++
    1 file changed, 4 insertions(+)

    diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
    index 0684ac6699b2d..c100728c381cc 100644
    --- a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
    +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c
    @@ -1070,6 +1070,10 @@ static mlx5e_stats_grp_t mlx5e_ul_rep_stats_grps[] = {
    &MLX5E_STATS_GRP(pme),
    &MLX5E_STATS_GRP(channels),
    &MLX5E_STATS_GRP(per_port_buff_congest),
    +#ifdef CONFIG_MLX5_EN_IPSEC
    + &MLX5E_STATS_GRP(ipsec_sw),
    + &MLX5E_STATS_GRP(ipsec_hw),
    +#endif
    };

    static unsigned int mlx5e_ul_rep_stats_grps_num(struct mlx5e_priv *priv)
    --
    2.33.0


    \
     
     \ /
      Last update: 2021-12-06 17:11    [W:5.310 / U:0.524 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site