diff options
author | Sean Hefty <sean.hefty@intel.com> | 2011-05-29 00:56:39 -0400 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2011-10-13 12:39:52 -0400 |
commit | 2d2e94152928209de13dea0535242c0e457bdcbb (patch) | |
tree | 81405715a043ad9896085cdcd6565c0b7355fdee /drivers/infiniband | |
parent | ef70044647b260cb6b7863f392384a06670d0b2a (diff) |
RDMA/cm: Define new RDMA port space specific to IB
Add RDMA_PS_IB. XRC QP types will use the IB port space when operating
over the RDMA CM. For the 'IP protocol' field value, we select 0x3F,
which is listed as being for 'any local network'.
Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r-- | drivers/infiniband/core/cma.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c index ca4c5dcd7133..8801ea91b0a6 100644 --- a/drivers/infiniband/core/cma.c +++ b/drivers/infiniband/core/cma.c | |||
@@ -81,6 +81,7 @@ static DEFINE_IDR(sdp_ps); | |||
81 | static DEFINE_IDR(tcp_ps); | 81 | static DEFINE_IDR(tcp_ps); |
82 | static DEFINE_IDR(udp_ps); | 82 | static DEFINE_IDR(udp_ps); |
83 | static DEFINE_IDR(ipoib_ps); | 83 | static DEFINE_IDR(ipoib_ps); |
84 | static DEFINE_IDR(ib_ps); | ||
84 | 85 | ||
85 | struct cma_device { | 86 | struct cma_device { |
86 | struct list_head list; | 87 | struct list_head list; |
@@ -2234,6 +2235,9 @@ static int cma_get_port(struct rdma_id_private *id_priv) | |||
2234 | case RDMA_PS_IPOIB: | 2235 | case RDMA_PS_IPOIB: |
2235 | ps = &ipoib_ps; | 2236 | ps = &ipoib_ps; |
2236 | break; | 2237 | break; |
2238 | case RDMA_PS_IB: | ||
2239 | ps = &ib_ps; | ||
2240 | break; | ||
2237 | default: | 2241 | default: |
2238 | return -EPROTONOSUPPORT; | 2242 | return -EPROTONOSUPPORT; |
2239 | } | 2243 | } |
@@ -3460,6 +3464,7 @@ static void __exit cma_cleanup(void) | |||
3460 | idr_destroy(&tcp_ps); | 3464 | idr_destroy(&tcp_ps); |
3461 | idr_destroy(&udp_ps); | 3465 | idr_destroy(&udp_ps); |
3462 | idr_destroy(&ipoib_ps); | 3466 | idr_destroy(&ipoib_ps); |
3467 | idr_destroy(&ib_ps); | ||
3463 | } | 3468 | } |
3464 | 3469 | ||
3465 | module_init(cma_init); | 3470 | module_init(cma_init); |