patch 'examples/l3fwd: fix build with dataplane debug' has been queued to stable release 25.11.5

Kevin Traynor ktraynor at redhat.com
Thu Dec 3 14:06:18 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/ca015750f0e2792bc34d68fdc49068e0a8660f0f

Thanks.

Kevin

---
>From ca015750f0e2792bc34d68fdc49068e0a8660f0f Mon Sep 17 00:00:00 2001
From: Andrei-Niculae Petre <p31andrei at gmail.com>
Date: Sun, 8 Nov 2026 00:17:07 +0200
Subject: [PATCH] examples/l3fwd: fix build with dataplane debug

[ upstream commit b72b398803e3c8a14aab41da2080767fedbb5521 ]

Update l3fwd example app to fix compilation when building dpdk with
RTE_LOG_DP_LEVEL=RTE_LOG_DEBUG in config/rte_config.h .
Move l3fwd_acl.h include above all #ifdef L3FWDACL_DEBUG checks,
as previously one ifdef would evaluate to false all the time (as
header include was added too late).

Adapt maintainers line from previous examples/l3fwd-acl (removed in
6de0ea50e9b9) to examples/l3fwd/l3fwd_acl* after l3fwd-acl app
unification into l3fwd. In 6de0ea50e9b9, a line with maintainer
expertise was removed.

Bugzilla ID: 1318
Fixes: 6de0ea50e9b9 ("examples/l3fwd: merge l3fwd-acl example")

Signed-off-by: Andrei-Niculae Petre <p31andrei at gmail.com>
---
 .mailmap                   |  1 +
 MAINTAINERS                |  1 +
 examples/l3fwd/l3fwd_acl.c | 23 ++++++++++++-----------
 3 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/.mailmap b/.mailmap
index e59a95f3f0..ffe78f2916 100644
--- a/.mailmap
+++ b/.mailmap
@@ -114,4 +114,5 @@ Andre Richter <andre.o.richter at gmail.com>
 Andrea Arcangeli <aarcange at redhat.com>
 Andrea Grandi <andrea.grandi at intel.com>
+Andrei-Niculae Petre <p31andrei at gmail.com> <andrei.petre at keysight.com>
 Andrew Bailey <abailey at iol.unh.edu>
 Andrew Boyer <andrew.boyer at amd.com> <aboyer at pensando.io>
diff --git a/MAINTAINERS b/MAINTAINERS
index dca611ffa0..1e337b0e7b 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1743,4 +1743,5 @@ F: doc/guides/prog_guide/packet_classif_access_ctrl.rst
 F: app/test-acl/
 F: app/test/test_acl.*
+F: examples/l3fwd/l3fwd_acl*
 
 EFD
diff --git a/examples/l3fwd/l3fwd_acl.c b/examples/l3fwd/l3fwd_acl.c
index a1275e18bc..e8c963dddb 100644
--- a/examples/l3fwd/l3fwd_acl.c
+++ b/examples/l3fwd/l3fwd_acl.c
@@ -236,4 +236,7 @@ RTE_ACL_RULE_DEF(acl4_rule, RTE_DIM(ipv4_defs));
 RTE_ACL_RULE_DEF(acl6_rule, RTE_DIM(ipv6_defs));
 
