patch 'common/cnxk: fix MAC address change with active VF' has been queued to stable release 23.11.3
Xueming Li
xuemingl at nvidia.com
Mon Nov 11 07:27:23 CET 2024
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 <xuemingl at nvidia.com>
---
>From 1ba168d355ced3b1fb8513939d0dce8df4a5c8f1 Mon Sep 17 00:00:00 2001
From: Sunil Kumar Kori <skori at marvell.com>
Date: Tue, 1 Oct 2024 11:30:45 +0530
Subject: [PATCH] common/cnxk: fix MAC address change with active VF
Cc: Xueming Li <xuemingl at nvidia.com>
[ 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 <skori at marvell.com>
---
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 <xuemingl at nvidia.com>
+
+[ upstream commit 2d4505dc6d4b541710f1c178ee0b309fab4d2ee8 ]
@@ -14 +16,0 @@
-Cc: stable at dpdk.org
@@ -22 +24 @@
-index 0ffd05e4d4..54db1adf17 100644
+index 2d1c29dd66..ce3fb034c5 100644
More information about the stable
mailing list