Re: [RFC net-next 5/8] nfp: bpf: take a reference on offloaded programs

2017-06-19 Thread Jakub Kicinski
On Tue, 20 Jun 2017 01:23:05 +0200, Daniel Borkmann wrote: > On 06/17/2017 01:57 AM, Jakub Kicinski wrote: > > The xdp_prog member of the adapter's data path structure is used > > for XDP in driver mode. In case a XDP program is loaded with in > > HW-only mode, we need to store it somewhere else.

Re: [RFC net-next 5/8] nfp: bpf: take a reference on offloaded programs

2017-06-19 Thread Daniel Borkmann
On 06/17/2017 01:57 AM, Jakub Kicinski wrote: The xdp_prog member of the adapter's data path structure is used for XDP in driver mode. In case a XDP program is loaded with in HW-only mode, we need to store it somewhere else. Add a new XDP prog pointer in the main structure and use that when we

[RFC net-next 5/8] nfp: bpf: take a reference on offloaded programs

2017-06-16 Thread Jakub Kicinski
The xdp_prog member of the adapter's data path structure is used for XDP in driver mode. In case a XDP program is loaded with in HW-only mode, we need to store it somewhere else. Add a new XDP prog pointer in the main structure and use that when we need to know whether any XDP program is loaded,