OSDN Git Service

net: sched: add block bind/unbind notif. and extended block_get/put
authorJiri Pirko <jiri@mellanox.com>
Thu, 19 Oct 2017 13:50:29 +0000 (15:50 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 21 Oct 2017 02:04:06 +0000 (03:04 +0100)
commit8c4083b30e56fc71b0e94c26374b32d95d5ea461
treee728972a1975fe65fb4003b63cccddf9ef665060
parentb65f164d37cf6d4aac59b0e13c2e5c4cfe293fd2
net: sched: add block bind/unbind notif. and extended block_get/put

Introduce new type of ndo_setup_tc message to propage binding/unbinding
of a block to driver. Call this ndo whenever qdisc gets/puts a block.
Alongside with this, there's need to propagate binder type from qdisc
code down to the notifier. So introduce extended variants of
block_get/put in order to pass this info.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
include/net/pkt_cls.h
net/sched/cls_api.c