summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/pkt_cls.h
diff options
context:
space:
mode:
authorAmir Vadai2016-03-08 11:42:29 +0100
committerDavid S. Miller2016-03-10 22:24:02 +0100
commit5b33f48842fa1e13e9c0ea8cc59c1d0df19042db (patch)
tree51aafa151a70b38dfd500b261d8e32bd4045332a /include/uapi/linux/pkt_cls.h
parentMerge branch 'mediatek-eth' (diff)
downloadkernel-qcow2-linux-5b33f48842fa1e13e9c0ea8cc59c1d0df19042db.tar.gz
kernel-qcow2-linux-5b33f48842fa1e13e9c0ea8cc59c1d0df19042db.tar.xz
kernel-qcow2-linux-5b33f48842fa1e13e9c0ea8cc59c1d0df19042db.zip
net/flower: Introduce hardware offload support
This patch is based on a patch made by John Fastabend. It adds support for offloading cls_flower. when NETIF_F_HW_TC is on: flags = 0 => Rule will be processed twice - by hardware, and if still relevant, by software. flags = SKIP_HW => Rull will be processed by software only If hardware fail/not capabale to apply the rule, operation will NOT fail. Filter will be processed by SW only. Acked-by: Jiri Pirko <jiri@mellanox.com> Suggested-by: John Fastabend <john.r.fastabend@intel.com> Signed-off-by: Amir Vadai <amir@vadai.me> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/uapi/linux/pkt_cls.h')
-rw-r--r--include/uapi/linux/pkt_cls.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/uapi/linux/pkt_cls.h b/include/uapi/linux/pkt_cls.h
index 9874f5680926..c43c5f78b9c4 100644
--- a/include/uapi/linux/pkt_cls.h
+++ b/include/uapi/linux/pkt_cls.h
@@ -417,6 +417,8 @@ enum {
TCA_FLOWER_KEY_TCP_DST, /* be16 */
TCA_FLOWER_KEY_UDP_SRC, /* be16 */
TCA_FLOWER_KEY_UDP_DST, /* be16 */
+
+ TCA_FLOWER_FLAGS,
__TCA_FLOWER_MAX,
};