From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A6F61C77B60 for ; Sun, 23 Apr 2023 16:54:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230020AbjDWQyi (ORCPT ); Sun, 23 Apr 2023 12:54:38 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58878 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229648AbjDWQyh (ORCPT ); Sun, 23 Apr 2023 12:54:37 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4CF38194; Sun, 23 Apr 2023 09:54:32 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id DC28761B6C; Sun, 23 Apr 2023 16:54:31 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id BFF86C4339C; Sun, 23 Apr 2023 16:54:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682268871; bh=K2PCVDidtL1CIAzJLh0b8bsIdwltLgCArv73TTrbDdw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GlXDsiuVbzNrV6qH0kWLsqGQs8e++TbktYXjdD0Vs3NatP7IDvEygLhIYKs3O9ol7 7J3wT/W9Ba2XeP0eUPxtfu6OCAoihfsGrfNrHm2O/HZKgz6ScK1/YfTVIh/vNrKr1H zJGTACSUuHqG4j7a99RdUqjgyV7DwwPBbla9my3wnkzXLgzVyqN4WMpmXnD1om2Ux0 CVrQAWWXulowWbRFvYHXGxQrn4z943/bbUUn1PWm0qQqM67NoIXRuPJJxA/3tEH/ih BDzb7qmdmUpRHyMtberC6TkPu6HL1XNVU0gg8xZruacQ4p7iYOrW0+JKZvsS8T1LsD ElWJNj+pJbaJw== Date: Sun, 23 Apr 2023 19:54:27 +0300 From: Leon Romanovsky To: Geetha sowjanya Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, kuba@kernel.org, davem@davemloft.net, edumazet@google.com, pabeni@redhat.com, richardcochran@gmail.com, sgoutham@marvell.com, sbhatta@marvell.com, hkelam@marvell.com Subject: Re: [net PATCH 8/9] octeontx2-pf: mcs: Fix shared counters logic Message-ID: <20230423165427.GK4782@unreal> References: <20230423095454.21049-1-gakula@marvell.com> <20230423095454.21049-9-gakula@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230423095454.21049-9-gakula@marvell.com> Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Sun, Apr 23, 2023 at 03:24:53PM +0530, Geetha sowjanya wrote: > From: Subbaraya Sundeep > > Macsec stats like InPktsLate and InPktsDelayed share > same counter in hardware. If SecY replay_protect is true > then counter represents InPktsLate otherwise InPktsDelayed. > This mode change was tracked based on protect_frames > instead of replay_protect mistakenly. Similarly InPktsUnchecked > and InPktsOk share same counter and mode change was tracked > based on validate_check instead of validate_disabled. > This patch fixes those problems. > > Fixes: c54ffc73601c ("octeontx2-pf: mcs: Introduce MACSEC hardware offloading") > Signed-off-by: Subbaraya Sundeep > Signed-off-by: Sunil Goutham > Signed-off-by: Geetha sowjanya > --- > .../ethernet/marvell/octeontx2/nic/cn10k_macsec.c | 14 +++++++------- > .../ethernet/marvell/octeontx2/nic/otx2_common.h | 2 +- > 2 files changed, 8 insertions(+), 8 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky