]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
net: sched: Add TCA_HW_OFFLOAD
authorYuval Mintz <yuvalm@mellanox.com>
Thu, 14 Dec 2017 13:54:29 +0000 (15:54 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 15 Dec 2017 18:35:36 +0000 (13:35 -0500)
commit7a4fa29106d9a38ef005f5ab15d493c259f269c0
treec9283f86e133216c20fa8f0d67ee53f5645734ad
parent0a0606970fa882c504a87c45407559595ef5a134
net: sched: Add TCA_HW_OFFLOAD

Qdiscs can be offloaded to HW, but current implementation isn't uniform.
Instead, qdiscs either pass information about offload status via their
TCA_OPTIONS or omit it altogether.

Introduce a new attribute - TCA_HW_OFFLOAD that would form a uniform
uAPI for the offloading status of qdiscs.

Signed-off-by: Yuval Mintz <yuvalm@mellanox.com>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sch_generic.h
include/uapi/linux/rtnetlink.h
net/sched/sch_api.c