third_party_libbpf/include/uapi/linux
David Ahern ff3116bfcb xdp: Add xdp_txq_info to xdp_buff
Add xdp_txq_info as the Tx counterpart to xdp_rxq_info. At the
moment only the device is added. Other fields (queue_index)
can be added as use cases arise.

>From a UAPI perspective, add egress_ifindex to xdp context for
bpf programs to see the Tx device.

Update the verifier to only allow accesses to egress_ifindex by
XDP programs with BPF_XDP_DEVMAP expected attach type.

Signed-off-by: David Ahern <dsahern@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Toke Høiland-Jørgensen <toke@redhat.com>
Link: https://lore.kernel.org/bpf/20200529220716.75383-4-dsahern@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
2020-06-01 22:22:32 -07:00
..
bpf_common.h mirror uapi/linux/bpf_common.h file (#2) 2018-10-12 12:57:55 -07:00
bpf.h xdp: Add xdp_txq_info to xdp_buff 2020-06-01 22:22:32 -07:00
btf.h libbpf: Sanitize global functions 2020-01-10 11:15:12 -08:00
if_link.h net: bridge: Add port attribute IFLA_BRPORT_MRP_RING_OPEN 2020-05-20 01:00:06 -07:00
if_xdp.h libbpf: add flags to umem config 2019-09-26 13:29:16 -07:00
netlink.h sync with latest bpf-next (#6) 2019-01-03 12:44:33 -08:00