RDMA/cma: Allow enabling reuseaddr in any state
authorSean Hefty <sean.hefty@intel.com>
Wed, 29 May 2013 17:09:08 +0000 (10:09 -0700)
committerRoland Dreier <roland@purestorage.com>
Thu, 20 Jun 2013 20:08:01 +0000 (13:08 -0700)
commitc8dea2f9f078395ebac7c92aeb919f02ff3fca88
treeb58838819bc28a904549e96e5a58127aea39b0fb
parent8d36eb01da5d371feffa280e501377b5c450f5a5
RDMA/cma: Allow enabling reuseaddr in any state

The rdma_cm only allows setting reuseaddr if the corresponding
rdma_cm_id is in the idle state.  Allow setting this value in other
states.  This brings the behavior more inline with sockets.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/cma.c