]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
committerTim Gardner <tim.gardner@canonical.com>
Wed, 1 Mar 2017 13:55:49 +0000 (06:55 -0700)
commit9fc453f57b2a2606a22935342b2ca6af9ec98e4c
treef23ed7862adb3ce7160fe3aa4a92f8c705b66f84
parent46313216f3496b24ec9d0374fba8178b7c42f3c6
net/sched: Reflect HW offload status

BugLink: http://bugs.launchpad.net/bugs/1668019
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>
(cherry picked from commit e696028acc458aa3d43ad899371a963eb28336d8)
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
include/net/pkt_cls.h
include/uapi/linux/pkt_cls.h