diff options
author | Jiri Pirko <jiri@mellanox.com> | 2018-01-17 11:46:48 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-01-17 14:53:56 -0500 |
commit | f36fe1c498c8959812415c57b683abaa4527dec5 (patch) | |
tree | 4dc0a63d1438fa524a56dbcaf2c10a4aec772ffa /include/net/sch_generic.h | |
parent | 9d3aaff3d8523264ff7082a90759cb8a340200be (diff) | |
download | lwn-f36fe1c498c8959812415c57b683abaa4527dec5.tar.gz lwn-f36fe1c498c8959812415c57b683abaa4527dec5.zip |
net: sched: introduce block mechanism to handle netif_keep_dst calls
Couple of classifiers call netif_keep_dst directly on q->dev. That is
not possible to do directly for shared blocke where multiple qdiscs are
owning the block. So introduce a infrastructure to keep track of the
block owners in list and use this list to implement block variant of
netif_keep_dst.
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Acked-by: David Ahern <dsahern@gmail.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.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index cc0c1e4711dc..f655e66ce742 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_generic.h @@ -289,6 +289,8 @@ struct tcf_block { struct net *net; struct Qdisc *q; struct list_head cb_list; + struct list_head owner_list; + bool keep_dst; }; static inline void qdisc_cb_private_validate(const struct sk_buff *skb, int sz) |