]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
SDP - Make bzcopy defualt for 2K and larger transfer size
authorJim Mott <jim@mellanox.com>
Sat, 3 Nov 2007 02:50:31 +0000 (19:50 -0700)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 6 Oct 2015 12:04:11 +0000 (05:04 -0700)
In order to be sure we test the new bzcopy code it will be enabled by
default.  The 2K threshold is what my testing shows to be the lowest
value that always wins.  We may have to adjust this upward if other
hardware has worse performance.

Signed-off-by: Jim Mott <jim@mellanox.com>
drivers/infiniband/ulp/sdp/sdp_main.c

index f0b8703e3dfddea1dd3f0318d934b8a15d86beba..d1eb6ab6b37cbbe68b148e7518397e1aa27d1bc8 100644 (file)
@@ -141,7 +141,7 @@ static unsigned int sdp_keepalive_time = SDP_KEEPALIVE_TIME;
 module_param_named(sdp_keepalive_time, sdp_keepalive_time, uint, 0644);
 MODULE_PARM_DESC(sdp_keepalive_time, "Default idle time in seconds before keepalive probe sent.");
 
-static int sdp_zcopy_thresh = 0;
+static int sdp_zcopy_thresh = 2048;
 module_param_named(sdp_zcopy_thresh, sdp_zcopy_thresh, int, 0644);
 MODULE_PARM_DESC(sdp_zcopy_thresh, "Zero copy send threshold; 0=0ff.");