diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2018-01-24 23:54:13 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-25 00:01:09 +0300 |
commit | 715df5ecab0f22685930cb8bb0cc70ed8fb9279e (patch) | |
tree | fb334ed46c620e7e88595867c7facc3def3e01c7 /net/sched/cls_fw.c | |
parent | 46410c2efa9cb5b2f40c9ce24a75d147f44aedeb (diff) | |
download | linux-715df5ecab0f22685930cb8bb0cc70ed8fb9279e.tar.xz |
net: sched: propagate extack to cls->destroy callbacks
Propagate extack to cls->destroy callbacks when called from
non-error paths. On error paths pass NULL to avoid overwriting
the failure message.
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/cls_fw.c')
-rw-r--r-- | net/sched/cls_fw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sched/cls_fw.c b/net/sched/cls_fw.c index 94d159a8869a..8b207723fbc2 100644 --- a/net/sched/cls_fw.c +++ b/net/sched/cls_fw.c @@ -149,7 +149,7 @@ static void fw_delete_filter(struct rcu_head *head) tcf_queue_work(&f->work); } -static void fw_destroy(struct tcf_proto *tp) +static void fw_destroy(struct tcf_proto *tp, struct netlink_ext_ack *extack) { struct fw_head *head = rtnl_dereference(tp->root); struct fw_filter *f; |