[openib-general] [PATCH applied] return -ENOPROTOOPT on an unsupported socket option

Michael S. Tsirkin mst at mellanox.co.il
Mon Dec 19 06:44:21 PST 2005


Make more ltp tests pass: return -ENOPROTOOPT on an unsupported socket option.

Signed-off-by: Michael S. Tsirkin <mst at mellanox.co.il>

Index: linux-2.6.14/drivers/infiniband/ulp/sdp/sdp_inet.c
===================================================================
--- linux-2.6.14.orig/drivers/infiniband/ulp/sdp/sdp_inet.c	2005-12-19 18:30:09.000000000 +0200
+++ linux-2.6.14/drivers/infiniband/ulp/sdp/sdp_inet.c	2005-12-19 19:22:39.000000000 +0200
@@ -1094,6 +1094,7 @@ static int sdp_inet_setopt(struct socket
 	default:
 		sdp_warn("SETSOCKOPT unimplemented option <%d:%d> conn <%d>.",
 			 level, optname, conn->hashent);
+		result = -ENOPROTOOPT;
 		break;
 	}
 

-- 
MST



More information about the general mailing list