OSDN Git Service

net: sched: Make FIFO Qdisc offloadable
authorPetr Machata <petrm@mellanox.com>
Thu, 5 Mar 2020 07:16:40 +0000 (09:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Mar 2020 22:03:31 +0000 (14:03 -0800)
commitaaca9408078914380fbfd8aef3c38a34b515a654
treeb1ec43322e182f65563275058687116d674f2b22
parentf3588909c18553e0a9d69fc7832a606681f59048
net: sched: Make FIFO Qdisc offloadable

Invoke ndo_setup_tc() as appropriate to signal init / replacement,
destroying and dumping of pFIFO / bFIFO Qdisc.

A lot of the FIFO logic is used for pFIFO_head_drop as well, but that's a
semantically very different Qdisc that isn't really in the same boat as
pFIFO / bFIFO. Split some of the functions to keep the Qdisc intact.

Signed-off-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Acked-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/sch_fifo.c