Re: Which interface is the program running...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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  */



[Index of Archives]     [Linux Networking Development]     [Fedora Linux Users]     [Linux SCTP]     [DCCP]     [Gimp]     [Yosemite Campsites]

  Powered by Linux