David Ahern 64b59025c1 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 14:48:32 -07:00
..
2020-05-22 14:00:38 -07:00
2020-05-29 13:10:39 -07:00
2019-01-23 11:18:00 -08:00
2020-05-20 20:31:32 -04:00
2020-03-23 21:57:44 -07:00
2020-05-05 13:23:29 -07:00
2019-10-23 20:13:22 -07:00
2019-12-09 10:36:44 -08:00
2020-05-28 11:11:45 -07:00
2020-05-28 11:11:46 -07:00
2018-09-13 09:04:58 -07:00
2019-12-09 10:36:44 -08:00
2020-03-04 13:25:55 -08:00
2018-05-16 07:23:35 +02:00
2020-03-23 21:57:44 -07:00
2020-03-29 22:30:57 -07:00
2019-04-22 21:47:25 -07:00
2019-10-05 16:29:00 -07:00
2020-05-29 13:10:39 -07:00
2020-05-29 17:31:10 -07:00
2020-03-09 22:34:58 +01:00
2019-12-09 10:28:43 -08:00
2020-06-01 14:48:32 -07:00