On Sun, Aug 04, 2019 at 09:24:00PM +0800, wenxu@xxxxxxxxx wrote: > From: wenxu <wenxu@xxxxxxxxx> > > It provide a callback list to find the blocks of tc > and nft subsystems > > Signed-off-by: wenxu <wenxu@xxxxxxxxx> > --- > v6: new patch > > include/net/flow_offload.h | 10 +++++++++- > net/core/flow_offload.c | 47 +++++++++++++++++++++++++++++++++------------- > net/sched/cls_api.c | 9 ++++++++- > 3 files changed, 51 insertions(+), 15 deletions(-) > > diff --git a/include/net/flow_offload.h b/include/net/flow_offload.h > index 8f1a7b8..6022dd0 100644 > --- a/include/net/flow_offload.h > +++ b/include/net/flow_offload.h > @@ -375,6 +375,15 @@ typedef void flow_indr_block_ing_cmd_t(struct net_device *dev, > void *cb_priv, > enum flow_block_command command); > > +struct flow_indr_block_ing_entry { > + flow_indr_block_ing_cmd_t *cb; > + struct list_head list; > +}; > + > +void flow_indr_add_block_ing_cb(struct flow_indr_block_ing_entry *entry); > + > +void flow_indr_del_block_ing_cb(struct flow_indr_block_ing_entry *entry); Twice the same?