patch 'common/sfc_efx/base: fix filter in SW-HW mask converter' has been queued to stable release 25.11.5
Kevin Traynor
ktraynor at redhat.com
Thu Dec 3 13:59:16 CET 2026
Hi,
FYI, your patch has been queued to stable release 25.11.5
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 12/08/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/kevintraynor/dpdk-stable
This queued commit can be viewed at:
https://github.com/kevintraynor/dpdk-stable/commit/6ffbb5297ac85e53e1401603b301a08cc25fe93b
Thanks.
Kevin
---
>From 6ffbb5297ac85e53e1401603b301a08cc25fe93b Mon Sep 17 00:00:00 2001
From: Andy Moreton <andy.moreton at amd.com>
Date: Fri, 14 Aug 2026 16:54:36 +0400
Subject: [PATCH] common/sfc_efx/base: fix filter in SW-HW mask converter
[ upstream commit d1881ca864921878913fc1a6c2305a1508acff6d ]
Code analysis reports that the optional filter_arg could be used to invoke
the callback, but that function has type efx_np_cap_filter_cb, where the
argument is required. Add a NULL check to ensure that the filter_arg
is valid when invoking the callback.
Fixes: b50ff442479c ("common/sfc_efx/base: support controls for netport lane count")
Signed-off-by: Andy Moreton <andy.moreton at amd.com>
Reviewed-by: Ivan Malov <ivan.malov at arknetworks.am>
Reviewed-by: Viacheslav Galaktionov <viacheslav.galaktionov at arknetworks.am>
---
drivers/common/sfc_efx/base/efx_np.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/common/sfc_efx/base/efx_np.c b/drivers/common/sfc_efx/base/efx_np.c
index ec76985054..6fc024e17b 100644
--- a/drivers/common/sfc_efx/base/efx_np.c
+++ b/drivers/common/sfc_efx/base/efx_np.c
@@ -1171,5 +1171,5 @@ efx_np_cap_mask_sw_to_hw(
__in_opt efx_np_cap_filter_cb *filter_cb,
__in_opt void *filter_arg,
- __out uint8_t *mask_hwp)
+ __inout uint8_t *mask_hwp)
{
FOREACH_SUP_CAP(hw_sw_map, hw_sw_map_nentries,
@@ -1180,6 +1180,6 @@ efx_np_cap_mask_sw_to_hw(
continue;
- if (filter_cb != NULL &&
- filter_cb(hw_sw_map->encm_hw, filter_arg) == B_FALSE)
+ if ((filter_cb != NULL) && (filter_arg != NULL) &&
+ (filter_cb(hw_sw_map->encm_hw, filter_arg) == B_FALSE))
continue;
--
2.56.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-12-03 12:52:40.203512787 +0000
+++ 0030-common-sfc_efx-base-fix-filter-in-SW-HW-mask-convert.patch 2026-12-03 12:52:39.033654754 +0000
@@ -1 +1 @@
-From d1881ca864921878913fc1a6c2305a1508acff6d Mon Sep 17 00:00:00 2001
+From 6ffbb5297ac85e53e1401603b301a08cc25fe93b Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit d1881ca864921878913fc1a6c2305a1508acff6d ]
+
@@ -12 +13,0 @@
-Cc: stable at dpdk.org
More information about the stable
mailing list