RDMA/iwcm: Use a default listen backlog if needed
authorSteve Wise <swise@opengridcomputing.com>
Fri, 25 Jul 2014 14:11:33 +0000 (09:11 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 Sep 2014 16:04:00 +0000 (09:04 -0700)
commit433d80d62562bfbc30cbf426206f29c9153bbc15
tree7e8984100dfc7d5c042632fac221eb034d2e102f
parent26584e18c463bcf54fbd97e7c76f6f00ba13b1c9
RDMA/iwcm: Use a default listen backlog if needed

commit 2f0304d21867476394cd51a54e97f7273d112261 upstream.

If the user creates a listening cm_id with backlog of 0 the IWCM ends
up not allowing any connection requests at all.  The correct behavior
is for the IWCM to pick a default value if the user backlog parameter
is zero.

Lustre from version 1.8.8 onward uses a backlog of 0, which breaks
iwarp support without this fix.

Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/core/iwcm.c