Re: [RFC net-next 7/8] xdp: add reporting of offload mode

2017-06-19 Thread Daniel Borkmann
On 06/17/2017 01:57 AM, Jakub Kicinski wrote: Extend the XDP_ATTACHED_* values to include offloaded mode. Let drivers report whether program is installed in the driver or the HW by changing the prog_attached field from bool to u8 (type of the netlink attribute). Exploit the fact that the value o

[RFC net-next 7/8] xdp: add reporting of offload mode

2017-06-16 Thread Jakub Kicinski
Extend the XDP_ATTACHED_* values to include offloaded mode. Let drivers report whether program is installed in the driver or the HW by changing the prog_attached field from bool to u8 (type of the netlink attribute). Exploit the fact that the value of XDP_ATTACHED_DRV is 1, therefore since all dri