From: Bhanu Prakash Gollapudi Date: Fri, 8 Mar 2013 21:28:50 +0000 (-0800) Subject: [SCSI] bnx2fc: Enable cached tasks to improve performance X-Git-Tag: v3.10-rc1~3^2~1^2~86 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=353c2ade1d7dee6551f4d17fc357c9f5adc8045a;p=profile%2Fivi%2Fkernel-x86-ivi.git [SCSI] bnx2fc: Enable cached tasks to improve performance Set perf_config to 3 during firmware initialization to enable both cached connections as well as cached tasks. Signed-off-by: Bhanu Prakash Gollapudi Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/bnx2fc/bnx2fc_hwi.c b/drivers/scsi/bnx2fc/bnx2fc_hwi.c index 50510ff..5777e3c 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_hwi.c +++ b/drivers/scsi/bnx2fc/bnx2fc_hwi.c @@ -126,7 +126,11 @@ int bnx2fc_send_fw_fcoe_init_msg(struct bnx2fc_hba *hba) fcoe_init3.error_bit_map_lo = 0xffffffff; fcoe_init3.error_bit_map_hi = 0xffffffff; - fcoe_init3.perf_config = 1; + /* + * enable both cached connection and cached tasks + * 0 = none, 1 = cached connection, 2 = cached tasks, 3 = both + */ + fcoe_init3.perf_config = 3; kwqe_arr[0] = (struct kwqe *) &fcoe_init1; kwqe_arr[1] = (struct kwqe *) &fcoe_init2;