Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp4672778rwr; Sun, 23 Apr 2023 10:26:20 -0700 (PDT) X-Google-Smtp-Source: AKy350YeyBDO2nFvc71r8thVHAuGnaPoSlh8/3E0eupMdSLNw+/jm7/RrYV8lcLSQaJIjW/LsAdZ X-Received: by 2002:a05:6a00:2445:b0:63d:2333:84f8 with SMTP id d5-20020a056a00244500b0063d233384f8mr13247699pfj.6.1682270780682; Sun, 23 Apr 2023 10:26:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682270780; cv=none; d=google.com; s=arc-20160816; b=tiF5u17WIG15NoRD5AmFuw+8eL6wls14jlrhthmPFvynvsTUMf54YNpA/cdkiGiGgC a1COfqEy37FD+GYmHTnUPBmCfy48m1YTJTBfT+w4yjpfBM6AFcF9QMjwHX1ey7fKoONW puctHD3DayMG+LOB+eSVrPA7tRgDAScHlo+pHFpCn4VfOrhMWYcBFHS13AmzA5OYKvks TWiYGW0uvInJib0BuoBGsxBqIFMTU6OwhOg8HQ55k3+Z3aKCP+Jk53wKXPQoOY9tasKM 23hzTY2isU2fvpSbryigyLdZ1XWwn4fcx2VH5gl6H/IjsV09saJzF8DguhnZLW+A+e7N z0hQ== 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=N5KtZiHy2e9HiR3Q2eCjJaXLikS34jXmDC69fMBYh60=; b=p5T/WdTrGhuStazZ/PUxCQ9hD7ISREm1chjBwq0BwPxu7YXAFgNsI/9nJxdq8LCz1b xt3AA/Udf/WPlFnKnqfAdY1hpkKfjL/SY0pA6E0w77E8ont3KHdSisod55vzkqTzv2uQ NIpDDy9suTX90GrWU3+kVfg1Pj7rrvrUHvc85mfZiaNaxSRIm2gtnMvkGISjRxNhjgAV SLQFHBjM++4C2sYkzJ/WpC9DGT4eAh+wxdp9YAhNBkYodAF4RE4+1tsMO4JGkk7a37mb nAYvgpnVNP2e3DBdc2MOugoq1CBLGnPOk+Emn7E3wQD6nZZep1CfxKqe9he1Wp3GF5vQ D5Rw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=RnZl0NLU; 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 z19-20020a63e113000000b005138fd7f1cesi9642298pgh.89.2023.04.23.10.26.00; Sun, 23 Apr 2023 10:26:20 -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=RnZl0NLU; 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 S230020AbjDWQ4Y (ORCPT + 99 others); Sun, 23 Apr 2023 12:56:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59582 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229648AbjDWQ4W (ORCPT ); Sun, 23 Apr 2023 12:56:22 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8F59DA9; Sun, 23 Apr 2023 09:56:21 -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 29FA161B5A; Sun, 23 Apr 2023 16:56:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 084D9C433EF; Sun, 23 Apr 2023 16:56:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1682268980; bh=tx4DNa3+BuRipHchT7RV96Wl55IEGW7IECRqIdmmQi4=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=RnZl0NLU2mCHcsbnanZbmtVd+kJkGz0R6S6x3KXyuxEaig6VjdeWS3CpE/d0Li6d4 gSMVqygc6Ce0WMgomy+WJE1b4+szgdnjEjakP5Y+smNRxpcqOzNEXT2euTclazm3ix N37Am9yVPMSjT8vuXxNWr0TWCpgivLpsmmO+XEdvkveTa+L8eTnuoXqeIu6ygnd5JB EL+lrsefNzEBlzxLH1a/AyZAeStFLPWYK+z9woZz+mq0W+gMCsbvT+/Uuucb2hJphK d4ri+GeNV/JskosEh3CR4Q1U48pzITuZuzGufFWl64yO3qDnu9El10AbHnC5P4lo9s CdG4VurjlXF7Q== Date: Sun, 23 Apr 2023 19:56:16 +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 9/9] octeontx2-pf: mcs: Do not reset PN while updating secy Message-ID: <20230423165616.GL4782@unreal> References: <20230423095454.21049-1-gakula@marvell.com> <20230423095454.21049-10-gakula@marvell.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230423095454.21049-10-gakula@marvell.com> X-Spam-Status: No, score=-7.3 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, 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:54PM +0530, Geetha sowjanya wrote: > From: Subbaraya Sundeep > > After creating SecYs, SCs and SAs a SecY can be modified > to change attributes like validation mode, protect frames > mode etc. During this SecY update, packet number is reset to > initial user given value by mistake. Hence do not reset > PN when updating SecY parameters. > > 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 | 15 ++++++++++----- > 1 file changed, 10 insertions(+), 5 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky