patch 'net/ice: fix overflow on storing devargs' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:01:41 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/7cb4620a11b6c2f8b5baed8afa630d988647a5cc

Thanks.

Kevin

---
>From 7cb4620a11b6c2f8b5baed8afa630d988647a5cc Mon Sep 17 00:00:00 2001
From: Bruce Richardson <bruce.richardson at intel.com>
Date: Mon, 14 Sep 2026 16:30:19 +0100
Subject: [PATCH] net/ice: fix overflow on storing devargs

[ upstream commit 69b7cd8f29700f7cb1a5f5587f3847e71ae87a49 ]

Boolean device args to ice driver are sometimes stored as an int and
sometimes as a uint8_t. The parse bool function stores them as an int,
leading to overflow when storing a uint8_t value.

Fix all these by standardizing on "bool" type, both for the arg values
in the structure and inside the parsing function.

Bugzilla ID: 2037
Fixes: 603beeb970b5 ("net/ice: add safe mode devarg")

Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov at intel.com>
---
 drivers/net/intel/ice/ice_ethdev.c | 13 +++++++------
 drivers/net/intel/ice/ice_ethdev.h | 10 +++++-----
 2 files changed, 12 insertions(+), 11 deletions(-)

diff --git a/drivers/net/intel/ice/ice_ethdev.c b/drivers/net/intel/ice/ice_ethdev.c
index 69c01aab3d..02efe59870 100644
--- a/drivers/net/intel/ice/ice_ethdev.c
+++ b/drivers/net/intel/ice/ice_ethdev.c
@@ -1077,5 +1077,5 @@ ice_init_mac_address(struct rte_eth_dev *dev)
 	}
 	/* store it to dev data */
-	if (ad->devargs.default_mac_disable != 1)
+	if (!ad->devargs.default_mac_disable)
 		rte_ether_addr_copy((struct rte_ether_addr *)hw->port_info[0].mac.perm_addr,
 			&dev->data->mac_addrs[0]);
@@ -1107,5 +1107,5 @@ ice_add_mac_filter(struct ice_vsi *vsi, struct rte_ether_addr *mac_addr)
 	int ret = 0;
 
