patch 'net/cnxk: fix build on Ubuntu 24.04' has been queued to stable release 22.11.7

luca.boccassi at gmail.com luca.boccassi at gmail.com
Thu Nov 21 00:41:36 CET 2024


Hi,

FYI, your patch has been queued to stable release 22.11.7

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/22/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://github.com/bluca/dpdk-stable

This queued commit can be viewed at:
https://github.com/bluca/dpdk-stable/commit/0bb02c5a2f86b59f79adc1d8f10ff07742b2c526

Thanks.

Luca Boccassi

---
>From 0bb02c5a2f86b59f79adc1d8f10ff07742b2c526 Mon Sep 17 00:00:00 2001
From: Sunil Kumar Kori <skori at marvell.com>
Date: Thu, 14 Nov 2024 13:08:16 +0530
Subject: [PATCH] net/cnxk: fix build on Ubuntu 24.04

[ upstream commit b9799fb5e7a38c824c91b88d3c89250d23c783e6 ]

Due to implicit unsigned to signed integer conversion, actual value gets
wrapped and becomes higher than its size.

Bugzilla ID: 1513
Fixes: 03b152389fb1 ("net/cnxk: add option to enable custom inbound SA")
Fixes: 7df4ead35436 ("net/cnxk: support parsing custom SA action")
Fixes: 47cca253d605 ("net/cnxk: support Rx inject")

Signed-off-by: Sunil Kumar Kori <skori at marvell.com>
---
 drivers/net/cnxk/cnxk_ethdev_devargs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/cnxk/cnxk_ethdev_devargs.c b/drivers/net/cnxk/cnxk_ethdev_devargs.c
index 0c89e0424f..fda619ac5f 100644
--- a/drivers/net/cnxk/cnxk_ethdev_devargs.c
+++ b/drivers/net/cnxk/cnxk_ethdev_devargs.c
@@ -269,7 +269,7 @@ cnxk_ethdev_parse_devargs(struct rte_devargs *devargs, struct cnxk_eth_dev *dev)
 	uint16_t custom_sa_act = 0;
 	struct rte_kvargs *kvlist;
 	uint16_t no_inl_dev = 0;
-	uint8_t lock_rx_ctx = 0;
+	uint16_t lock_rx_ctx = 0;
 
 	memset(&sdp_chan, 0, sizeof(sdp_chan));
 	memset(&pre_l2_info, 0, sizeof(struct flow_pre_l2_size_info));
-- 
2.45.2

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2024-11-20 23:41:23.111046007 +0000
+++ 0011-net-cnxk-fix-build-on-Ubuntu-24.04.patch	2024-11-20 23:41:22.708195467 +0000
@@ -1 +1 @@
-From b9799fb5e7a38c824c91b88d3c89250d23c783e6 Mon Sep 17 00:00:00 2001
+From 0bb02c5a2f86b59f79adc1d8f10ff07742b2c526 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit b9799fb5e7a38c824c91b88d3c89250d23c783e6 ]
+
@@ -13 +14,0 @@
-Cc: stable at dpdk.org
@@ -17,2 +18,2 @@
- drivers/net/cnxk/cnxk_ethdev_devargs.c | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
+ drivers/net/cnxk/cnxk_ethdev_devargs.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
@@ -21 +22 @@
-index 5bd50bb9a1..ecc2ea8b77 100644
+index 0c89e0424f..fda619ac5f 100644
@@ -24,3 +25 @@
-@@ -305,12 +305,12 @@ cnxk_ethdev_parse_devargs(struct rte_devargs *devargs, struct cnxk_eth_dev *dev)
- 	uint16_t scalar_enable = 0;
- 	uint16_t tx_compl_ena = 0;
+@@ -269,7 +269,7 @@ cnxk_ethdev_parse_devargs(struct rte_devargs *devargs, struct cnxk_eth_dev *dev)
@@ -28,2 +26,0 @@
--	uint8_t custom_inb_sa = 0;
-+	uint16_t custom_inb_sa = 0;
@@ -31,3 +27,0 @@
- 	uint32_t meta_buf_sz = 0;
-+	uint16_t lock_rx_ctx = 0;
-+	uint16_t rx_inj_ena = 0;
@@ -36 +30 @@
--	uint8_t rx_inj_ena = 0;
++	uint16_t lock_rx_ctx = 0;


More information about the stable mailing list