[ofa-general] [PATCH 1/1] SDP - Bug837: executing netperf with TCP_CORK enabled never ends

Jim Mott jim at mellanox.com
Fri Jan 4 12:59:53 PST 2008


Signed-off-by: Jim Mott <jim at mellanox.com>
---

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);
 }




More information about the general mailing list