diff options
author | Cong Wang <xiyou.wangcong@gmail.com> | 2018-09-11 23:22:23 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-09-13 18:07:40 +0200 |
commit | f5b9bac7451cfc962970cb3fa3a7027ffa69e369 (patch) | |
tree | 222cf5425ccd1483fbd71f7b3caa04ade3e240d5 /net/sched/cls_api.c | |
parent | xen/netfront: don't bug in case of too many frags (diff) | |
download | linux-f5b9bac7451cfc962970cb3fa3a7027ffa69e369.tar.xz linux-f5b9bac7451cfc962970cb3fa3a7027ffa69e369.zip |
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 <jiri@mellanox.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/cls_api.c')
-rw-r--r-- | net/sched/cls_api.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c index 1a67af8a6e8c..0a75cb2e5e7b 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 |