From patchwork Mon Jul 31 11:28:23 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Leon Romanovsky X-Patchwork-Id: 13334449 X-Patchwork-Delegate: kuba@kernel.org Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A7E5718B0B for ; Mon, 31 Jul 2023 11:29:19 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 09CFBC433C9; Mon, 31 Jul 2023 11:29:18 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1690802959; bh=SaW4MwB1RnjJs/MSaB1lT7s1CsIRA3AGesDq2RNeABo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=UPoCtSj4Gl++jRtFTQK7hcHsalY7iYr18EPwYlMuJP0xJlgW1xCltICWBXkljlFgh WdhTpoAouJLAmsua7h/4ATs+AqF9+xoX8X5pkpt3I0qnqqip4JbKwBAfUVesBSZTrd 9+AjZDXi+pP4bRLdcOXMLDqqD1bpAbChm67sr61AK99XfdFq6AvOKRyLpz4nAufjhp MkSGr4gPdCXO5dmPCX3a3yLI5c5TVIAkHwbKhKAu1+HSGHWFSoI7AQaFOCPYxK16+w jRqyIML/ywKAtbsMHLT8dBqBexBFBdFoIwciIZlW4jiDvN+bHo+Gr9GmYg51SJ0pHy RkIj/HopXXCpw== From: Leon Romanovsky To: Jakub Kicinski Cc: Jianbo Liu , Steffen Klassert , Leon Romanovsky , Eric Dumazet , Mark Bloch , netdev@vger.kernel.org, Paolo Abeni , Saeed Mahameed , "David S . Miller" , Simon Horman Subject: [PATCH net-next v1 12/13] net/mlx5e: Add get IPsec offload stats for uplink representor Date: Mon, 31 Jul 2023 14:28:23 +0300 Message-ID: X-Mailer: git-send-email 2.41.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Patchwork-Delegate: kuba@kernel.org From: Jianbo Liu As IPsec offload is supported in switchdev mode, HW stats can be can be obtained from uplink rep. Signed-off-by: Jianbo Liu Signed-off-by: Leon Romanovsky --- drivers/net/ethernet/mellanox/mlx5/core/en_rep.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c index ca4f57f5064f..d2fed9615804 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_rep.c @@ -1338,6 +1338,7 @@ static mlx5e_stats_grp_t mlx5e_ul_rep_stats_grps[] = { &MLX5E_STATS_GRP(channels), &MLX5E_STATS_GRP(per_port_buff_congest), #ifdef CONFIG_MLX5_EN_IPSEC + &MLX5E_STATS_GRP(ipsec_hw), &MLX5E_STATS_GRP(ipsec_sw), #endif &MLX5E_STATS_GRP(ptp),