[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xdp-newbies
Subject:    Re: Which interface is the program running...
From:       Rafael Vargas <vargas () khomp ! com>
Date:       2018-12-13 21:01:58
Message-ID: CAEaYocYwjyC5s16vUvW5v=77==YrL2=O6PN8r=onfMOcNMamnA () mail ! gmail ! com
[Download RAW message or body]

Thanks David,

I was using the xdp_md context with only the data and data_end. Should
have dig deeper in the headers of the new kernel.

Rafael Vargas

Rafael Vargas
TELECOM

tel:  +55 48 3722 2900
cel:  +55 48 99612 0276
email:  vargas@khomp.com



Em qui, 13 de dez de 2018 =C3=A0s 18:58, David Ahern <dsahern@gmail.com> es=
creveu:
>
> On 12/13/18 1:54 PM, Rafael Vargas wrote:
> > Hi all,
> >
> > I've being doing some tests and could not find a way within the
> > program to know in which interface is the XDP program running.
> >
> > I install the same program to several interfaces (with
> > bpf_set_link_xdp_fd), is there any way to do that?
> >
>
> xdp_md is the context passed to XDP programs. xdp_md has:
>
>         __u32 ingress_ifindex; /* rxq->dev->ifindex */
>         __u32 rx_queue_index;  /* rxq->queue_index  */
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic