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@xxxxxxxxx Em qui, 13 de dez de 2018 às 18:58, David Ahern <dsahern@xxxxxxxxx> escreveu: > > 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 */