-	if (ad->devargs.default_mac_disable == 1 && rte_is_same_ether_addr(mac_addr,
+	if (ad->devargs.default_mac_disable && rte_is_same_ether_addr(mac_addr,
 			(struct rte_ether_addr *)hw->port_info[0].mac.perm_addr)) {
 		PMD_DRV_LOG(ERR, "This Default MAC filter is disabled.");
@@ -1758,5 +1758,5 @@ ice_setup_vsi(struct ice_pf *pf, enum ice_vsi_type type)
 		vsi_ctx.info.sw_id = hw->port_info->sw_id;
 		/* Source Prune */
-		if (ad->devargs.source_prune != 1) {
+		if (!ad->devargs.source_prune) {
 			/* Disable source prune to support VRRP
 			 * when source-prune devarg is not set
@@ -2124,5 +2124,5 @@ static int
 parse_bool(const char *key, const char *value, void *args)
 {
-	int *i = args;
+	bool *i = args;
 
 	if (value == NULL || value[0] == '\0') {
@@ -2700,5 +2700,5 @@ ice_dev_init(struct rte_eth_dev *dev)
 
 	if (ret) {
-		if (ad->devargs.safe_mode_support == 0) {
+		if (!ad->devargs.safe_mode_support) {
 			PMD_INIT_LOG(ERR, "Failed to load the DDP package,"
 					"Use safe-mode-support=1 to enter Safe Mode");
@@ -4151,5 +4151,6 @@ __vsi_queues_bind_intr(struct ice_vsi *vsi, uint16_t msix_vect,
 	struct ice_hw *hw = ICE_VSI_TO_HW(vsi);
 	uint32_t val, val_tx;
-	int rx_low_latency, i;
+	bool rx_low_latency;
+	int i;
 
 	rx_low_latency = vsi->adapter->devargs.rx_low_latency;
diff --git a/drivers/net/intel/ice/ice_ethdev.h b/drivers/net/intel/ice/ice_ethdev.h
index 226a9e566a..b5f92b2ede 100644
--- a/drivers/net/intel/ice/ice_ethdev.h
+++ b/drivers/net/intel/ice/ice_ethdev.h
@@ -611,14 +611,14 @@ struct ice_pf {
  */
 struct ice_devargs {
-	int rx_low_latency;
-	int safe_mode_support;
+	bool rx_low_latency;
+	bool safe_mode_support;
 	uint8_t proto_xtr_dflt;
-	uint8_t default_mac_disable;
+	bool default_mac_disable;
 	uint8_t proto_xtr[ICE_MAX_QUEUE_NUM];
 	uint8_t pin_idx;
 	uint8_t pps_out_ena;
-	uint8_t ddp_load_sched;
+	bool ddp_load_sched;
 	uint8_t tm_exposed_levels;
-	uint8_t source_prune;
+	bool source_prune;
 	int link_state_on_close;
 	int xtr_field_offs;
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:44.226369987 +0000
+++ 0175-net-ice-fix-overflow-on-storing-devargs.patch	2026-12-03 12:52:39.149938670 +0000
@@ -1 +1 @@
-From 69b7cd8f29700f7cb1a5f5587f3847e71ae87a49 Mon Sep 17 00:00:00 2001
+From 7cb4620a11b6c2f8b5baed8afa630d988647a5cc Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit 69b7cd8f29700f7cb1a5f5587f3847e71ae87a49 ]
+
@@ -15 +16,0 @@
-Cc: stable at dpdk.org
@@ -25 +26 @@
-index 1bb185356e..0caae39f29 100644
+index 69c01aab3d..02efe59870 100644
@@ -28 +29 @@
-@@ -1091,5 +1091,5 @@ ice_init_mac_address(struct rte_eth_dev *dev)
+@@ -1077,5 +1077,5 @@ ice_init_mac_address(struct rte_eth_dev *dev)
@@ -35 +36 @@
-@@ -1121,5 +1121,5 @@ ice_add_mac_filter(struct ice_vsi *vsi, struct rte_ether_addr *mac_addr)
+@@ -1107,5 +1107,5 @@ ice_add_mac_filter(struct ice_vsi *vsi, struct rte_ether_addr *mac_addr)
@@ -42 +43 @@
-@@ -1771,5 +1771,5 @@ ice_setup_vsi(struct ice_pf *pf, enum ice_vsi_type type)
+@@ -1758,5 +1758,5 @@ ice_setup_vsi(struct ice_pf *pf, enum ice_vsi_type type)
@@ -49 +50 @@
-@@ -2145,5 +2145,5 @@ static int
+@@ -2124,5 +2124,5 @@ static int
@@ -56 +57 @@
-@@ -2764,5 +2764,5 @@ ice_dev_init(struct rte_eth_dev *dev)
+@@ -2700,5 +2700,5 @@ ice_dev_init(struct rte_eth_dev *dev)
@@ -63 +64 @@
-@@ -4315,5 +4315,6 @@ __vsi_queues_bind_intr(struct ice_vsi *vsi, uint16_t msix_vect,
+@@ -4151,5 +4151,6 @@ __vsi_queues_bind_intr(struct ice_vsi *vsi, uint16_t msix_vect,
@@ -72 +73 @@
-index e39757e842..39583cff38 100644
+index 226a9e566a..b5f92b2ede 100644
@@ -75 +76 @@
-@@ -628,14 +628,14 @@ struct ice_pf {
+@@ -611,14 +611,14 @@ struct ice_pf {
@@ -93 +93,0 @@
- 	uint32_t rl_burst_size;
@@ -94,0 +95 @@
+ 	int xtr_field_offs;



More information about the stable mailing list