diff options
author | Jiri Pirko <jiri@mellanox.com> | 2017-10-13 15:00:57 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-16 23:00:40 +0300 |
commit | 69d78ef25c7b0058674145500efb12255738ba8a (patch) | |
tree | 60de21515aa005a877989e49434e14a6a393cc15 /net/sched/cls_api.c | |
parent | 32302902ff093891d8e64439cbb8ceae83e21ef8 (diff) | |
download | linux-69d78ef25c7b0058674145500efb12255738ba8a.tar.xz |
net: sched: store Qdisc pointer in struct block
Prepare for removal of tp->q and store Qdisc pointer in the block
structure.
Signed-off-by: Jiri Pirko <jiri@mellanox.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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c index 2977b8a90851..f7d3f1f539b7 100644 --- a/net/sched/cls_api.c +++ b/net/sched/cls_api.c @@ -241,7 +241,7 @@ tcf_chain_filter_chain_ptr_set(struct tcf_chain *chain, } int tcf_block_get(struct tcf_block **p_block, - struct tcf_proto __rcu **p_filter_chain) + struct tcf_proto __rcu **p_filter_chain, struct Qdisc *q) { struct tcf_block *block = kzalloc(sizeof(*block), GFP_KERNEL); struct tcf_chain *chain; @@ -257,6 +257,7 @@ int tcf_block_get(struct tcf_block **p_block, goto err_chain_create; } tcf_chain_filter_chain_ptr_set(chain, p_filter_chain); + block->q = q; *p_block = block; return 0; |