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)
committerBen Hutchings <ben@decadent.org.uk>
Sat, 13 Sep 2014 22:41:43 +0000 (23:41 +0100)
commitb86a5f240f3ca73297cc918b49a70daa02f2d48a
treef17fe4e4ed902cc10fdf9cc8db316ab13dece729
parent9ff66a756f78228be58871aa1da6445971a338d9
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>
[bwh: Backported to 3.2: use register_net_sysctl_table()]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
drivers/infiniband/core/iwcm.c