diff options
| author | Jiri Pirko <[email protected]> | 2017-10-13 12:00:58 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2017-10-16 20:00:40 +0000 |
| commit | 855319becbcffec6988a4e781a861b69a71c5b58 (patch) | |
| tree | e107ff9b687f26c094e8457d05e62492ff38a6e8 /net/sched/cls_api.c | |
| parent | net: sched: store Qdisc pointer in struct block (diff) | |
| download | kernel-855319becbcffec6988a4e781a861b69a71c5b58.tar.gz kernel-855319becbcffec6988a4e781a861b69a71c5b58.zip | |
net: sched: store net pointer in block and introduce qdisc_net helper
Store net pointer in the block structure. Along the way, introduce
qdisc_net helper which allows to easily obtain net pointer for
qdisc instance.
Signed-off-by: Jiri Pirko <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'net/sched/cls_api.c')
| -rw-r--r-- | net/sched/cls_api.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/sched/cls_api.c b/net/sched/cls_api.c index f7d3f1f539b7..856003caa3bb 100644 --- a/net/sched/cls_api.c +++ b/net/sched/cls_api.c @@ -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->net = qdisc_net(q); block->q = q; *p_block = block; return 0; |
