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
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 *
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