summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2018-07-26 19:27:58 +0300
committerDavid S. Miller <davem@davemloft.net>2018-07-27 00:12:58 +0300
commitc921d7db3d1248c9091af070a7fdce2e55baa86a (patch)
tree5fea06e97cb1f4b42d743e0ecb102a517ee034b9
parent0a26cf3ff47d9e70fbed2fa79b0678ee70e25113 (diff)
downloadlinux-c921d7db3d1248c9091af070a7fdce2e55baa86a.tar.xz
net: sched: unmark chain as explicitly created on delete
Once user manually deletes the chain using "chain del", the chain cannot be marked as explicitly created anymore. Signed-off-by: Jiri Pirko <jiri@mellanox.com> Fixes: 32a4f5ecd738 ("net: sched: introduce chain object to uapi") Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--net/sched/cls_api.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c
index f3d78c23338e..75cce2819de9 100644
--- a/net/sched/cls_api.c
+++ b/net/sched/cls_api.c
@@ -1844,6 +1844,7 @@ replay:
* to the chain previously taken during addition.
*/
tcf_chain_put_explicitly_created(chain);
+ chain->explicitly_created = false;
break;
case RTM_GETCHAIN:
err = tc_chain_notify(chain, skb, n->nlmsg_seq,