]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
net: sched: unmark chain as explicitly created on delete
authorJiri Pirko <jiri@mellanox.com>
Thu, 26 Jul 2018 16:27:58 +0000 (18:27 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Jul 2018 21:12:58 +0000 (14:12 -0700)
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>
net/sched/cls_api.c

index f3d78c23338e7cf4cbb59f3471ca7e3ef6efd60f..75cce2819de96f63d598b5790e83968e2dc211ae 100644 (file)
@@ -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,