patch 'net/ice: fix MAC and VLAN filter leak on VSI release' has been queued to stable release 24.11.9
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Mon Nov 16 23:51:49 CET 2026
Hi,
FYI, your patch has been queued to stable release 24.11.9
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/18/26. 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://github.com/bluca/dpdk-stable
This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/1024bc3beddc187a7fc856df875608015a5b4c83
Thanks.
Luca Boccassi
---
>From 1024bc3beddc187a7fc856df875608015a5b4c83 Mon Sep 17 00:00:00 2001
From: Anurag Mandal <anurag.mandal at intel.com>
Date: Mon, 2 Nov 2026 08:10:35 +0000
Subject: [PATCH] net/ice: fix MAC and VLAN filter leak on VSI release
[ upstream commit e1451d0abf9c567a7d09ba9e65a5b0c4c2e37d79 ]
ice_release_vsi() relies on ice_remove_all_mac_vlan_filters() to free
the MAC and VLAN filter entries. That function returns early when the
VSI has no MAC filter, or when removing a filter from hardware fails,
leaving entries in the lists. The VSI is then freed with them still
allocated.
Free any entries left in the lists before freeing the VSI.
Fixes: e0dcf94a0d7f ("net/ice: support VLAN ops")
Signed-off-by: Anurag Mandal <anurag.mandal at intel.com>
Acked-by: Bruce Richardson <bruce.richardson at intel.com>
---
drivers/net/ice/ice_ethdev.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
index 6fb33a5999..57a9557c2c 100644
--- a/drivers/net/ice/ice_ethdev.c
+++ b/drivers/net/ice/ice_ethdev.c
@@ -2733,6 +2733,9 @@ ice_release_vsi(struct ice_vsi *vsi)
{
struct ice_hw *hw;
struct ice_vsi_ctx vsi_ctx;
+ struct ice_mac_filter *m_f;
+ struct ice_vlan_filter *v_f;
+ void *temp;
int ret, error = 0;
if (!vsi)
@@ -2742,6 +2745,12 @@ ice_release_vsi(struct ice_vsi *vsi)
ice_remove_all_mac_vlan_filters(vsi);
+ /* filters whose HW removal failed or was skipped are still listed */
+ RTE_TAILQ_FOREACH_SAFE(m_f, &vsi->mac_list, next, temp)
+ rte_free(m_f);
+ RTE_TAILQ_FOREACH_SAFE(v_f, &vsi->vlan_list, next, temp)
+ rte_free(v_f);
+
memset(&vsi_ctx, 0, sizeof(vsi_ctx));
vsi_ctx.vsi_num = vsi->vsi_id;
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-11-16 22:52:17.915762533 +0000
+++ 0035-net-ice-fix-MAC-and-VLAN-filter-leak-on-VSI-release.patch 2026-11-16 22:52:16.472233060 +0000
@@ -1 +1 @@
-From e1451d0abf9c567a7d09ba9e65a5b0c4c2e37d79 Mon Sep 17 00:00:00 2001
+From 1024bc3beddc187a7fc856df875608015a5b4c83 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit e1451d0abf9c567a7d09ba9e65a5b0c4c2e37d79 ]
+
@@ -15 +16,0 @@
-Cc: stable at dpdk.org
@@ -20 +21 @@
- drivers/net/intel/ice/ice_ethdev.c | 9 +++++++++
+ drivers/net/ice/ice_ethdev.c | 9 +++++++++
@@ -23,5 +24,5 @@
-diff --git a/drivers/net/intel/ice/ice_ethdev.c b/drivers/net/intel/ice/ice_ethdev.c
-index 53a14dfd2b..457c955b2e 100644
---- a/drivers/net/intel/ice/ice_ethdev.c
-+++ b/drivers/net/intel/ice/ice_ethdev.c
-@@ -2931,6 +2931,9 @@ ice_release_vsi(struct ice_vsi *vsi)
+diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c
+index 6fb33a5999..57a9557c2c 100644
+--- a/drivers/net/ice/ice_ethdev.c
++++ b/drivers/net/ice/ice_ethdev.c
+@@ -2733,6 +2733,9 @@ ice_release_vsi(struct ice_vsi *vsi)
@@ -37 +38 @@
-@@ -2940,6 +2943,12 @@ ice_release_vsi(struct ice_vsi *vsi)
+@@ -2742,6 +2745,12 @@ ice_release_vsi(struct ice_vsi *vsi)
More information about the stable
mailing list