]> git.baikalelectronics.ru Git - kernel.git/commit
net/sched: Reflect HW offload status
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 16 Feb 2017 08:31:12 +0000 (10:31 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 17 Feb 2017 17:08:05 +0000 (12:08 -0500)
commit4329cd8750697281d9402859074484db04c03cd8
tree911d2bf43bf5a169f7c350ed2492c0b4e88fd473
parent43129c0254084d08e5a0b525393adbc1218f18d4
net/sched: Reflect HW offload status

Currently there is no way of querying whether a filter is
offloaded to HW or not when using "both" policy (where none
of skip_sw or skip_hw flags are set by user-space).

Add two new flags, "in hw" and "not in hw" such that user
space can determine if a filter is actually offloaded to
hw or not. The "in hw" UAPI semantics was chosen so it's
similar to the "skip hw" flag logic.

If none of these two flags are set, this signals running
over older kernel.

Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Reviewed-by: Amir Vadai <amir@vadai.me>
Acked-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/pkt_cls.h
include/uapi/linux/pkt_cls.h