Re: [PATCH nf-next,RFC v4] netfilter: nf_flow_table: add hardware offload support

2018-01-29 Thread Pablo Neira Ayuso
Hi Jakub, On Thu, Jan 25, 2018 at 02:38:46PM -0800, Jakub Kicinski wrote: > On Thu, 25 Jan 2018 12:28:58 +0100, Pablo Neira Ayuso wrote: [...] > Ah, I must be misunderstanding. I meant when device is removed, not > the flow_table_hw module. Does the nf_flow_table_hw_module_exit() run > when

Re: [PATCH nf-next,RFC v4] netfilter: nf_flow_table: add hardware offload support

2018-01-25 Thread Jakub Kicinski
On Thu, 25 Jan 2018 12:28:58 +0100, Pablo Neira Ayuso wrote: > On Wed, Jan 24, 2018 at 05:31:36PM -0800, Jakub Kicinski wrote: > > On Thu, 25 Jan 2018 01:09:41 +0100, Pablo Neira Ayuso wrote: > > > This patch adds the infrastructure to offload flows to hardware, in case > > > the nic/switch

Re: [PATCH nf-next,RFC v4] netfilter: nf_flow_table: add hardware offload support

2018-01-25 Thread Pablo Neira Ayuso
On Wed, Jan 24, 2018 at 05:31:36PM -0800, Jakub Kicinski wrote: > On Thu, 25 Jan 2018 01:09:41 +0100, Pablo Neira Ayuso wrote: > > This patch adds the infrastructure to offload flows to hardware, in case > > the nic/switch comes with built-in flow tables capabilities. > > > > If the hardware

Re: [PATCH nf-next,RFC v4] netfilter: nf_flow_table: add hardware offload support

2018-01-24 Thread Jakub Kicinski
On Thu, 25 Jan 2018 01:09:41 +0100, Pablo Neira Ayuso wrote: > This patch adds the infrastructure to offload flows to hardware, in case > the nic/switch comes with built-in flow tables capabilities. > > If the hardware comes with no hardware flow tables or they have > limitations in terms of

[PATCH nf-next,RFC v4] netfilter: nf_flow_table: add hardware offload support

2018-01-24 Thread Pablo Neira Ayuso
This patch adds the infrastructure to offload flows to hardware, in case the nic/switch comes with built-in flow tables capabilities. If the hardware comes with no hardware flow tables or they have limitations in terms of features, the existing infrastructure falls back to the software flow table