net_sched: notify filter deletion when deleting a chain
Subsystems (3)
PATCH 1/1 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 <[email protected]>
Signed-off-by Cong Wang <[email protected]>
--- net/sched/cls_api.c | 2 ++ 1 file changed, 2 insertions(+)
net/sched/cls_api.c +2 -0
@@ -1902,6 +1902,8 @@ static int tc_ctl_chain(struct sk_buff *skb, struct nlmsghdr *n, 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
Signature · 1 line
2.14.4
From: Cong Wang <[email protected]>
Date: Tue, 11 Sep 2018 14:22:23 -0700
Quoted 7 lines
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 <[email protected]>Signed-off-by Cong Wang <[email protected]>
Applied, thanks Cong.