From patchwork Fri Aug 19 09:50:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jitendra Bhivare X-Patchwork-Id: 9289955 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id EE1EC607FF for ; Fri, 19 Aug 2016 09:52:13 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DF51929312 for ; Fri, 19 Aug 2016 09:52:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D41A929379; Fri, 19 Aug 2016 09:52:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8872829312 for ; Fri, 19 Aug 2016 09:52:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754495AbcHSJwM (ORCPT ); Fri, 19 Aug 2016 05:52:12 -0400 Received: from mail-wm0-f54.google.com ([74.125.82.54]:37570 "EHLO mail-wm0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754480AbcHSJwJ (ORCPT ); Fri, 19 Aug 2016 05:52:09 -0400 Received: by mail-wm0-f54.google.com with SMTP id i5so32764420wmg.0 for ; Fri, 19 Aug 2016 02:52:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=5F4kGWFIhwTciM6JAuFpk1nv9UIo70b/CfosceCVw8I=; b=fjhU2SfEQcGRziLde9IxycXlEcy/0HjA94ndxOofPMPJcm9PNEcADlSFrlilOdyNRw QRVAToNHjZdtmQcqntYEEXvimZTnfsI71s69wyzTijqz5RLoLS3Et6FiRgtD5poQQkTL dWJjBqSX3XEeXYMN4EQ2c5o9kGz8w3iTq5ito= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=5F4kGWFIhwTciM6JAuFpk1nv9UIo70b/CfosceCVw8I=; b=bK25XNcM4J+l/21rjsOlkRWRsZfYh+DrCr0ptUpv3s7MVSBsuVHT6mHB7lEW2JQ2vm zu2sRokRMv1XOoB9RXTNAUFWKeBvBnro1wJnmsQP1Stsm3X9wq2sabUb8FBiyv8Ztonh zqTNGBISwCk2DusHq8FVicKDEUl7VLnJmjqUXZcGqfyeQTM3CRdpC5x7wzxiFXoEwNw5 qKEUVeGdqS6/pT/WWuwHXPosYBl2/8JpPOkNYnQN54GLXFj1/atwCpGvjtdednaZVPUR J+XKSFn+4JApVil62Yxg9HMYmlLWRJLGOFHnTdg9iupLz9ST8QSgS1NhGJOKvYpgBZX5 d+UA== X-Gm-Message-State: AEkooutS+hOYlsOByY/xPfcHRMWa5kHQZOGm93ViNVhENVgLvTfrWVPtW5u5MM3wN2iMep5C X-Received: by 10.28.211.10 with SMTP id k10mr3126028wmg.16.1471600326607; Fri, 19 Aug 2016 02:52:06 -0700 (PDT) Received: from android.dhcp.avagotech.net ([192.19.239.250]) by smtp.gmail.com with ESMTPSA id n131sm3650096wmd.3.2016.08.19.02.52.03 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 19 Aug 2016 02:52:05 -0700 (PDT) From: Jitendra Bhivare To: linux-scsi@vger.kernel.org Cc: mchristi@redhat.com, Jitendra Bhivare Subject: [PATCH v2 26/29] be2iscsi: Fix queue and connection parameters Date: Fri, 19 Aug 2016 15:20:23 +0530 Message-Id: <1471600226-22055-27-git-send-email-jitendra.bhivare@broadcom.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1471600226-22055-1-git-send-email-jitendra.bhivare@broadcom.com> References: <1471600226-22055-1-git-send-email-jitendra.bhivare@broadcom.com> Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 --- drivers/scsi/be2iscsi/be_main.c | 2 +- drivers/scsi/be2iscsi/be_mgmt.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index 50d865e..7c372b8 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c @@ -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; diff --git a/drivers/scsi/be2iscsi/be_mgmt.c b/drivers/scsi/be2iscsi/be_mgmt.c index 736eca3..adc827b 100644 --- a/drivers/scsi/be2iscsi/be_mgmt.c +++ b/drivers/scsi/be2iscsi/be_mgmt.c @@ -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; }