Received: by 2002:a05:7412:da14:b0:e2:908c:2ebd with SMTP id fe20csp2358240rdb; Tue, 10 Oct 2023 01:10:05 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHkLn4n7o+K+4Q2ZgBe9A2qDxrwXK56V7ijZYMNTxs7R0Wp1b9ArxtL6SzPt9RPzAPp56z0 X-Received: by 2002:a05:6a20:5490:b0:13d:8876:4c97 with SMTP id i16-20020a056a20549000b0013d88764c97mr18401010pzk.16.1696925405153; Tue, 10 Oct 2023 01:10:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1696925405; cv=none; d=google.com; s=arc-20160816; b=OtQjOf5/wD4btZ98HAh191GnofXUQOPsnfLZRJSnkNMP2K159ybQaVkU5rm7B/pLOm Cwq1N7uVMnrYDB+jT+YNfJxeSiLVw9Q+vqadf7ZABjLLiHq98OQSqzeJLN2BlVjKXHdx DMzcd+wVH9T6HsRmNHEIdGvKfvuzZL1G7hj3otuZLpZ21cPyi+4GjQ8E3pmi3CvDWRnn gQcJjN7tl/VdYBvk2F+XmFNJnTDnc5C+e/0WcacmICxAyMuptJ99lwCLHgfD9JJEETAO KexKtsKn3wHRAShqTARDZ/nkZw+9FEZ9nNiInSCGnsaKg3FuhaGGVJHIaLn/R1WuIzmq imww== 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; bh=bpy3d04rFTWNBg3E2pXkEfGWiQS4VkTh6ejvZAbinik=; fh=hftoqiFzzSdQeiobux/RNxLTQNScCdVvWFOR6bgbJ1Q=; b=buekARUBH7Rm/5j+tSFKPDraX3F+pk3cPXP1i9qoKIuLKR4lgtV5e6pQqusKoPrZM6 lKvGk7yTArUn5RhSQGRgsJ3xps6CjUd38J7ljjl1LvQt91ZxrgVLTmdKWgDjIVrgDQfw /cvSoQcINUByTsdEEp0zTPHB8gvtY5G4c+AdaxhjJYQLjsiV1C1xpH4wAPAgcCydvfo+ rYFUjwS6SNoD6QItrlS+ddI41FOgFh7irpBtnBy91WQSq/1zo6RfMwwU7IQOP5Ym+NhF 3aJ4sySUuL/l2FPcjsJikRJYU3foWAvifFve3UuSCUGvcF6RGYWfeZlcMRmUvU//8kne O8mw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from howler.vger.email (howler.vger.email. [2620:137:e000::3:4]) by mx.google.com with ESMTPS id f5-20020a170902684500b001bbcb3d9265si11030371pln.68.2023.10.10.01.10.04 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Oct 2023 01:10:05 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) client-ip=2620:137:e000::3:4; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:4 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by howler.vger.email (Postfix) with ESMTP id DA647802CFA2; Tue, 10 Oct 2023 01:10:02 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at howler.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1346697AbjJJIJo (ORCPT + 99 others); Tue, 10 Oct 2023 04:09:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34348 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1346712AbjJJIJn (ORCPT ); Tue, 10 Oct 2023 04:09:43 -0400 Received: from us-smtp-delivery-44.mimecast.com (us-smtp-delivery-44.mimecast.com [205.139.111.44]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 53D2FB8 for ; Tue, 10 Oct 2023 01:09:41 -0700 (PDT) Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-288-qRlSN9UqOC2zM01Za9DlmA-1; Tue, 10 Oct 2023 04:09:32 -0400 X-MC-Unique: qRlSN9UqOC2zM01Za9DlmA-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id A86F3185A79B; Tue, 10 Oct 2023 08:09:30 +0000 (UTC) Received: from hog (unknown [10.45.225.250]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 83FF8400F36; Tue, 10 Oct 2023 08:09:26 +0000 (UTC) Date: Tue, 10 Oct 2023 10:09:24 +0200 From: Sabrina Dubroca To: "Radu Pirea (NXP OSS)" Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-rdma@vger.kernel.org, sgoutham@marvell.com, gakula@marvell.com, sbhatta@marvell.com, hkelam@marvell.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, borisp@nvidia.com, saeedm@nvidia.com, leon@kernel.org, andrew@lunn.ch, hkallweit1@gmail.com, linux@armlinux.org.uk, richardcochran@gmail.com, sebastian.tobuschat@oss.nxp.com, phaddad@nvidia.com, ehakim@nvidia.com, raeds@nvidia.com, atenart@kernel.org Subject: Re: [PATCH net v7 0/4] Add update_pn flag Message-ID: References: <20231005180636.672791-1-radu-nicolae.pirea@oss.nxp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20231005180636.672791-1-radu-nicolae.pirea@oss.nxp.com> X-Scanned-By: MIMEDefang 3.1 on 10.11.54.10 X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on howler.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (howler.vger.email [0.0.0.0]); Tue, 10 Oct 2023 01:10:03 -0700 (PDT) X-Spam-Level: ** 2023-10-05, 21:06:32 +0300, Radu Pirea (NXP OSS) wrote: > Patches extracted from > https://lore.kernel.org/all/20230928084430.1882670-1-radu-nicolae.pirea@oss.nxp.com/ > Update_pn flag will let the offloaded MACsec implementations to know when > the PN is updated. > > Radu P. > > Radu Pirea (NXP OSS) (4): > net: macsec: indicate next pn update when offloading > octeontx2-pf: mcs: update PN only when update_pn is true > net: phy: mscc: macsec: reject PN update requests > net/mlx5e: macsec: use update_pn flag instead of PN comparation Thanks Radu! For the series: Reviewed-by: Sabrina Dubroca While reviewing this, I noticed that octeon can leave the HW in an inconsistent state during upd_txsa and upd_rxsa: these ops do 2 separate changes that can both fail, and if the 2nd change fails, we don't roll back the first change. This is an older issue (not introduced by this patch) and can be looked at later (I don't know what happens to the HW and why setting the PN would fail, maybe it's not recoverable at that point). -- Sabrina