aboutsummaryrefslogtreecommitdiffstats
path: root/include/rdma
diff options
context:
space:
mode:
authorAriel Levkovich <lariel@mellanox.com>2018-05-13 07:33:30 -0400
committerJason Gunthorpe <jgg@mellanox.com>2018-05-16 23:32:54 -0400
commitd90e5e5038ef8e62c82710e3970317ef4eb367cf (patch)
tree39d9353012eb2fd518598eac2b7b16eb5162e34c /include/rdma
parent20b6563ba164efc1ae24f637cb269bb3a9eb5467 (diff)
IB/uverbs: Introduce a GRE steering match filter
Adding a new GRE steering match filter that can match against key and protocol fields. Reviewed-by: Mark Bloch <markb@mellanox.com> Signed-off-by: Ariel Levkovich <lariel@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com> Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'include/rdma')
-rw-r--r--include/rdma/ib_verbs.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index 9fc8a825aa28..e3ec61fe6060 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -1852,6 +1852,7 @@ enum ib_flow_spec_type {
1852 IB_FLOW_SPEC_TCP = 0x40, 1852 IB_FLOW_SPEC_TCP = 0x40,
1853 IB_FLOW_SPEC_UDP = 0x41, 1853 IB_FLOW_SPEC_UDP = 0x41,
1854 IB_FLOW_SPEC_VXLAN_TUNNEL = 0x50, 1854 IB_FLOW_SPEC_VXLAN_TUNNEL = 0x50,
1855 IB_FLOW_SPEC_GRE = 0x51,
1855 IB_FLOW_SPEC_INNER = 0x100, 1856 IB_FLOW_SPEC_INNER = 0x100,
1856 /* Actions */ 1857 /* Actions */
1857 IB_FLOW_SPEC_ACTION_TAG = 0x1000, 1858 IB_FLOW_SPEC_ACTION_TAG = 0x1000,
@@ -1994,6 +1995,21 @@ struct ib_flow_spec_esp {
1994 struct ib_flow_esp_filter mask; 1995 struct ib_flow_esp_filter mask;
1995}; 1996};
1996 1997
1998struct ib_flow_gre_filter {
1999 __be16 c_ks_res0_ver;
2000 __be16 protocol;
2001 __be32 key;
2002 /* Must be last */
2003 u8 real_sz[0];
2004};
2005
2006struct ib_flow_spec_gre {
2007 u32 type;
2008 u16 size;
2009 struct ib_flow_gre_filter val;
2010 struct ib_flow_gre_filter mask;
2011};
2012
1997struct ib_flow_spec_action_tag { 2013struct ib_flow_spec_action_tag {
1998 enum ib_flow_spec_type type; 2014 enum ib_flow_spec_type type;
1999 u16 size; 2015 u16 size;
@@ -2023,6 +2039,7 @@ union ib_flow_spec {
2023 struct ib_flow_spec_ipv6 ipv6; 2039 struct ib_flow_spec_ipv6 ipv6;
2024 struct ib_flow_spec_tunnel tunnel; 2040 struct ib_flow_spec_tunnel tunnel;
2025 struct ib_flow_spec_esp esp; 2041 struct ib_flow_spec_esp esp;
2042 struct ib_flow_spec_gre gre;
2026 struct ib_flow_spec_action_tag flow_tag; 2043 struct ib_flow_spec_action_tag flow_tag;
2027 struct ib_flow_spec_action_drop drop; 2044 struct ib_flow_spec_action_drop drop;
2028 struct ib_flow_spec_action_handle action; 2045 struct ib_flow_spec_action_handle action;