aboutsummaryrefslogtreecommitdiffstats
path: root/include/rdma
diff options
context:
space:
mode:
authorMaor Gottlieb <maorg@mellanox.com>2016-06-17 08:14:50 -0400
committerDoug Ledford <dledford@redhat.com>2016-06-23 11:02:45 -0400
commit4c2aae712cb024f9d30a1fa62e3ba2ff785c6a3e (patch)
tree9625fa34170f14f9f9234938fa83165dd2f59b0a /include/rdma
parent89ea94a7b6c40eb423c144aef1caceebaff79c8d (diff)
IB/core: Add IPv6 support to flow steering
Add IPv6 flow specification support. Signed-off-by: Maor Gottlieb <maorg@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'include/rdma')
-rw-r--r--include/rdma/ib_verbs.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h
index 9b2fafe5eb38..9bbca6887f7f 100644
--- a/include/rdma/ib_verbs.h
+++ b/include/rdma/ib_verbs.h
@@ -1569,6 +1569,7 @@ enum ib_flow_spec_type {
1569 IB_FLOW_SPEC_IB = 0x22, 1569 IB_FLOW_SPEC_IB = 0x22,
1570 /* L3 header*/ 1570 /* L3 header*/
1571 IB_FLOW_SPEC_IPV4 = 0x30, 1571 IB_FLOW_SPEC_IPV4 = 0x30,
1572 IB_FLOW_SPEC_IPV6 = 0x31,
1572 /* L4 headers*/ 1573 /* L4 headers*/
1573 IB_FLOW_SPEC_TCP = 0x40, 1574 IB_FLOW_SPEC_TCP = 0x40,
1574 IB_FLOW_SPEC_UDP = 0x41 1575 IB_FLOW_SPEC_UDP = 0x41
@@ -1630,6 +1631,18 @@ struct ib_flow_spec_ipv4 {
1630 struct ib_flow_ipv4_filter mask; 1631 struct ib_flow_ipv4_filter mask;
1631}; 1632};
1632 1633
1634struct ib_flow_ipv6_filter {
1635 u8 src_ip[16];
1636 u8 dst_ip[16];
1637};
1638
1639struct ib_flow_spec_ipv6 {
1640 enum ib_flow_spec_type type;
1641 u16 size;
1642 struct ib_flow_ipv6_filter val;
1643 struct ib_flow_ipv6_filter mask;
1644};
1645
1633struct ib_flow_tcp_udp_filter { 1646struct ib_flow_tcp_udp_filter {
1634 __be16 dst_port; 1647 __be16 dst_port;
1635 __be16 src_port; 1648 __be16 src_port;
@@ -1651,6 +1664,7 @@ union ib_flow_spec {
1651 struct ib_flow_spec_ib ib; 1664 struct ib_flow_spec_ib ib;
1652 struct ib_flow_spec_ipv4 ipv4; 1665 struct ib_flow_spec_ipv4 ipv4;
1653 struct ib_flow_spec_tcp_udp tcp_udp; 1666 struct ib_flow_spec_tcp_udp tcp_udp;
1667 struct ib_flow_spec_ipv6 ipv6;
1654}; 1668};
1655 1669
1656struct ib_flow_attr { 1670struct ib_flow_attr {