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:19:24 +0000 (09:19 -0700)
commitf4764072d92fe6a1d2181fb81067ae5791b992b6
treeab941da56f81e8a4be5b3ec7574c012d91d77cc4
parentfdb396bd32aa6353786be119feb60c261dcace2e
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