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