Signed-off-by: Jim Mott <[EMAIL PROTECTED]>
---
Index: ofa_1_3_dev_kernel/drivers/infiniband/ulp/sdp/sdp_main.c
===================================================================
--- ofa_1_3_dev_kernel.orig/drivers/infiniband/ulp/sdp/sdp_main.c
2008-01-04 14:12:02.000000000 -0600
+++ ofa_1_3_dev_kernel/drivers/infiniband/ulp/sdp/sdp_main.c
2008-01-04 14:12:11.000000000 -0600
@@ -880,6 +880,15 @@ static void sdp_shutdown(struct sock *sk
else
return;
+ /*
+ * Just turn off CORK here.
+ * We could check for socket shutting down in main data path,
+ * but this costs no extra cycles there.
+ */
+ ssk->nonagle &= ~TCP_NAGLE_CORK;
+ if (ssk->nonagle & TCP_NAGLE_OFF)
+ ssk->nonagle |= TCP_NAGLE_PUSH;
+
sdp_post_sends(ssk, 0);
}
_______________________________________________
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