On 7 Dec 2019, at 17:51, Alexei Starovoitov wrote: > On Fri, Dec 6, 2019 at 5:05 AM Eelco Chaudron <echaudro@xxxxxxxxxx> wrote: >> >> Thanks the hint that it should be the jitted arguments solved it… And >> you quick example worked, just in case some one else is playing with it, >> here is my working example: >> <SNIP> > This is great. Could you submit it as selftests/bpf ? Good idea, sent a patch out... > It will help others trying to do the same. > May be instead of bpf_debug() use global variables so the test will be > self checking ? > > Long term we should teach verifier to understand 'struct xdp_md*' > in addition to 'struct xdp_buff *'. That will help ease of use.