Files
kernel_arpi/include/uapi/linux
Jesper Dangaard Brouer 02dd3291b2 bpf: finally expose xdp_rxq_info to XDP bpf-programs
Now all XDP driver have been updated to setup xdp_rxq_info and assign
this to xdp_buff->rxq.  Thus, it is now safe to enable access to some
of the xdp_rxq_info struct members.

This patch extend xdp_md and expose UAPI to userspace for
ingress_ifindex and rx_queue_index.  Access happens via bpf
instruction rewrite, that load data directly from struct xdp_rxq_info.

* ingress_ifindex map to xdp_rxq_info->dev->ifindex
* rx_queue_index  map to xdp_rxq_info->queue_index

Signed-off-by: Jesper Dangaard Brouer <brouer@redhat.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2018-01-05 15:21:22 -08:00
..
2017-08-31 17:32:38 -04:00
2017-11-24 16:22:58 -07:00
2017-11-08 11:20:49 +09:00
2017-12-27 12:11:51 -05:00
2017-12-15 13:35:36 -05:00
2017-11-24 10:18:41 +00:00
2017-11-16 10:49:00 +09:00
2017-11-11 18:53:16 +09:00
2017-08-04 10:30:27 +02:00