Received: by 2002:a05:7412:3784:b0:e2:908c:2ebd with SMTP id jk4csp2792602rdb; Wed, 4 Oct 2023 11:31:16 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFNORs++lmHONvJ9Fl3DeYnzCcTbJlxSFGB/baEAhdOJDLXRw8hYqmAfVERdJdPjz6CnnUB X-Received: by 2002:a05:6a20:8e01:b0:161:346a:e7a1 with SMTP id y1-20020a056a208e0100b00161346ae7a1mr605156pzj.5.1696444275987; Wed, 04 Oct 2023 11:31:15 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1696444275; cv=pass; d=google.com; s=arc-20160816; b=Bp7nEwHf7FPc+sBx1CzEm3d8Lyyv1icHCKDS1P76jzDeqk5yFJ8C9FLhTfiGBxmg60 bferNMiJvf8oQ30O2wLzEeICJ9uPTF89bf70jp2qo+OihCKEXYwVge3dLf12HVJhV7SR IprLok4yJ+9ksaPHGwoeBbw5F3ecXXmzd8wiHlbHIXK9deQ5W6KqCobnBN26oYhO0WUv 7wA0LOgWbAjsbUphYWXYQOVwLSYVGszHQiq+YE4PXOhdtmgwdIXOQjPoq1xLSn0m00Hf +1TivHp730HsZ41UgOj8eW71jwB95DBf/rfT0HDoAFJ5uiAkITMJTkNfDwpZVYRyXyb0 UUaA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:from:content-language:references:cc:to:subject :user-agent:date:message-id:dkim-signature; bh=BuJJ9Y7ghNEgezJivFXHCJBEQv/EBcGYAdOjNfx+ssk=; fh=09bN7xzHJfT3Ed7jkn2jC39ECAvtsD68E5K153uxHZw=; b=pWbVC9tQpyXpsUYroEmmXA98Gc0kaBb9cRnPn2rVTUhHZlj9o14l3NCSUbPYgWoX4S 5eXSzffJUM4tiAyiRoGRKZsAn1oR1eroTGWZSCyOjCFCNR0RVnr6rPOt7pxeGXO7Vmnr doJ6Si0KI3znIWRY6H3XLEHY09Jj9Zsdqibr1SPHQ1jQMbewx6MCGhpv4rmIVzxpQs85 JoN7bOc8WhMlOTZwrWGMa+2nAy6rVnd+WMeHO+VuAJ3Pli+8mP8F6lRk23AKg4M1Jeha uPzoHG7hRR8OB/tcczOVZZDXFp9a6MuOdNEr4LR7ezIu82ZkO084D8P2QoYHUXQe+PX5 GTTQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=BbzPlc4R; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: Received: from groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id bs125-20020a632883000000b00578cbee11easi4159153pgb.9.2023.10.04.11.31.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 04 Oct 2023 11:31:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@NXP1.onmicrosoft.com header.s=selector2-NXP1-onmicrosoft-com header.b=BbzPlc4R; arc=pass (i=1 spf=pass spfdomain=oss.nxp.com dkim=pass dkdomain=oss.nxp.com dmarc=pass fromdomain=oss.nxp.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id 4D944828788D; Wed, 4 Oct 2023 11:31:06 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244315AbjJDSah (ORCPT + 99 others); Wed, 4 Oct 2023 14:30:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244314AbjJDSaf (ORCPT ); Wed, 4 Oct 2023 14:30:35 -0400 Received: from EUR03-AM7-obe.outbound.protection.outlook.com (mail-am7eur03on2085.outbound.protection.outlook.com [40.107.105.85]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 08F8DC0; Wed, 4 Oct 2023 11:30:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=SYTyXqOFR4IB/0KgRcWGGKf1oGWo/WZrw+AEgmBBGwDbvPEm8K+hxvFb4mB0ZxEbaFf4zRBKw939QXlbQpSPsKuF4uXQTyvoikUjg9ceIvsrTOYv7TDKSdc1UYuEc1R5B53iVq6yVowCenXEhh0+JTzZ7vnOSNIalrj5l1CjLMqUNtmrVswq1737XmFw4yylyfkrFL98rNavp+MzNb0yRWxOoziQFR28EEtAe/fc+VJyT/20FIsEwTGBSFRVPTlCedQ8HgHG+w1cbFC84TZFrH1QvSq5Oelnm4xRyeQwefVAR1EVRQhT8/eIFBwm+uSiie6kuis9G6FDTIf9O1sN8Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=BuJJ9Y7ghNEgezJivFXHCJBEQv/EBcGYAdOjNfx+ssk=; b=MX3HIcPF/Gzsv48KvguDcdxZZ+YATHp+eBq+VXdqeG7YEWwUtc2r5pkG+NtRvkn/gGQVNv+O+/JY3jBuHZE8kE2KU8qmT0GLfdsYMKTxxRETB5BiPxLFOSvS6VAUpr4IF3tV3rCXDULDGAFgBH2tFDmEfWrBux3QfCmz4P0ey7b+TsGf7mCC/xRO0xV6ZM8PbDdP2jeQH4PNDz5W5XYQrd9RNVRmBVMXTbv5IdONGYWcle/tp8FPauluZ/us4EXOPlyZknG0fphg36id1YffYr40QaqP26dqKl2xEZBCFX1t/NA/D2pPxkRpqlO25W1nasHFc4/57Wx8Iuo5evP1jg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oss.nxp.com; dmarc=pass action=none header.from=oss.nxp.com; dkim=pass header.d=oss.nxp.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=NXP1.onmicrosoft.com; s=selector2-NXP1-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=BuJJ9Y7ghNEgezJivFXHCJBEQv/EBcGYAdOjNfx+ssk=; b=BbzPlc4R2mGpKY4trF1XtHKN2uBRR3BAKRzkpZ+0hQpDBE/Ras20Ugcv+WebNLzHyYwbiRCW/bntsfKH1FnsLzxnA++Mv92Yl9C6l08apAkaEfr2/Z5Qd2oSZ8tqa+8+ZgVdPVx9EvtW/zmZtHO7rYpxpmDyzNkPdqWd2xEyz1I= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=oss.nxp.com; Received: from AM9PR04MB8954.eurprd04.prod.outlook.com (2603:10a6:20b:409::7) by AM8PR04MB7971.eurprd04.prod.outlook.com (2603:10a6:20b:234::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.33; Wed, 4 Oct 2023 18:30:28 +0000 Received: from AM9PR04MB8954.eurprd04.prod.outlook.com ([fe80::e109:7026:7d76:5617]) by AM9PR04MB8954.eurprd04.prod.outlook.com ([fe80::e109:7026:7d76:5617%7]) with mapi id 15.20.6838.033; Wed, 4 Oct 2023 18:30:28 +0000 Message-ID: Date: Wed, 4 Oct 2023 21:30:24 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: [PATCH net-next v6 05/10] octeontx2-pf: mcs: update PN only when update_pn is true To: Sabrina Dubroca Cc: 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, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, linux-rdma@vger.kernel.org References: <20230928084430.1882670-1-radu-nicolae.pirea@oss.nxp.com> <20230928084430.1882670-6-radu-nicolae.pirea@oss.nxp.com> Content-Language: en-US From: "Radu Pirea (OSS)" In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: AM0PR10CA0086.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:208:15::39) To AM9PR04MB8954.eurprd04.prod.outlook.com (2603:10a6:20b:409::7) MIME-Version: 1.0 X-MS-Exchange-MessageSentRepresentingType: 1 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM9PR04MB8954:EE_|AM8PR04MB7971:EE_ X-MS-Office365-Filtering-Correlation-Id: 6386674b-eafd-4a9b-3f61-08dbc507fb60 X-MS-Exchange-SharedMailbox-RoutingAgent-Processed: True X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iWL1bovQ3bfICoZulOUZYt2eCeM/iYV3SyjB/6q22mQieGNtUHRmGj0QbE7hztP/3sIxMvcWdDjHOVqtaOy8YPMZlg3VeP2A4MrWom1od7BzCLaCKdiMY5pjtYOFkexsc0V3A7iBIWqYe+aQqeFwClfNYEdoijbunSC/pxyC9GNJYEo+22okQkzlF6Dpb14xp2Vs4RbJ7W5kROCk5GcuPUya7Mu64uq3jfg9mUVm2riEr9pneQDzijFlzSpORgzljeBmfxsyjEVfyn1G3tde0D/p2hth2WjkxeZ9RWNuMDfz2nKrLzI/PNIPjtaN0qMifgNNgqSUT9NYBtp2I4HDhcLXItYg0z1ClPSuWHaEVmkiwUKgVhuCKAHCHH/Zo0bSg3+B8SxGbyE0CdPo01qM3Zj94TGSHCfLL3pTt/gCDuq52SNL9poDS0QOQngH236AJ/GVK0XhDSFncAReZ6fEzFqN4vGBDfauZ+Sm5nffdLVkcDMIhJ+qsNUkUgYxdxPFsaxDa/nUzm45hdRwYbbrHEj/XRU4EK69CzeL4aH/iMuy0rumIIjL+4O3TRPVyOMGbTEhRxc4G2I/dwrkoo3ngpnzZUMKAEA0TyepLVVLEsGwT5cl/WFiKj+TlrJKhWLoOCXivEJ3SKa0fJN78jEkcw== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR04MB8954.eurprd04.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(366004)(39860400002)(136003)(346002)(396003)(376002)(230922051799003)(64100799003)(451199024)(1800799009)(186009)(31686004)(4326008)(15650500001)(31696002)(26005)(86362001)(8676002)(5660300002)(4744005)(53546011)(2616005)(6666004)(8936002)(6506007)(6512007)(7416002)(83380400001)(66946007)(38100700002)(316002)(6486002)(2906002)(66476007)(41300700001)(478600001)(6916009)(66556008)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?UWRkbzBnRW1JbVZSS0tpWStJSzNiUWFvZjVLakM5KytuMytNRTB2N0Z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B3U3oyTDU1UGd4YjdlN2pWREFW?= =?utf-8?B?SHhUSmt6cyt1eU93bVAzSGpTZlU2TjIrM0NKNFBhaG03UmM5K0E0ckp6dm14?= =?utf-8?B?T3ZaUi9WUEREbWdiSFBxMDNIK3YydXV6MnVwdWxwWmtnSUgyZTdtNzhNOWVq?= =?utf-8?B?aVdHdFpYNzRXS0NGVVZ4eFpiVWhUMVdIWkRjcUZYL0hpcEFPUTVVVGphRVVX?= =?utf-8?B?TDlTVEh5MmhFUGk3dmtKbVRhaFRJZHpuNC95MU45QVUrSTNUMzZrMWtxSnp4?= =?utf-8?B?aDVkazVwR1NmMlNXZmpDczI4QWJQWm0za3pwSVR1d29vMW80TmN0ck9IU25K?= =?utf-8?B?akE9PQ==?= X-OriginatorOrg: oss.nxp.com X-MS-Exchange-CrossTenant-Network-Message-Id: 6386674b-eafd-4a9b-3f61-08dbc507fb60 X-MS-Exchange-CrossTenant-AuthSource: AM9PR04MB8954.eurprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Oct 2023 18:30:28.1257 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9iJ12EPwa6MKwdabhcua6iW4JgXyl7+hqn/4G51L3nr8olbFzyDRpQ8RECJe5TZdBO9df2f3bPmKQdjW7F49g8WrzNwUiQLZB48juI9sdf0= X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8PR04MB7971 X-Spam-Status: No, score=1.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, 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 groat.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 (groat.vger.email [0.0.0.0]); Wed, 04 Oct 2023 11:31:06 -0700 (PDT) X-Spam-Level: * On 03.10.2023 16:15, Sabrina Dubroca wrote: > 2023-09-28, 11:44:25 +0300, Radu Pirea (NXP OSS) wrote: >> When updating SA, update the PN only when the update_pn flag is true. >> Otherwise, the PN will be reset to its previous value. > > This is a bugfix and should go through the net tree with a Fixes > tag. I'd suggest taking patches 3,5,6 out of this series and > submitting them all to net, with a Fixes tag for patches 5 and > 6. Patch 7 doesn't fix a bug and could go through the net-next tree. > Patch 7 does not look like a bug fix, but it is. Without patch 7 a user will be able to update the SA using the initial PN value like this: ip link add link eth0 macsec0 type macsec encrypt on offload phy ip macsec add macsec0 tx sa 0 pn 1 on key 00 ead3664f508eb06c40ac7104cdae4ce5 ip macsec set macsec0 tx sa 0 pn 1 off #this command does not fail, but it should -- Radu P.