Re: [PATCH net-next 07/12] net: use tcf_block_setup() infrastructure

2019-07-02 Thread Marcelo Ricardo Leitner
On Thu, Jun 20, 2019 at 09:49:12PM +0200, Pablo Neira Ayuso wrote: ... > @@ -1173,8 +1191,10 @@ static int tcf_block_offload_cmd(struct tcf_block > *block, > struct tc_block_offload bo = {}; > int err; > > + bo.net = dev_net(dev); > bo.command = command; > bo.binder_t

[PATCH net-next 07/12] net: use tcf_block_setup() infrastructure

2019-06-20 Thread Pablo Neira Ayuso
This allows us to register / unregister tcf_block_cb objects from the core. The idea is to allocate and to set up the tcf_block_cb objects from the driver, attach them to the tc_block_offload->cb_list, then the core iterates over this block list to registers them. Signed-off-by: Pablo Neira Ayuso