Re: [PATCH net-next 11/12] net: sched: flower: track rtnl lock state

2019-02-18 Thread Vlad Buslov
On Fri 15 Feb 2019 at 22:46, Stefano Brivio wrote: > On Thu, 14 Feb 2019 09:47:11 +0200 > Vlad Buslov wrote: > >> static int fl_hw_replace_filter(struct tcf_proto *tp, >> -struct cls_fl_filter *f, >> +struct cls_fl_filter *f, bool rtnl_he

Re: [PATCH net-next 11/12] net: sched: flower: track rtnl lock state

2019-02-15 Thread Stefano Brivio
On Thu, 14 Feb 2019 09:47:11 +0200 Vlad Buslov wrote: > static int fl_hw_replace_filter(struct tcf_proto *tp, > - struct cls_fl_filter *f, > + struct cls_fl_filter *f, bool rtnl_held, > struct netlink_ext_ack *

[PATCH net-next 11/12] net: sched: flower: track rtnl lock state

2019-02-13 Thread Vlad Buslov
Use 'rtnl_held' flag to track if caller holds rtnl lock. Propagate the flag to internal functions that need to know rtnl lock state. Take rtnl lock before calling tcf APIs that require it (hw offload, bind filter, etc.). Signed-off-by: Vlad Buslov Acked-by: Jiri Pirko --- net/sched/cls_flower.c