aboutsummaryrefslogtreecommitdiffstats
path: root/net/sched/cls_api.c
diff options
context:
space:
mode:
authorJiri Pirko <[email protected]>2018-07-26 16:27:58 +0000
committerDavid S. Miller <[email protected]>2018-07-26 21:12:58 +0000
commitc921d7db3d1248c9091af070a7fdce2e55baa86a (patch)
tree5fea06e97cb1f4b42d743e0ecb102a517ee034b9 /net/sched/cls_api.c
parenttls: Skip zerocopy path for ITER_KVEC (diff)
downloadkernel-c921d7db3d1248c9091af070a7fdce2e55baa86a.tar.gz
kernel-c921d7db3d1248c9091af070a7fdce2e55baa86a.zip
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 <[email protected]> Fixes: 32a4f5ecd738 ("net: sched: introduce chain object to uapi") Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/sched/cls_api.c')
-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,