Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4647785rwr; Sun, 23 Apr 2023 09:54:53 -0700 (PDT) X-Google-Smtp-Source: AKy350b36mhSw09KaeCPjUNRabkQ8bUQ01ozu9GLx5Qn0STxiJaMNpqYZWOM6CFW0MUwZ2yl9zyR X-Received: by 2002:a05:6a00:ac2:b0:63f:1c78:4049 with SMTP id c2-20020a056a000ac200b0063f1c784049mr10812435pfl.31.1682268893509; Sun, 23 Apr 2023 09:54:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682268893; cv=none; d=google.com; s=arc-20160816; b=mnFVodc0alHWlqyWH/vHC5RZXD4bI3h9HANinEPQbxAjSLmvoKvPeXPX0FA9fIqeCp yHJcCjtyVeYMCONUTnMgZ1Lop3F9foLSj96kXhQyArBvBILhzRNAy+aW4hAIH6+v+oAW pjyupNnlPjL6UIW8Z4Gf13cmG5v5RoVKH+hj6VCWTKys3HxNbrOLajR8Qa+V3GcWPJeu BlOE62G9ZW8XmEL8+NC4a4vxhMs9uplS8OGEEYczR0V4x7P5i9BEKB3oDguDsgKRe5eT 94CJ9na55PLSMLK2AmTdd4yzfSz39FPL2jiS+oEGD5hiil30KYVVapUCmD6QbG919EAZ Ujnw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=oeMrKzrwUKZU9jGU/3o+SMA/MOCzsS159XdA7XPhy4E=; b=Ah1cHgOEobMnYn0vgbJsujYr1kzt7MduSfrYC1dFkUCCgAD/XT23Qy/2hUQs4MppGp kSmhzUfYU5CKNznVSh6ZROxJlvsw3nyYBjn39zyj/+nL2cS7gbMzbxTSkGZW+AzsYA9s LK/ScSxzwBh5+9sfnLzkYRcQcYnB39CMuw/R0OidIDry7jB/e9BGuEMk9xhx5rxtdOep GFQ1mYA1HJSNLeiXphVi97m6dxOQYTl544+ozi9a9LlgOzarGG9yMaL87FXM6ZkToysz i9+mEOOIoRF2QfF5VkYKHcX+2fHDugmq7SlJFybGet7zkT+o7r22i3q0C34n04cA1PX7 wffA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Jm365Slt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id n127-20020a632785000000b0051f0bd1b159si9779387pgn.718.2023.04.23.09.54.40; Sun, 23 Apr 2023 09:54:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Jm365Slt; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229948AbjDWQyO (ORCPT + 99 others); Sun, 23 Apr 2023 12:54:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58370 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229498AbjDWQyN (ORCPT ); Sun, 23 Apr 2023 12:54:13 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 66E76A9; Sun, 23 Apr 2023 09:54:12 -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 0221A60F3C; Sun, 23 Apr 2023 16:54:12 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 91619C433EF; Sun, 23 Apr 2023 16:54:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682268851; bh=ZHXHcKFir9ese6yx57EHTb9UfLzqVJtvlvdJ+/3tNgc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Jm365Sltz48dLVFDx6u89cQn5lwDLgfQgaqBsYrs5cKUadu7z5tDGKUQVvgq5oYfp n9FpYVbGxvGfrQjbtAuouq5Xi3UqZYPXzd/Yweu8wTLcP2DW0BihNdQJS2TivID3yv eiU6yiYDPoEmQEvUuJCTZ4nFSpeEO4qfXkIqPYCu1AdFWwlWG3wIXJzZi12S3wx5X8 C5nx19tsDKjuysZOgUrW8/FHlCvC49CHWLJsBtF9NQbO8N8WKIMyBYXssG+JFEAFpL VHToELOXPY03Scci+1b7Up/hxeX32g86QiVitRHj5LytLb57l/6/LF82Q7HQOr2ur6 obfv8BwAmhOJg== Date: Sun, 23 Apr 2023 19:54:06 +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 7/9] octeontx2-pf: mcs: Clear stats before freeing resource Message-ID: <20230423165406.GJ4782@unreal> References: <20230423095454.21049-1-gakula@marvell.com> <20230423095454.21049-8-gakula@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230423095454.21049-8-gakula@marvell.com> X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sun, Apr 23, 2023 at 03:24:52PM +0530, Geetha sowjanya wrote: > From: Subbaraya Sundeep > > When freeing MCS hardware resources like SecY, SC and > SA the corresponding stats needs to be cleared. Otherwise > previous stats are shown in newly created macsec interfaces. > > Fixes: c54ffc73601c ("octeontx2-pf: mcs: Introduce MACSEC hardware offloading") > Signed-off-by: Subbaraya Sundeep > Signed-off-by: Sunil Goutham > Signed-off-by: Geetha sowjanya > --- > .../net/ethernet/marvell/octeontx2/nic/cn10k_macsec.c | 9 +++++++++ > 1 file changed, 9 insertions(+) > Thanks, Reviewed-by: Leon Romanovsky