Re: [PATCH RFC bpf-next 3/4] xdp: Add xdp_txq_info to xdp_buff

2020-05-22 Thread David Ahern
On 5/22/20 10:04 AM, Toke Høiland-Jørgensen wrote: > David Ahern writes: > >> 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

Re: [PATCH RFC bpf-next 3/4] xdp: Add xdp_txq_info to xdp_buff

2020-05-22 Thread Toke Høiland-Jørgensen
David Ahern writes: > 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. > > Update the verifier to only allow accesses to e

[PATCH RFC bpf-next 3/4] xdp: Add xdp_txq_info to xdp_buff

2020-05-21 Thread David Ahern
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. Update the verifier to only allow accesses to egress_ifindex by XDP programs wit