net: sch: prio: Add offload ability for grafting a child
authorNogah Frankel <nogahf@mellanox.com>
Wed, 28 Feb 2018 09:45:06 +0000 (10:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 28 Feb 2018 17:06:01 +0000 (12:06 -0500)
commitb9c7a7acc749f3d0667a2ab44ea38110d5a1f286
tree7fb0bf4b0fd4bdf02b88c29f69bb68388565ef66
parent98ceb7b6d64552f995973be1a0ee9af0bf85fb3d
net: sch: prio: Add offload ability for grafting a child

Offload sch_prio graft command for capable drivers.
Warn in case of a failure, unless the graft was done as part of a destroy
operation (the new qdisc is a noop) or if all the qdiscs (the parent, the
old child, and the new one) are not offloaded.

Signed-off-by: Nogah Frankel <nogahf@mellanox.com>
Reviewed-by: Yuval Mintz <yuvalm@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/pkt_cls.h
net/sched/sch_prio.c