From: Jim Mott Date: Sat, 3 Nov 2007 02:50:31 +0000 (-0700) Subject: SDP - Make bzcopy defualt for 2K and larger transfer size X-Git-Tag: v4.1.12-92~264^2~5^2~337 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=4dbee2abb832006825f8bc55bca9ff30a98e9383;p=users%2Fjedix%2Flinux-maple.git SDP - Make bzcopy defualt for 2K and larger transfer size 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 --- diff --git a/drivers/infiniband/ulp/sdp/sdp_main.c b/drivers/infiniband/ulp/sdp/sdp_main.c index f0b8703e3dfdd..d1eb6ab6b37cb 100644 --- a/drivers/infiniband/ulp/sdp/sdp_main.c +++ b/drivers/infiniband/ulp/sdp/sdp_main.c @@ -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.");