summaryrefslogtreecommitdiffstats
path: root/net/sched/cls_cgroup.c
diff options
context:
space:
mode:
authorJakub Kicinski <jakub.kicinski@netronome.com>2018-01-24 21:54:13 +0100
committerDavid S. Miller <davem@davemloft.net>2018-01-24 22:01:09 +0100
commit715df5ecab0f22685930cb8bb0cc70ed8fb9279e (patch)
treefb334ed46c620e7e88595867c7facc3def3e01c7 /net/sched/cls_cgroup.c
parentMerge branch 'pktgen-Behavior-flags-fixes' (diff)
downloadlinux-715df5ecab0f22685930cb8bb0cc70ed8fb9279e.tar.xz
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 'net/sched/cls_cgroup.c')
-rw-r--r--net/sched/cls_cgroup.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sched/cls_cgroup.c b/net/sched/cls_cgroup.c
index 1b54fbfca414..762da5c0cf5e 100644
--- a/net/sched/cls_cgroup.c
+++ b/net/sched/cls_cgroup.c
@@ -143,7 +143,8 @@ errout:
return err;
}
-static void cls_cgroup_destroy(struct tcf_proto *tp)
+static void cls_cgroup_destroy(struct tcf_proto *tp,
+ struct netlink_ext_ack *extack)
{
struct cls_cgroup_head *head = rtnl_dereference(tp->root);