diff options
author | Upinder Malhi <umalhi@cisco.com> | 2014-01-09 17:48:19 -0500 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2014-01-14 03:44:45 -0500 |
commit | 248567f79304b953ea492fb92ade097b62ed09b2 (patch) | |
tree | 27d212857bd4258a4426b5cde87ab8797441b916 | |
parent | e45e614e4015a489d2f8013eaed45d498d884e86 (diff) |
IB/core: Add RDMA_TRANSPORT_USNIC_UDP
Add RDMA_TRANSPORT_USNIC_UDP which will be used by usNIC.
Signed-off-by: Upinder Malhi <umalhi@cisco.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
-rw-r--r-- | drivers/infiniband/core/verbs.c | 3 | ||||
-rw-r--r-- | include/rdma/ib_verbs.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/drivers/infiniband/core/verbs.c b/drivers/infiniband/core/verbs.c index d4f6ddf72ffa..fae0b08248e4 100644 --- a/drivers/infiniband/core/verbs.c +++ b/drivers/infiniband/core/verbs.c | |||
@@ -115,7 +115,7 @@ rdma_node_get_transport(enum rdma_node_type node_type) | |||
115 | case RDMA_NODE_RNIC: | 115 | case RDMA_NODE_RNIC: |
116 | return RDMA_TRANSPORT_IWARP; | 116 | return RDMA_TRANSPORT_IWARP; |
117 | case RDMA_NODE_USNIC: | 117 | case RDMA_NODE_USNIC: |
118 | return RDMA_TRANSPORT_USNIC; | 118 | return RDMA_TRANSPORT_USNIC_UDP; |
119 | default: | 119 | default: |
120 | BUG(); | 120 | BUG(); |
121 | return 0; | 121 | return 0; |
@@ -133,6 +133,7 @@ enum rdma_link_layer rdma_port_get_link_layer(struct ib_device *device, u8 port_ | |||
133 | return IB_LINK_LAYER_INFINIBAND; | 133 | return IB_LINK_LAYER_INFINIBAND; |
134 | case RDMA_TRANSPORT_IWARP: | 134 | case RDMA_TRANSPORT_IWARP: |
135 | case RDMA_TRANSPORT_USNIC: | 135 | case RDMA_TRANSPORT_USNIC: |
136 | case RDMA_TRANSPORT_USNIC_UDP: | ||
136 | return IB_LINK_LAYER_ETHERNET; | 137 | return IB_LINK_LAYER_ETHERNET; |
137 | default: | 138 | default: |
138 | return IB_LINK_LAYER_UNSPECIFIED; | 139 | return IB_LINK_LAYER_UNSPECIFIED; |
diff --git a/include/rdma/ib_verbs.h b/include/rdma/ib_verbs.h index 61e1935c91b1..b19aa7285ea3 100644 --- a/include/rdma/ib_verbs.h +++ b/include/rdma/ib_verbs.h | |||
@@ -74,7 +74,8 @@ enum rdma_node_type { | |||
74 | enum rdma_transport_type { | 74 | enum rdma_transport_type { |
75 | RDMA_TRANSPORT_IB, | 75 | RDMA_TRANSPORT_IB, |
76 | RDMA_TRANSPORT_IWARP, | 76 | RDMA_TRANSPORT_IWARP, |
77 | RDMA_TRANSPORT_USNIC | 77 | RDMA_TRANSPORT_USNIC, |
78 | RDMA_TRANSPORT_USNIC_UDP | ||
78 | }; | 79 | }; |
79 | 80 | ||
80 | enum rdma_transport_type | 81 | enum rdma_transport_type |