Re: xdp forward issue

team lnx <[email protected]> Mon, 19 Dec 2022 20:22:57 -0800
Newsgroups org.kernel.vger.xdp-newbies
Message-ID <CAOLRUnApBOYXXhOvV_2qzELQD+bTWERqEDOR9sgOYrTiU=J_MQ@mail.gmail.com>
Thank you, it helped !!


On Tue, Dec 6, 2022 at 7:05 PM David Ahern <[email protected]> wrote:
>
> On 12/6/22 5:26 PM, team lnx wrote:
> >
> > Sure, I did search for it and read some article but found that
> > BPF_FIB_LKUP_RET_NOT_FWDED means packets
> > are not forwarded and only unicast are forwarded. Verified prog id and
> > map id using bpftool to confirm if it has any issue
>
> ok, so this one:
>
>         if (res.type != RTN_UNICAST)
>                 return BPF_FIB_LKUP_RET_NOT_FWDED;
>
> and the discussion about local return. If this is really supposed to be
> forwarding and not local delivery, the next step is verifying the
> routing tables and fib lookup parameters:
>     perf record -e fib:* -a
>     <run test>
>     ctrl-c
>     perf script
>
> the tracepoints will show you input variables, table ids and result.
>
> >
> > interface details:
> > prog/xdp id: 4
> > map_ids: 1
> > btf_id: 7
> >
> > ./bpftool map show id 1
> > 1: devmap  name xdp_tx_ports  flags 0x80
> >
> > Any hints or suggestions on debugging this issue would be helpful !
> >
> > Thanks
>