Re: [PATCH v10 04/12] rtnl: add option for setting link xdp prog

2016-07-20 Thread Brenden Blanco
On Wed, Jul 20, 2016 at 10:38:49AM +0200, Daniel Borkmann wrote: > On 07/19/2016 09:16 PM, Brenden Blanco wrote: > >Sets the bpf program represented by fd as an early filter in the rx path > >of the netdev. The fd must have been created as BPF_PROG_TYPE_XDP. > >Providing a negative value as fd clea

Re: [PATCH v10 04/12] rtnl: add option for setting link xdp prog

2016-07-20 Thread Daniel Borkmann
On 07/19/2016 09:16 PM, Brenden Blanco wrote: Sets the bpf program represented by fd as an early filter in the rx path of the netdev. The fd must have been created as BPF_PROG_TYPE_XDP. Providing a negative value as fd clears the program. Getting the fd back via rtnl is not possible, therefore re

[PATCH v10 04/12] rtnl: add option for setting link xdp prog

2016-07-19 Thread Brenden Blanco
Sets the bpf program represented by fd as an early filter in the rx path of the netdev. The fd must have been created as BPF_PROG_TYPE_XDP. Providing a negative value as fd clears the program. Getting the fd back via rtnl is not possible, therefore reading of this value merely provides a bool wheth