]> git.karo-electronics.de Git - linux-beck.git/commitdiff
scsi: be2iscsi: Fix queue and connection parameters
authorJitendra Bhivare <jitendra.bhivare@broadcom.com>
Fri, 19 Aug 2016 09:50:23 +0000 (15:20 +0530)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 24 Aug 2016 02:42:44 +0000 (22:42 -0400)
Current EQ delay is set to 0 to receive very high max interrupt per sec.
Set EQ delay to 32 - reducing max interrupt rate from 65K to 20K per sec.

Set TCP connection window size to 64K with scale shift count 2.

Signed-off-by: Jitendra Bhivare <jitendra.bhivare@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/be2iscsi/be_main.c
drivers/scsi/be2iscsi/be_mgmt.c

index 50d865eeb4c39ac9f47b78d5ed9724c9cab0dcc9..7c372b8e7dd51aac9945a7b58fb063cd8abebdee 100644 (file)
@@ -3729,7 +3729,7 @@ static int hwi_init_port(struct beiscsi_hba *phba)
        phwi_context = phwi_ctrlr->phwi_ctxt;
        phwi_context->max_eqd = 128;
        phwi_context->min_eqd = 0;
-       phwi_context->cur_eqd = 0;
+       phwi_context->cur_eqd = 32;
        /* set port optic state to unknown */
        phba->optic_state = 0xff;
 
index 736eca38ea0bcb630dcaacae307d9a286488194f..adc827b17b915b5be9c820dd3ece6de82e14274b 100644 (file)
@@ -338,7 +338,7 @@ int mgmt_open_connection(struct beiscsi_hba *phba,
 
        if (!is_chip_be2_be3r(phba)) {
                req->hdr.version = MBX_CMD_VER1;
-               req->tcp_window_size = 0;
+               req->tcp_window_size = 0x8000;
                req->tcp_window_scale_count = 2;
        }