]> git.proxmox.com Git - mirror_iproute2.git/commit - tc/f_flower.c
tc: Reflect HW offload status
authorOr Gerlitz <ogerlitz@mellanox.com>
Thu, 4 May 2017 13:15:15 +0000 (16:15 +0300)
committerStephen Hemminger <stephen@networkplumber.org>
Fri, 5 May 2017 16:49:25 +0000 (09:49 -0700)
commite57285b81a098ed705d683ce94f9abd1cc53438a
tree9ab4067db877950d76e6767a1273ee322ac68eb7
parent76557951f5bc0eb3fb9cbf72e36efe9c7a443fca
tc: 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: Jiri Pirko <jiri@mellanox.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
tc/f_bpf.c
tc/f_flower.c
tc/f_matchall.c
tc/f_u32.c