From patchwork Fri Apr 26 10:55:46 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manish Rangankar X-Patchwork-Id: 10919033 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 1F35F1515 for ; Fri, 26 Apr 2019 10:56:15 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0EE7328BB8 for ; Fri, 26 Apr 2019 10:56:15 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 036C928BBB; Fri, 26 Apr 2019 10:56:15 +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=-7.9 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI 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 A82D428BBA for ; Fri, 26 Apr 2019 10:56:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726077AbfDZK4O (ORCPT ); Fri, 26 Apr 2019 06:56:14 -0400 Received: from mail-eopbgr730088.outbound.protection.outlook.com ([40.107.73.88]:48807 "EHLO NAM05-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725877AbfDZK4O (ORCPT ); Fri, 26 Apr 2019 06:56:14 -0400 Received: from BN8PR07CA0034.namprd07.prod.outlook.com (2603:10b6:408:ac::47) by MW2PR07MB4026.namprd07.prod.outlook.com (2603:10b6:907:6::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1835.14; Fri, 26 Apr 2019 10:56:12 +0000 Received: from DM3NAM05FT015.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e51::206) by BN8PR07CA0034.outlook.office365.com (2603:10b6:408:ac::47) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1835.12 via Frontend Transport; Fri, 26 Apr 2019 10:56:12 +0000 Authentication-Results: spf=fail (sender IP is 199.233.58.38) smtp.mailfrom=marvell.com; vger.kernel.org; dkim=none (message not signed) header.d=none;vger.kernel.org; dmarc=fail action=none header.from=marvell.com; Received-SPF: Fail (protection.outlook.com: domain of marvell.com does not designate 199.233.58.38 as permitted sender) receiver=protection.outlook.com; client-ip=199.233.58.38; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (199.233.58.38) by DM3NAM05FT015.mail.protection.outlook.com (10.152.98.124) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA) id 15.20.1856.4 via Frontend Transport; Fri, 26 Apr 2019 10:56:10 +0000 Received: from dut1171.mv.qlogic.com (10.112.88.18) by CAEXCH02.caveonetworks.com (10.67.98.110) with Microsoft SMTP Server (TLS) id 14.2.347.0; Fri, 26 Apr 2019 03:55:53 -0700 Received: from dut1171.mv.qlogic.com (localhost [127.0.0.1]) by dut1171.mv.qlogic.com (8.14.7/8.14.7) with ESMTP id x3QAtrJb011893; Fri, 26 Apr 2019 03:55:53 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id x3QAtrum011892; Fri, 26 Apr 2019 03:55:53 -0700 From: Manish Rangankar To: , , CC: , Subject: [PATCH v2 2/2] qedi: Adjust termination and offload ramrod timers. Date: Fri, 26 Apr 2019 03:55:46 -0700 Message-ID: <20190426105546.11850-3-mrangankar@marvell.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20190426105546.11850-1-mrangankar@marvell.com> References: <20190426105546.11850-1-mrangankar@marvell.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Matching-Connectors: 132007497715315375;(abac79dc-c90b-41ba-8033-08d666125e47);(abac79dc-c90b-41ba-8033-08d666125e47) X-Forefront-Antispam-Report: CIP:199.233.58.38;IPV:CAL;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(346002)(39860400002)(376002)(136003)(396003)(2980300002)(1110001)(339900001)(189003)(199004)(85426001)(5660300002)(26005)(486006)(36756003)(76176011)(47776003)(105606002)(11346002)(2201001)(4326008)(446003)(86362001)(51416003)(476003)(2616005)(126002)(107886003)(26826003)(87636003)(498600001)(68736007)(53936002)(54906003)(110136005)(70206006)(76130400001)(305945005)(48376002)(16586007)(69596002)(2906002)(42186006)(50466002)(80596001)(316002)(97736004)(1076003)(50226002)(336012)(14444005)(8936002)(70586007)(8676002)(81166006)(81156014)(6666004)(356004);DIR:OUT;SFP:1101;SCL:1;SRVR:MW2PR07MB4026;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Fail;LANG:en;PTR:InfoDomainNonexistent;MX:1;A:1; X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 2f536a21-0890-4629-fdbe-08d6ca35cb78 X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(2390118)(7020095)(5600141)(711020)(4605104)(2017052603328);SRVR:MW2PR07MB4026; X-MS-TrafficTypeDiagnostic: MW2PR07MB4026: X-Microsoft-Antispam-PRVS: X-MS-Oob-TLC-OOBClassifiers: OLM:2043; X-Forefront-PRVS: 001968DD50 X-Microsoft-Antispam-Message-Info: v3mHpy981hBXMwqLs2gDSGDJgX22hHh+lHsK46ckfDAkw9NSBhZ3cl5DIe2bN/Ma+iv/KtFA5kQRNgZBX7jB8O1rij8kVZ177sueyTzzw7fSrf8hmHObLQF5kA06td4VW2fPqkH0biiaoa/UkVIKSAktJGRduGu5vQZoFOzJYHxqjbjKW5MfUMP5xUVJHAGaY8oar5RMkHiCsKI2hi1HUTPrTii9n3rnw1rElFlXiiOWLQ5NcMW5SIYhm76BAsJlxqbP8SqYIkotlzHC5ygCkZCx00mOf1eBSb5UwGfsMOz3NAmERR5gszFMfoiHtYWaE+A9edleAKs0DrLgcqu1bD1SMEbDdEU4dTxvplrtPyxdy9JDIEBkXvfMixYYOiWIRt4sJyV3HWx1iRPy0cKz4pMuwfm0uRLpOxqsJ3RkrLw= X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Apr 2019 10:56:10.8097 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 2f536a21-0890-4629-fdbe-08d6ca35cb78 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[199.233.58.38];Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR07MB4026 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 Whenever offload ramrod is issued, firmware wants driver to wait for max 5 sec, otherwise driver can initiate further corrective action. Similarly, when termination ramrod is issued, irrespective of abortive or non-abortive termination driver should wait for 60 sec * max TCP-RT timeout. Signed-off-by: Manish Rangankar --- drivers/scsi/qedi/qedi_iscsi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/qedi/qedi_iscsi.c b/drivers/scsi/qedi/qedi_iscsi.c index bf371e7..3032bfc 100644 --- a/drivers/scsi/qedi/qedi_iscsi.c +++ b/drivers/scsi/qedi/qedi_iscsi.c @@ -993,10 +993,11 @@ static void qedi_ep_disconnect(struct iscsi_endpoint *ep) struct iscsi_conn *conn = NULL; struct qedi_ctx *qedi; int ret = 0; - int wait_delay = 20 * HZ; + int wait_delay; int abrt_conn = 0; int count = 10; + wait_delay = 60 * HZ + DEF_MAX_RT_TIME; qedi_ep = ep->dd_data; qedi = qedi_ep->qedi; @@ -1166,7 +1167,7 @@ static void qedi_offload_work(struct work_struct *work) struct qedi_endpoint *qedi_ep = container_of(work, struct qedi_endpoint, offload_work); struct qedi_ctx *qedi; - int wait_delay = 20 * HZ; + int wait_delay = 5 * HZ; int ret; qedi = qedi_ep->qedi;