Wed, Jul 10, 2019 at 09:36:52AM CEST, j...@resnulli.us wrote:
>Tue, Jul 09, 2019 at 10:55:43PM CEST, pa...@netfilter.org wrote:
>
>[...]
>
>
>>@@ -176,6 +176,7 @@ struct flow_block_cb *flow_block_cb_alloc(struct net
>>*net, tc_setup_cb_t *cb,
>> if (!block_cb)
>> return ERR_PTR(-
Tue, Jul 09, 2019 at 10:55:43PM CEST, pa...@netfilter.org wrote:
[...]
>@@ -176,6 +176,7 @@ struct flow_block_cb *flow_block_cb_alloc(struct net *net,
>tc_setup_cb_t *cb,
> if (!block_cb)
> return ERR_PTR(-ENOMEM);
>
>+ block_cb->net = net;
> block_cb->cb = cb;
>
This patch adds the list handling functions for the flow block API:
* flow_block_cb_lookup() allows drivers to look up for existing flow blocks.
* flow_block_cb_add() adds a flow block to the per driver list to be registered
by the core.
* flow_block_cb_remove() to remove a flow block from the l