From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6629E45CE3 for ; Mon, 11 Nov 2024 07:33:12 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 5EDB840685; Mon, 11 Nov 2024 07:33:12 +0100 (CET) Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2066.outbound.protection.outlook.com [40.107.92.66]) by mails.dpdk.org (Postfix) with ESMTP id F00E340685 for ; Mon, 11 Nov 2024 07:33:10 +0100 (CET) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=VsPnPS6m0N1mqgQFbiXSnYuhQAr96xLl+EgqagBcGTde6nynCy5IlkKxs038yt7puUbanKWha+Un7N7iQ+mv9jp+oqWrBEUxCD1IXZINf2l4d+AOghFUeWFRYfGql6qruxh55Yomd8agDFF61phB5SmEEGPGxGggJNHx118GjCliL8d82rceNnj/yQZVZOFfAhaV5F4zfE71vskLRHrOa25iX5CrcgT9+E6V1NF+e+1GCqbjPUqPw+go3lcPiberSXFFuChB/MWl1H2mE9V8RCdaN/kWsAuUuJ5T+w22svY1pvh8IwuSXvInBRRtyFi6+LVvjDRo1LqsKXfjR+snFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=FydKwrfve2U6py4usyh2l3WTbwIacb8I2o6j4BHXZoE=; b=w4K/nzNkBOwfQgKwCB3mEdTeHD6Dn41LTCFlfEUnSN1EXIyo09Z141zzNMRBGrDVy0QYSn1xgQolxpl7bN5/azCFGAMFaeUkV15UpZRmXffzF4oB7KBDan9mCRtH1Dqa1L0VbObhdbZfKL0v4fLtAMIsZK0mCPGjras+MZl+Q4S0ivwV8SwR+AyJ2wc72MY7vB5rAU1q+TMO3C/qfgmFi+0xFGu53ZYd/zss5eJxh1cNoHX4eqfvmrskWh1OO5rFrlY3lcHGjGxabIqEtImwLdfiiA6LNpTZY94l0tf2xgGGNrwbZHCxxbXWw6AvaxCi9u017Z5+JgoiZiq4BiKdIQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 216.228.117.160) smtp.rcpttodomain=marvell.com smtp.mailfrom=nvidia.com; dmarc=pass (p=reject sp=reject pct=100) action=none header.from=nvidia.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=FydKwrfve2U6py4usyh2l3WTbwIacb8I2o6j4BHXZoE=; b=g804kU8HGJrqXM98cbk8BPDg5+ds7nKC5udS1YUc5Fc1cXLTnh/P+9wB2WoOgZLKkSOIF4KNcaAPcheSIpqDAFUF1zG3Q4e0+KHZdWC3zLf12vCVGUl1Hs7AYSlaAeMfk0uIkn8X5c2wFazQcN2gNDVTTjznrEI3NKMr8Sa6oz+LF5UL5FPiFfsjxbCTNBi2qhc1bMBz5ZVOZaW5BVuFfjQvLNhgDRXGcetaRGxVpuiMYWD/ASod/ttRVz7ANyhCN5vMuY7GWQlBR1+DH8YPANsfSPoZQwLmnLtWsvHQ5yjwunZe9KlVdlRZY+pOYjORS2frSc0KpLv3R/ZWakHQtA== Received: from BN9PR03CA0650.namprd03.prod.outlook.com (2603:10b6:408:13b::25) by DS7PR12MB9504.namprd12.prod.outlook.com (2603:10b6:8:252::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28; Mon, 11 Nov 2024 06:33:07 +0000 Received: from BN2PEPF000055DA.namprd21.prod.outlook.com (2603:10b6:408:13b:cafe::a3) by BN9PR03CA0650.outlook.office365.com (2603:10b6:408:13b::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8137.28 via Frontend Transport; Mon, 11 Nov 2024 06:33:07 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 216.228.117.160) smtp.mailfrom=nvidia.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=nvidia.com; Received-SPF: Pass (protection.outlook.com: domain of nvidia.com designates 216.228.117.160 as permitted sender) receiver=protection.outlook.com; client-ip=216.228.117.160; helo=mail.nvidia.com; pr=C Received: from mail.nvidia.com (216.228.117.160) by BN2PEPF000055DA.mail.protection.outlook.com (10.167.245.4) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.8182.1 via Frontend Transport; Mon, 11 Nov 2024 06:33:07 +0000 Received: from rnnvmail201.nvidia.com (10.129.68.8) by mail.nvidia.com (10.129.200.66) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sun, 10 Nov 2024 22:32:54 -0800 Received: from nvidia.com (10.126.230.35) by rnnvmail201.nvidia.com (10.129.68.8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1544.4; Sun, 10 Nov 2024 22:32:52 -0800 From: Xueming Li To: Sunil Kumar Kori CC: , dpdk stable Subject: patch 'common/cnxk: fix MAC address change with active VF' has been queued to stable release 23.11.3 Date: Mon, 11 Nov 2024 14:27:23 +0800 Message-ID: <20241111062847.216344-38-xuemingl@nvidia.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20241111062847.216344-1-xuemingl@nvidia.com> References: <20241111062847.216344-1-xuemingl@nvidia.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.126.230.35] X-ClientProxiedBy: rnnvmail202.nvidia.com (10.129.68.7) To rnnvmail201.nvidia.com (10.129.68.8) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN2PEPF000055DA:EE_|DS7PR12MB9504:EE_ X-MS-Office365-Filtering-Correlation-Id: 26415380-c083-41d1-2057-08dd021ab436 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; ARA:13230040|36860700013|82310400026|1800799024|376014; X-Microsoft-Antispam-Message-Info: =?us-ascii?Q?0Jcf3uTjmHxcQ/3T3II/g3t/iZfioWOcdsjS/TXscc97xq8Iq9jTBiCcTry6?= =?us-ascii?Q?RHKof+jb1E459PspezRKZj/+kRqABlfJt4gSbU4BVtUyNGcRTNt+g7V+iQR3?= =?us-ascii?Q?bgwJ/D6OGwqUhZHxS1lB0I/Te9BoApe08iVbu5eYwHslmW1okyf+fZ7h5d0a?= =?us-ascii?Q?aOLDktj/N0kpBTy+PwrD9vrKXe3i/+azNo8ee8irh57An/P6+3slxyiMeZXg?= =?us-ascii?Q?HVsAV7UETBE1J8g7BU1NS7EESxLKObFOEbtA82aaHUFVVaV7zCPugAOdvvKK?= =?us-ascii?Q?YOXQgNA+Ft/5u4sy+xnW/k820dfRJKYDx6VKdSp+cR4oE4P51+2a/b9fKkJs?= =?us-ascii?Q?1WeE1LEA6XlModLZCkUC0QrUQmesASon77jJ4oYb2GUR4n9uG/1bCxB+AJO5?= =?us-ascii?Q?zHyMjScrMaCKOK/r+3uprc4frLtaPPzOcerWJGp5fjWY1CmtFQL04Xn+75ut?= =?us-ascii?Q?MnP0Aujn9RKky3pqtPUGvem2g+pAXjYGhZgm41r+UhYK/PY155QDDE9+uqF+?= =?us-ascii?Q?zRONUCgiqA2Ic0W9ysRvJAzDZif3q3OrczymUK47/1+MFU/TymyFu6WMxXjy?= =?us-ascii?Q?I2OdjTo3L2hnzfrtiHYGgVpwHzK7VBWztA13j8xwyw2ytYxSu+aqmP4WjPVK?= =?us-ascii?Q?3LQgEPHTqezoiq6dOm/b0i4Zh1l8J8ZCx1VH1UbTuSDAF035LJrQXLgNNpoU?= =?us-ascii?Q?i+7ewYdakCBC0XvQQDTbXvknU4retfuk1cfbOMgVCXeMeWTcwvW2m+kALOXc?= =?us-ascii?Q?Y+qcIZigIE3IAXAlN55eb9lDuE1o7ALQANfsMgxSuxA10mM3qGF8EFavXrWd?= =?us-ascii?Q?yJ+As4sl1xDHakwmbyW6NYB++p+SjtZUR9a3os5RoSdodM56qxpXF8Anzn7w?= =?us-ascii?Q?el2T5Hl9Nf9oIaK6P/WCPl+oynCwO/tDyu+GLRfoM+IG2QchqbDp6fmBf033?= =?us-ascii?Q?KUaa+XZq1MfpLjuXeeL7kdeUGJ/dEbfdnvtvslp64hofbGAmjxDKUdQ0pkuh?= =?us-ascii?Q?hUG6jGp8ObqLPiMFsoLTnm9+PRyAYaLrcWNckEOmQPani+OC63JP2NPIaf4M?= =?us-ascii?Q?porRMeCnFHO+DUvup4Uvxj+3h7HdwN8xZ+rFuDYQGRZ2CAZ5m/4I90oSc0tl?= =?us-ascii?Q?CWsjWB8tQiGepwxDNzYcpq15K/Eyw2fgQdJj9o2PrxAJPmgBRyhnAxWdgl72?= =?us-ascii?Q?BdXc/E06Y7XMHqXuAcKbGqKrfN3/0URfPQjExsGz9Or9ELdeQsCLek2VgI63?= =?us-ascii?Q?CEZ+snSj9xTlDx73en88V7ptN9tmEA/iMzwPK9hRjME8Dtysi2MSAulsWdUa?= =?us-ascii?Q?Ey5GE5JfNWRKCRXMqB4g+J6H3G8GFvjz5+tN45GPjc8wGuF9Hy5PO2/BlzQx?= =?us-ascii?Q?p+mJICjK6lAy9Myij0QRBEp3C5zBVBAxzsnT+NNqGGDC7lIA/g=3D=3D?= X-Forefront-Antispam-Report: CIP:216.228.117.160; CTRY:US; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:dc6edge1.nvidia.com; CAT:NONE; SFS:(13230040)(36860700013)(82310400026)(1800799024)(376014); DIR:OUT; SFP:1101; X-OriginatorOrg: Nvidia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Nov 2024 06:33:07.0242 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 26415380-c083-41d1-2057-08dd021ab436 X-MS-Exchange-CrossTenant-Id: 43083d15-7273-40c1-b7db-39efd9ccc17a X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.117.160]; Helo=[mail.nvidia.com] X-MS-Exchange-CrossTenant-AuthSource: BN2PEPF000055DA.namprd21.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR12MB9504 X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org Hi, FYI, your patch has been queued to stable release 23.11.3 Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet. It will be pushed if I get no objections before 11/30/24. So please shout if anyone has objections. Also note that after the patch there's a diff of the upstream commit vs the patch applied to the branch. This will indicate if there was any rebasing needed to apply to the stable branch. If there were code changes for rebasing (ie: not only metadata diffs), please double check that the rebase was correctly done. Queued patches are on a temporary branch at: https://git.dpdk.org/dpdk-stable/log/?h=23.11-staging This queued commit can be viewed at: https://git.dpdk.org/dpdk-stable/commit/?h=23.11-staging&id=1ba168d355ced3b1fb8513939d0dce8df4a5c8f1 Thanks. Xueming Li --- >From 1ba168d355ced3b1fb8513939d0dce8df4a5c8f1 Mon Sep 17 00:00:00 2001 From: Sunil Kumar Kori Date: Tue, 1 Oct 2024 11:30:45 +0530 Subject: [PATCH] common/cnxk: fix MAC address change with active VF Cc: Xueming Li [ upstream commit 2d4505dc6d4b541710f1c178ee0b309fab4d2ee8 ] If device is in reconfigure state then it throws error while changing default MAC or adding new MAC in LMAC filter table if there are active VFs on a PF. Allowing MAC address set/add even active VFs are present on PF. Fixes: 313cc41830ec ("common/cnxk: support NIX MAC operations") Signed-off-by: Sunil Kumar Kori --- drivers/common/cnxk/roc_nix_mac.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/drivers/common/cnxk/roc_nix_mac.c b/drivers/common/cnxk/roc_nix_mac.c index 2d1c29dd66..ce3fb034c5 100644 --- a/drivers/common/cnxk/roc_nix_mac.c +++ b/drivers/common/cnxk/roc_nix_mac.c @@ -91,11 +91,6 @@ roc_nix_mac_addr_set(struct roc_nix *roc_nix, const uint8_t addr[]) goto exit; } - if (dev_active_vfs(&nix->dev)) { - rc = NIX_ERR_OP_NOTSUP; - goto exit; - } - req = mbox_alloc_msg_cgx_mac_addr_set(mbox); if (req == NULL) goto exit; @@ -152,11 +147,6 @@ roc_nix_mac_addr_add(struct roc_nix *roc_nix, uint8_t addr[]) goto exit; } - if (dev_active_vfs(&nix->dev)) { - rc = NIX_ERR_OP_NOTSUP; - goto exit; - } - req = mbox_alloc_msg_cgx_mac_addr_add(mbox); mbox_memcpy(req->mac_addr, addr, PLT_ETHER_ADDR_LEN); -- 2.34.1 --- Diff of the applied patch vs upstream commit (please double-check if non-empty: --- --- - 2024-11-11 14:23:06.954124602 +0800 +++ 0037-common-cnxk-fix-MAC-address-change-with-active-VF.patch 2024-11-11 14:23:05.092192840 +0800 @@ -1 +1 @@ -From 2d4505dc6d4b541710f1c178ee0b309fab4d2ee8 Mon Sep 17 00:00:00 2001 +From 1ba168d355ced3b1fb8513939d0dce8df4a5c8f1 Mon Sep 17 00:00:00 2001 @@ -4,0 +5,3 @@ +Cc: Xueming Li + +[ upstream commit 2d4505dc6d4b541710f1c178ee0b309fab4d2ee8 ] @@ -14 +16,0 @@ -Cc: stable@dpdk.org @@ -22 +24 @@ -index 0ffd05e4d4..54db1adf17 100644 +index 2d1c29dd66..ce3fb034c5 100644