A Mellanox regression test detected a difference between the error
returned by SDP and TCP and the error returned using libsdp with
'both'.
    
Signed-off-by: Jim Mott <[EMAIL PROTECTED]>
---

Index: ofa_1_3_dev_user/src/userspace/libsdp/src/port.c
===================================================================
--- ofa_1_3_dev_user.orig/src/userspace/libsdp/src/port.c
2008-02-12 00:32:08.000000000 -0600
+++ ofa_1_3_dev_user/src/userspace/libsdp/src/port.c    2008-02-12
13:11:01.000000000 -0600
@@ -1170,6 +1170,11 @@
                                          "binding SDP socket
failed:%s\n", strerror( errno ) );
                _socket_funcs.close( *sdp_sd );
                _socket_funcs.close( *tcp_sd );
+
+               /* TCP and SDP without library return EINVAL */
+               if (errno == EADDRINUSE)
+                       errno = EINVAL;
+
                goto done;
        }
_______________________________________________
general mailing list
[email protected]
http://lists.openfabrics.org/cgi-bin/mailman/listinfo/general

To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general

Reply via email to