]> git.openfabrics.org - ~ardavis/dapl.git/commit
ucm, mcm: fix backlog parameter for socket master
authorNicolas Morey-Chaisemartin <NMoreyChaisemartin@suse.de>
Wed, 30 May 2018 16:00:05 +0000 (09:00 -0700)
committerArlin Davis <arlin.r.davis@intel.com>
Wed, 30 May 2018 16:00:05 +0000 (09:00 -0700)
commit777c153393baea1032cdf84026669d547fac6b0f
tree1819f435128c85a8cd2161d5ceb04d804d2310c4
parentf1e05b7adcee629ee7c1d4d86ea55344d9309232
ucm, mcm: fix backlog parameter for socket

Using listen(, 0) forces a synchronization barrier between connect and accept if net.ipv4.tcp_syncookies.
As this is done by a single thread, it causes connect to timeout with a similar message:
open_hca: failed to init cr pipe - Connection timed out

Replace with listen(, 1) so the kernel can accept the connection itself and remove the synchronisation
point.

Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
dapl/openib_mcm/device.c
dapl/openib_ucm/device.c