net: sched: introduce block mechanism to handle netif_keep_dst calls
authorJiri Pirko <jiri@mellanox.com>
Wed, 17 Jan 2018 10:46:48 +0000 (11:46 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 17 Jan 2018 19:53:56 +0000 (14:53 -0500)
commitf36fe1c498c8959812415c57b683abaa4527dec5
tree4dc0a63d1438fa524a56dbcaf2c10a4aec772ffa
parent9d3aaff3d8523264ff7082a90759cb8a340200be
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>
include/net/pkt_cls.h
include/net/sch_generic.h
net/sched/cls_api.c
net/sched/cls_bpf.c
net/sched/cls_flow.c
net/sched/cls_route.c