summaryrefslogtreecommitdiff
path: root/include/net/sch_generic.h
diff options
context:
space:
mode:
authorJiri Pirko <jiri@mellanox.com>2017-10-13 15:00:58 +0300
committerDavid S. Miller <davem@davemloft.net>2017-10-16 23:00:40 +0300
commit855319becbcffec6988a4e781a861b69a71c5b58 (patch)
treee107ff9b687f26c094e8457d05e62492ff38a6e8 /include/net/sch_generic.h
parent69d78ef25c7b0058674145500efb12255738ba8a (diff)
downloadlinux-855319becbcffec6988a4e781a861b69a71c5b58.tar.xz
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 <jiri@mellanox.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/sch_generic.h')
-rw-r--r--include/net/sch_generic.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h
index df4032ca1b7f..9b2cb91dc0d9 100644
--- a/include/net/sch_generic.h
+++ b/include/net/sch_generic.h
@@ -270,6 +270,7 @@ struct tcf_chain {
struct tcf_block {
struct list_head chain_list;
+ struct net *net;
struct Qdisc *q;
};