net/sched: Add match-all classifier hw offloading.
authorYotam Gigi <yotamg@mellanox.com>
Thu, 21 Jul 2016 10:03:12 +0000 (12:03 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 25 Jul 2016 06:11:59 +0000 (23:11 -0700)
commitb87f7936a93246804cf70e7e2e0568799c948bb1
tree9cc6fdbd50cb59f39c24997f7f4578a879d8b5bd
parentbf3994d2ed310813da28362d87bfe9f0e1c3e37f
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>
include/linux/netdevice.h
include/net/pkt_cls.h
include/uapi/linux/pkt_cls.h
net/sched/cls_matchall.c