patch 'net/hns3: fix outer UDP checksum with simple BD' has been queued to stable release 24.11.5
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Fri Feb 20 15:55:31 CET 2026
Hi,
FYI, your patch has been queued to stable release 24.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 02/22/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/0832e61db4818ed1f7486a0c51ad10df76f787b1
Thanks.
Luca Boccassi
---
>From 0832e61db4818ed1f7486a0c51ad10df76f787b1 Mon Sep 17 00:00:00 2001
From: Chengwen Feng <fengchengwen at huawei.com>
Date: Fri, 5 Dec 2025 15:39:55 +0800
Subject: [PATCH] net/hns3: fix outer UDP checksum with simple BD
[ upstream commit dce76acf61859242946e619cf6113de5e134b117 ]
On the hardware platform that supports simple BD, if outer-ip, outer-udp
and udp checksum offloading are enabled, the hardware incorrectly
processes the ether+ipv6+vxlan+ether+ipv4+udp packet (the incorrect
field is modified).
The root cause is that the simple BD feature does not exclude outer-udp
checksum. This commit add it.
Fixes: 6393fc0b823c ("net/hns3: simplify hardware checksum offloading")
Signed-off-by: Chengwen Feng <fengchengwen at huawei.com>
Signed-off-by: Xingui Yang <yangxingui at huawei.com>
---
drivers/net/hns3/hns3_rxtx.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/net/hns3/hns3_rxtx.c b/drivers/net/hns3/hns3_rxtx.c
index 9421fa58e2..f0ae9c9914 100644
--- a/drivers/net/hns3/hns3_rxtx.c
+++ b/drivers/net/hns3/hns3_rxtx.c
@@ -3985,8 +3985,9 @@ hns3_handle_simple_bd(struct hns3_tx_queue *txq, struct hns3_desc *desc,
if (txq->simple_bd_enable && !(m->ol_flags & RTE_MBUF_F_TX_IP_CKSUM) &&
!(m->ol_flags & RTE_MBUF_F_TX_TCP_SEG) &&
!(m->ol_flags & RTE_MBUF_F_TX_OUTER_IP_CKSUM) &&
+ !(m->ol_flags & RTE_MBUF_F_TX_OUTER_UDP_CKSUM) &&
((m->ol_flags & RTE_MBUF_F_TX_L4_MASK) == RTE_MBUF_F_TX_TCP_CKSUM ||
- (m->ol_flags & RTE_MBUF_F_TX_L4_MASK) == RTE_MBUF_F_TX_UDP_CKSUM)) {
+ (m->ol_flags & RTE_MBUF_F_TX_L4_MASK) == RTE_MBUF_F_TX_UDP_CKSUM)) {
/* set checksum start and offset, defined in 2 Bytes */
hns3_set_field(desc->tx.type_cs_vlan_tso_len,
HNS3_TXD_L4_START_M, HNS3_TXD_L4_START_S,
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-02-20 14:55:44.449988821 +0000
+++ 0029-net-hns3-fix-outer-UDP-checksum-with-simple-BD.patch 2026-02-20 14:55:43.200191006 +0000
@@ -1 +1 @@
-From dce76acf61859242946e619cf6113de5e134b117 Mon Sep 17 00:00:00 2001
+From 0832e61db4818ed1f7486a0c51ad10df76f787b1 Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit dce76acf61859242946e619cf6113de5e134b117 ]
+
@@ -15 +16,0 @@
-Cc: stable at dpdk.org
@@ -24 +25 @@
-index 3a99923220..573604b0cd 100644
+index 9421fa58e2..f0ae9c9914 100644
@@ -27 +28 @@
-@@ -3999,8 +3999,9 @@ hns3_handle_simple_bd(struct hns3_tx_queue *txq, struct hns3_desc *desc,
+@@ -3985,8 +3985,9 @@ hns3_handle_simple_bd(struct hns3_tx_queue *txq, struct hns3_desc *desc,
More information about the stable
mailing list