patch 'examples/l3fwd: fix build with dataplane debug' has been queued to stable release 24.11.9
luca.boccassi at gmail.com
luca.boccassi at gmail.com
Mon Nov 16 23:52:41 CET 2026
Hi,
FYI, your patch has been queued to stable release 24.11.9
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/18/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/0a05915dfe22c70ddbcb18c3cbe81300b27336eb
Thanks.
Luca Boccassi
---
>From 0a05915dfe22c70ddbcb18c3cbe81300b27336eb 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 | 3 +++
MAINTAINERS | 1 +
examples/l3fwd/l3fwd_acl.c | 23 ++++++++++++-----------
3 files changed, 16 insertions(+), 11 deletions(-)
diff --git a/.mailmap b/.mailmap
index c748baad01..3ad1fc1950 100644
--- a/.mailmap
+++ b/.mailmap
@@ -114,6 +114,9 @@ Andre Muezerie <andremue at linux.microsoft.com> <andremue at microsoft.com>
Andrea Arcangeli <aarcange at redhat.com>
Andrea Grandi <andrea.grandi at intel.com>
Andre Richter <andre.o.richter at gmail.com>
+Andrea Panattoni <apanatto at redhat.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>
Andrew Harvey <agh at cisco.com>
Andrew Jackson <ajackson at solarflare.com>
diff --git a/MAINTAINERS b/MAINTAINERS
index e08693efae..c52373ca2b 100644
--- a/MAINTAINERS
+++ b/MAINTAINERS
@@ -1689,6 +1689,7 @@ F: lib/acl/
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
M: Byron Marohn <byron.marohn at intel.com>
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
@@ -235,6 +235,9 @@ enum {
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];
struct rte_acl_ctx *acx_ipv6[NB_SOCKETS];
@@ -251,8 +254,6 @@ static struct rte_acl_rule *acl_base_ipv4, *route_base_ipv4,
static unsigned int acl_num_ipv4, route_num_ipv4,
acl_num_ipv6, route_num_ipv6;
-#include "l3fwd_acl.h"
-
#include "l3fwd_acl_scalar.h"
/*
@@ -855,17 +856,17 @@ 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 =
rte_pktmbuf_mtod_offset(m, struct rte_ipv4_hdr *,
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)));
printf("Src port:%hu,Dst port:%hu ",
@@ -879,7 +880,7 @@ 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];
uint32_t offset = sig & ~ACL_DENY_SIGNATURE;
@@ -888,10 +889,10 @@ dump_acl6_rule(struct rte_mbuf *m, uint32_t sig)
sizeof(struct rte_ether_hdr));
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)));
printf("\nSrc port:%hu,Dst port:%hu ",
@@ -984,8 +985,8 @@ dump_denied_pkt(const struct rte_mbuf *pkt, uint32_t res)
if ((res & ACL_DENY_SIGNATURE) != 0) {
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
RTE_SET_USED(pkt);
--
2.47.3
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2026-11-16 22:52:19.900589178 +0000
+++ 0087-examples-l3fwd-fix-build-with-dataplane-debug.patch 2026-11-16 22:52:16.548235074 +0000
@@ -1 +1 @@
-From b72b398803e3c8a14aab41da2080767fedbb5521 Mon Sep 17 00:00:00 2001
+From 0a05915dfe22c70ddbcb18c3cbe81300b27336eb Mon Sep 17 00:00:00 2001
@@ -5,0 +6,2 @@
+[ upstream commit b72b398803e3c8a14aab41da2080767fedbb5521 ]
+
@@ -19 +20,0 @@
-Cc: stable at dpdk.org
@@ -23 +24 @@
- .mailmap | 1 +
+ .mailmap | 3 +++
@@ -26 +27 @@
- 3 files changed, 14 insertions(+), 11 deletions(-)
+ 3 files changed, 16 insertions(+), 11 deletions(-)
@@ -29 +30 @@
-index 11793c370d..a7f57978ad 100644
+index c748baad01..3ad1fc1950 100644
@@ -32 +33 @@
-@@ -115,6 +115,7 @@ Andre Richter <andre.o.richter at gmail.com>
+@@ -114,6 +114,9 @@ Andre Muezerie <andremue at linux.microsoft.com> <andremue at microsoft.com>
@@ -35 +36,2 @@
- Andrea Panattoni <apanatto at redhat.com>
+ Andre Richter <andre.o.richter at gmail.com>
++Andrea Panattoni <apanatto at redhat.com>
@@ -37 +39 @@
- Andrew Bailey <abailey at iol.unh.edu>
++Andrew Bailey <abailey at iol.unh.edu>
@@ -39,0 +42 @@
+ Andrew Jackson <ajackson at solarflare.com>
@@ -41 +44 @@
-index 519a13e4da..8fcb4ef5fa 100644
+index e08693efae..c52373ca2b 100644
@@ -44 +47 @@
-@@ -1757,6 +1757,7 @@ F: lib/acl/
+@@ -1689,6 +1689,7 @@ F: lib/acl/
@@ -51 +54 @@
- M: Yipeng Wang <yipeng1.wang at intel.com>
+ M: Byron Marohn <byron.marohn at intel.com>
@@ -53 +56 @@
-index 0605f6feb9..a49273b100 100644
+index a1275e18bc..e8c963dddb 100644
@@ -56 +59 @@
-@@ -239,6 +239,9 @@ enum {
+@@ -235,6 +235,9 @@ enum {
@@ -66 +69 @@
-@@ -255,8 +258,6 @@ static struct rte_acl_rule *acl_base_ipv4, *route_base_ipv4,
+@@ -251,8 +254,6 @@ static struct rte_acl_rule *acl_base_ipv4, *route_base_ipv4,
@@ -75 +78 @@
-@@ -859,17 +860,17 @@ print_one_ipv6_rule(struct acl6_rule *rule, int extra)
+@@ -855,17 +856,17 @@ print_one_ipv6_rule(struct acl6_rule *rule, int extra)
@@ -97 +100 @@
-@@ -883,7 +884,7 @@ dump_acl4_rule(struct rte_mbuf *m, uint32_t sig)
+@@ -879,7 +880,7 @@ dump_acl4_rule(struct rte_mbuf *m, uint32_t sig)
@@ -106 +109 @@
-@@ -892,10 +893,10 @@ dump_acl6_rule(struct rte_mbuf *m, uint32_t sig)
+@@ -888,10 +889,10 @@ dump_acl6_rule(struct rte_mbuf *m, uint32_t sig)
@@ -119 +122 @@
-@@ -988,8 +989,8 @@ dump_denied_pkt(const struct rte_mbuf *pkt, uint32_t res)
+@@ -984,8 +985,8 @@ dump_denied_pkt(const struct rte_mbuf *pkt, uint32_t res)
More information about the stable
mailing list