Return the new filter through *arg, as the other classifiers do. cls_cgroup_change() never sets it, so the RTM_NEWTFILTER notification for a cgroup add or replace has handle 0 and no TCA_OPTIONS: # tc -echo filter add dev d0 ingress handle 7 pref 1 cgroup action ok added filter dev d0 ingress protocol all pref 1 cgroup chain 0 With this patch it carries handle 0x7 and the action. Fixes: f400923735ec ("pkt_sched: Control group classifier") Signed-off-by: Dave Seddon <dave…@gmail.com> --- net/sched/cls_cgroup.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/sched/cls_cgroup.c b/net/sched/cls_cgroup.c index 28701d3916b8..521901d8538c 100644 --- a/net/sched/cls_cgroup.c +++ b/net/sched/cls_cgroup.c @@ -119,6 +119,7 @@ static int cls_cgroup_change(struct net *net, struct sk_buff *in_skb, if (err < 0) goto errout; + *arg = new; rcu_assign_pointer(tp->root, new); if (head) { tcf_exts_get_net(&head->exts);
-- 2.56.0