From: Cong Wang Date: Tue, 11 Sep 2018 21:22:23 +0000 (-0700) Subject: net_sched: notify filter deletion when deleting a chain X-Git-Tag: v4.19~169^2~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f5b9bac7451cfc962970cb3fa3a7027ffa69e369;p=platform%2Fkernel%2Flinux-rpi3.git net_sched: notify filter deletion when deleting a chain When we delete a chain of filters, we need to notify user-space we are deleting each filters in this chain too. Fixes: 32a4f5ecd738 ("net: sched: introduce chain object to uapi") Cc: Jiri Pirko Signed-off-by: Cong Wang Signed-off-by: David S. Miller --- diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c index 1a67af8..0a75cb2e 100644 --- a/net/sched/cls_api.c +++ b/net/sched/cls_api.c @@ -1902,6 +1902,8 @@ replay: RTM_NEWCHAIN, false); break; case RTM_DELCHAIN: + tfilter_notify_chain(net, skb, block, q, parent, n, + chain, RTM_DELTFILTER); /* Flush the chain first as the user requested chain removal. */ tcf_chain_flush(chain); /* In case the chain was successfully deleted, put a reference