]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sdp: added differentiation between bind failures of sdp.
authorEldad Zinger <eldadz@mellanox.co.il>
Thu, 8 Apr 2010 07:09:37 +0000 (10:09 +0300)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:04:52 +0000 (05:04 -0700)
commit59a5fee7f48e4041bed214767f6394e6a2575d98
treeed284771eb23f2a29c04cb045c6356617e135eab
parentdec874db9b419df51031baefdd2119e3e0cd2b42
sdp: added differentiation between bind failures of sdp.

When bind()ing in mode 'BOTH', bind(sdp_sock) might fail if:
1. the IP&port is already bounded.
2. the IP is not part of IB network.
previous implementation returned errno=EADDRINUSE either way.

Only the first case should fail the bind(), the second is legitimate
because the TCP socket will hanle the connection.
This fix corresponds to a fix in libsdp.

Signed-off-by: Eldad Zinger <eldadz@mellanox.co.il>
drivers/infiniband/ulp/sdp/sdp.h
drivers/infiniband/ulp/sdp/sdp_main.c
include/rdma/sdp_socket.h