diff options
author | Yotam Gigi <yotamg@mellanox.com> | 2016-07-21 10:03:12 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-07-25 06:11:59 (GMT) |
commit | b87f7936a93246804cf70e7e2e0568799c948bb1 (patch) | |
tree | 9cc6fdbd50cb59f39c24997f7f4578a879d8b5bd /include/net | |
parent | bf3994d2ed310813da28362d87bfe9f0e1c3e37f (diff) | |
download | linux-b87f7936a93246804cf70e7e2e0568799c948bb1.tar.xz |
net/sched: Add match-all classifier hw offloading.
Following the work that have been done on offloading classifiers like u32
and flower, now the match-all classifier hw offloading is possible. if
the interface supports tc offloading.
To control the offloading, two tc flags have been introduced: skip_sw and
skip_hw. Typical usage:
tc filter add dev eth25 parent ffff: \
matchall skip_sw \
action mirred egress mirror \
dev eth27
Signed-off-by: Yotam Gigi <yotamg@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/pkt_cls.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/net/pkt_cls.h b/include/net/pkt_cls.h index 3722dda..6f8d653 100644 --- a/include/net/pkt_cls.h +++ b/include/net/pkt_cls.h @@ -442,4 +442,15 @@ struct tc_cls_flower_offload { struct tcf_exts *exts; }; +enum tc_matchall_command { + TC_CLSMATCHALL_REPLACE, + TC_CLSMATCHALL_DESTROY, +}; + +struct tc_cls_matchall_offload { + enum tc_matchall_command command; + struct tcf_exts *exts; + unsigned long cookie; +}; + #endif |