Skip to content

Commit

Permalink
IB/core: Add RDMA_TRANSPORT_USNIC_UDP
Browse files Browse the repository at this point in the history
Add RDMA_TRANSPORT_USNIC_UDP which will be used by usNIC.

Signed-off-by: Upinder Malhi <[email protected]>
Signed-off-by: Roland Dreier <[email protected]>
  • Loading branch information
Upinder Malhi authored and rolandd committed Jan 14, 2014
1 parent e45e614 commit 248567f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion drivers/infiniband/core/verbs.c
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ rdma_node_get_transport(enum rdma_node_type node_type)
case RDMA_NODE_RNIC:
return RDMA_TRANSPORT_IWARP;
case RDMA_NODE_USNIC:
return RDMA_TRANSPORT_USNIC;
return RDMA_TRANSPORT_USNIC_UDP;
default:
BUG();
return 0;
Expand All @@ -133,6 +133,7 @@ enum rdma_link_layer rdma_port_get_link_layer(struct ib_device *device, u8 port_
return IB_LINK_LAYER_INFINIBAND;
case RDMA_TRANSPORT_IWARP:
case RDMA_TRANSPORT_USNIC:
case RDMA_TRANSPORT_USNIC_UDP:
return IB_LINK_LAYER_ETHERNET;
default:
return IB_LINK_LAYER_UNSPECIFIED;
Expand Down
3 changes: 2 additions & 1 deletion include/rdma/ib_verbs.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ enum rdma_node_type {
enum rdma_transport_type {
RDMA_TRANSPORT_IB,
RDMA_TRANSPORT_IWARP,
RDMA_TRANSPORT_USNIC
RDMA_TRANSPORT_USNIC,
RDMA_TRANSPORT_USNIC_UDP
};

enum rdma_transport_type
Expand Down

0 comments on commit 248567f

Please sign in to comment.