提交 248567f7 编写于 作者: U Upinder Malhi 提交者: Roland Dreier

IB/core: Add RDMA_TRANSPORT_USNIC_UDP

Add RDMA_TRANSPORT_USNIC_UDP which will be used by usNIC.
Signed-off-by: NUpinder Malhi <umalhi@cisco.com>
Signed-off-by: NRoland Dreier <roland@purestorage.com>
上级 e45e614e
...@@ -115,7 +115,7 @@ rdma_node_get_transport(enum rdma_node_type node_type) ...@@ -115,7 +115,7 @@ rdma_node_get_transport(enum rdma_node_type node_type)
case RDMA_NODE_RNIC: case RDMA_NODE_RNIC:
return RDMA_TRANSPORT_IWARP; return RDMA_TRANSPORT_IWARP;
case RDMA_NODE_USNIC: case RDMA_NODE_USNIC:
return RDMA_TRANSPORT_USNIC; return RDMA_TRANSPORT_USNIC_UDP;
default: default:
BUG(); BUG();
return 0; return 0;
...@@ -133,6 +133,7 @@ enum rdma_link_layer rdma_port_get_link_layer(struct ib_device *device, u8 port_ ...@@ -133,6 +133,7 @@ enum rdma_link_layer rdma_port_get_link_layer(struct ib_device *device, u8 port_
return IB_LINK_LAYER_INFINIBAND; return IB_LINK_LAYER_INFINIBAND;
case RDMA_TRANSPORT_IWARP: case RDMA_TRANSPORT_IWARP:
case RDMA_TRANSPORT_USNIC: case RDMA_TRANSPORT_USNIC:
case RDMA_TRANSPORT_USNIC_UDP:
return IB_LINK_LAYER_ETHERNET; return IB_LINK_LAYER_ETHERNET;
default: default:
return IB_LINK_LAYER_UNSPECIFIED; return IB_LINK_LAYER_UNSPECIFIED;
......
...@@ -74,7 +74,8 @@ enum rdma_node_type { ...@@ -74,7 +74,8 @@ enum rdma_node_type {
enum rdma_transport_type { enum rdma_transport_type {
RDMA_TRANSPORT_IB, RDMA_TRANSPORT_IB,
RDMA_TRANSPORT_IWARP, RDMA_TRANSPORT_IWARP,
RDMA_TRANSPORT_USNIC RDMA_TRANSPORT_USNIC,
RDMA_TRANSPORT_USNIC_UDP
}; };
enum rdma_transport_type enum rdma_transport_type
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册