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>
This commit is contained in:

committed by
David S. Miller

parent
46410c2efa
commit
715df5ecab
@@ -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 *,
|
||||
|
Reference in New Issue
Block a user