Re: num_args branch
dave seddon <[email protected]> Mon, 16 Feb 2026 17:03:22 -0800
| Newsgroups | dev.linux.lists.xdp2 |
|---|---|
| Message-ID | <CANypexTqsJYnj_1MEoCK3gTyg9NDHUm_qp0wvc=E-WZWrczwXw@mail.gmail.com> |
G'day,
I just got all the samples working with the 5 args. Awesome!
Changing common_parser.template.c was required to get parser_tmpl -O workin=
g
--------------------
[das@l:~/Downloads/xdp2]$ git diff src/templates/xdp2/common_parser.templat=
e.c
diff --git a/src/templates/xdp2/common_parser.template.c
b/src/templates/xdp2/common_parser.template.c
index 82792e6..91f5bb3 100644
--- a/src/templates/xdp2/common_parser.template.c
+++ b/src/templates/xdp2/common_parser.template.c
@@ -50,7 +50,7 @@ static inline __unused() int
<!--(end)-->
ret =3D __@!parser_name!@_@!root_name!@_xdp2_parse(
- parser, hdr, len, metadata, frame, 0, ctrl, flags);
+ parser, hdr, len, metadata, &frame, 0, ctrl, flags)=
;
ctrl->var.ret_code =3D ret;
[das@l:~/Downloads/xdp2]$
--------------------
Starting to work on the samples/xdp/ next
Thanks!
Dave
On Sun, Feb 15, 2026 at 8:14=E2=80=AFPM dave seddon <[email protected]=
om> wrote:
>
> Awesome. Thanks for the update. I'll try to take a look tomorrow.
>
>
> On Sun, Feb 15, 2026 at 5:21=E2=80=AFPM Tom Herbert <[email protected]>=
wrote:
> >
> > HI,
> >
> > I added a num_args branch in xdp2-dev/xdp2 that has the proposed fix fo=
r the handlers and metadata extraction functions exceeding the five argumen=
t limit of eBPF. Haven't tested much yet. Please give it a try if you can.
> >
> > Tom
> >
>
>
> --
> Regards,
> Dave Seddon
> +1 415 857 5102
--=20
Regards,
Dave Seddon
+1 415 857 5102