Re: [PATCH 04/15 net-next,v2] net: sched: add tcf_block_setup()

2019-07-05 Thread Jakub Kicinski
On Fri, 5 Jul 2019 01:48:32 +0200, Pablo Neira Ayuso wrote: > @@ -1052,12 +1145,19 @@ static int tcf_block_offload_cmd(struct tcf_block > *block, >struct netlink_ext_ack *extack) > { > struct tc_block_offload bo = {}; > + int err; > > bo.command

Re: [PATCH 04/15 net-next,v2] net: sched: add tcf_block_setup()

2019-07-05 Thread Jakub Kicinski
On Fri, 5 Jul 2019 01:48:32 +0200, Pablo Neira Ayuso wrote: > +static int tcf_block_bind(struct tcf_block *block, struct tc_block_offload > *bo) > +{ > + struct tcf_block_cb *block_cb, *next; > + int err, i = 0; > + > + list_for_each_entry(block_cb, &bo->cb_list, global_list) { > +

[PATCH 04/15 net-next,v2] net: sched: add tcf_block_setup()

2019-07-04 Thread Pablo Neira Ayuso
This new function allows us to handle tcf_block_cb registrations / unregistrations from the core, in order to remove a dependency with the tcf_block object and the .reoffload cls_api callback. The tcf_block_cb_add() call places the tcf_block_cb object, which has been set up by the driver, in the t