+/* Must be included before any L3FWDACL_DEBUG define check. */
+#include "l3fwd_acl.h"
+
 static struct {
 	struct rte_acl_ctx *acx_ipv4[NB_SOCKETS];
@@ -252,6 +255,4 @@ static unsigned int acl_num_ipv4, route_num_ipv4,
 		acl_num_ipv6, route_num_ipv6;
 
-#include "l3fwd_acl.h"
-
 #include "l3fwd_acl_scalar.h"
 
@@ -856,7 +857,7 @@ print_one_ipv6_rule(struct acl6_rule *rule, int extra)
 #ifdef L3FWDACL_DEBUG
 static inline void
-dump_acl4_rule(struct rte_mbuf *m, uint32_t sig)
+dump_acl4_rule(const struct rte_mbuf *m, uint32_t sig)
 {
-	char abuf[INET6_ADDRSTRLEN];
+	char abuf[INET_ADDRSTRLEN];
 	uint32_t offset = sig & ~ACL_DENY_SIGNATURE;
 	struct rte_ipv4_hdr *ipv4_hdr =
@@ -864,7 +865,7 @@ dump_acl4_rule(struct rte_mbuf *m, uint32_t sig)
 					sizeof(struct rte_ether_hdr));
 
-	printf("Packet Src:%s ", inet_ntop(AF_INET, ipv4_hdr->src_addr,
+	printf("Packet Src:%s ", inet_ntop(AF_INET, &ipv4_hdr->src_addr,
 		abuf, sizeof(abuf)));
-	printf("Dst:%s ", inet_ntop(AF_INET, ipv4_hdr->dst_addr,
+	printf("Dst:%s ", inet_ntop(AF_INET, &ipv4_hdr->dst_addr,
 		abuf, sizeof(abuf)));
 
@@ -880,5 +881,5 @@ dump_acl4_rule(struct rte_mbuf *m, uint32_t sig)
 
 static inline void
-dump_acl6_rule(struct rte_mbuf *m, uint32_t sig)
+dump_acl6_rule(const struct rte_mbuf *m, uint32_t sig)
 {
 	char abuf[INET6_ADDRSTRLEN];
@@ -889,8 +890,8 @@ dump_acl6_rule(struct rte_mbuf *m, uint32_t sig)
 
 	printf("Packet Src");
-	printf("%s", inet_ntop(AF_INET6, ipv6_hdr->src_addr,
+	printf("%s", inet_ntop(AF_INET6, &ipv6_hdr->src_addr,
 		abuf, sizeof(abuf)));
 	printf("\nDst");
-	printf("%s", inet_ntop(AF_INET6, ipv6_hdr->dst_addr,
+	printf("%s", inet_ntop(AF_INET6, &ipv6_hdr->dst_addr,
 		abuf, sizeof(abuf)));
 
@@ -985,6 +986,6 @@ dump_denied_pkt(const struct rte_mbuf *pkt, uint32_t res)
 		if (RTE_ETH_IS_IPV4_HDR(pkt->packet_type))
 			dump_acl4_rule(pkt, res);
-		else if (RTE_ETH_IS_IPV6_HDR(pkt[i]->packet_type))
-			dump_acl6_rule(pkt[i], res[i]);
+		else if (RTE_ETH_IS_IPV6_HDR(pkt->packet_type))
+			dump_acl6_rule(pkt, res);
 	}
 #else
-- 
2.56.1

---
  Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- -	2026-12-03 12:52:51.952435159 +0000
+++ 0452-examples-l3fwd-fix-build-with-dataplane-debug.patch	2026-12-03 12:52:39.339938821 +0000
@@ -1 +1 @@
-From b72b398803e3c8a14aab41da2080767fedbb5521 Mon Sep 17 00:00:00 2001
+From ca015750f0e2792bc34d68fdc49068e0a8660f0f Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit b72b398803e3c8a14aab41da2080767fedbb5521 ]
+
@@ -19 +20,0 @@
-Cc: stable at dpdk.org
@@ -29 +30 @@
-index 11793c370d..a7f57978ad 100644
+index e59a95f3f0..ffe78f2916 100644
@@ -32 +33,2 @@
-@@ -116,4 +116,5 @@ Andrea Arcangeli <aarcange at redhat.com>
+@@ -114,4 +114,5 @@ Andre Richter <andre.o.richter at gmail.com>
+ Andrea Arcangeli <aarcange at redhat.com>
@@ -34 +35,0 @@
- Andrea Panattoni <apanatto at redhat.com>
@@ -39 +40 @@
-index 519a13e4da..8fcb4ef5fa 100644
+index dca611ffa0..1e337b0e7b 100644
@@ -42 +43 @@
-@@ -1758,4 +1758,5 @@ F: doc/guides/prog_guide/packet_classif_access_ctrl.rst
+@@ -1743,4 +1743,5 @@ F: doc/guides/prog_guide/packet_classif_access_ctrl.rst
@@ -49 +50 @@
-index 0605f6feb9..a49273b100 100644
+index a1275e18bc..e8c963dddb 100644
@@ -52 +53 @@
-@@ -240,4 +240,7 @@ RTE_ACL_RULE_DEF(acl4_rule, RTE_DIM(ipv4_defs));
+@@ -236,4 +236,7 @@ RTE_ACL_RULE_DEF(acl4_rule, RTE_DIM(ipv4_defs));
@@ -60 +61 @@
-@@ -256,6 +259,4 @@ static unsigned int acl_num_ipv4, route_num_ipv4,
+@@ -252,6 +255,4 @@ static unsigned int acl_num_ipv4, route_num_ipv4,
@@ -67 +68 @@
-@@ -860,7 +861,7 @@ print_one_ipv6_rule(struct acl6_rule *rule, int extra)
+@@ -856,7 +857,7 @@ print_one_ipv6_rule(struct acl6_rule *rule, int extra)
@@ -77 +78 @@
-@@ -868,7 +869,7 @@ dump_acl4_rule(struct rte_mbuf *m, uint32_t sig)
+@@ -864,7 +865,7 @@ dump_acl4_rule(struct rte_mbuf *m, uint32_t sig)
@@ -87 +88 @@
-@@ -884,5 +885,5 @@ dump_acl4_rule(struct rte_mbuf *m, uint32_t sig)
+@@ -880,5 +881,5 @@ dump_acl4_rule(struct rte_mbuf *m, uint32_t sig)
@@ -94 +95 @@
-@@ -893,8 +894,8 @@ dump_acl6_rule(struct rte_mbuf *m, uint32_t sig)
+@@ -889,8 +890,8 @@ dump_acl6_rule(struct rte_mbuf *m, uint32_t sig)
@@ -105 +106 @@
-@@ -989,6 +990,6 @@ dump_denied_pkt(const struct rte_mbuf *pkt, uint32_t res)
+@@ -985,6 +986,6 @@ dump_denied_pkt(const struct rte_mbuf *pkt, uint32_t res)



More information about the stable mailing list