diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2018-01-24 12:54:13 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-24 16:01:09 -0500 |
commit | 715df5ecab0f22685930cb8bb0cc70ed8fb9279e (patch) | |
tree | fb334ed46c620e7e88595867c7facc3def3e01c7 /include/net | |
parent | 46410c2efa9cb5b2f40c9ce24a75d147f44aedeb (diff) | |
download | linux-715df5ecab0f22685930cb8bb0cc70ed8fb9279e.tar.gz linux-715df5ecab0f22685930cb8bb0cc70ed8fb9279e.tar.bz2 linux-715df5ecab0f22685930cb8bb0cc70ed8fb9279e.zip |
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 'include/net')
-rw-r--r-- | include/net/sch_generic.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index cd1be1f25c36..eac43e8ca96d 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_generic.h @@ -233,7 +233,8 @@ struct tcf_proto_ops { const struct tcf_proto *, struct tcf_result *); int (*init)(struct tcf_proto*); - void (*destroy)(struct tcf_proto*); + void (*destroy)(struct tcf_proto *tp, + struct netlink_ext_ack *extack); void* (*get)(struct tcf_proto*, u32 handle); int (*change)(struct net *net, struct sk_buff *, |