net: sched: mq: add simple offload notification
authorJakub Kicinski <jakub.kicinski@netronome.com>
Sat, 26 May 2018 04:53:35 +0000 (21:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 May 2018 13:49:16 +0000 (09:49 -0400)
commitf971b132300fb0df63a8de631947adc74a7b3db1
tree9c0056ab9b9896ee5ffc0f806b9286281a6f6b27
parent2ef3c253f15a7784ce541417d5663d2d1e751231
net: sched: mq: add simple offload notification

mq offload is trivial, we just need to let the device know
that the root qdisc is mq.  Alternative approach would be
to export qdisc_lookup() and make drivers check the root
type themselves, but notification via ndo_setup_tc is more
in line with other qdiscs.

Note that mq doesn't hold any stats on it's own, it just
adds up stats of its children.

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
include/net/pkt_cls.h
net/sched/sch_mq.c