From patchwork Tue May 23 13:19:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dupuis, Chad" X-Patchwork-Id: 9742577 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 BA7676032C for ; Tue, 23 May 2017 13:20:28 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A8F88287B7 for ; Tue, 23 May 2017 13:20:28 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9DD9E287D7; Tue, 23 May 2017 13:20:28 +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.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,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 3DE3D287B7 for ; Tue, 23 May 2017 13:20:28 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937137AbdEWNU1 (ORCPT ); Tue, 23 May 2017 09:20:27 -0400 Received: from mail-sn1nam02on0073.outbound.protection.outlook.com ([104.47.36.73]:64688 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S937119AbdEWNT5 (ORCPT ); Tue, 23 May 2017 09:19:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=b5V051doXKnlpKDuMOzrRKzALMUP/Bung12Uk4MKNq4=; b=SMwxjNKZr1ix8ZK7RmDiqeweis7qzWiuTsDx5745fbVUe13ainfEMLMw0hpXZtVTUpjnR8GWAMaWQC4dKF1MAwThIJAZqmptg71tamkFvo3yc9emkKCblhGunWGC2pGk3vVKpHSqdJB+ahCR5k2xNPMilZRPkHqOPXqkoXsM75s= Received: from BN6PR07CA0001.namprd07.prod.outlook.com (10.173.33.139) by CO2PR0701MB1013.namprd07.prod.outlook.com (10.160.10.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1101.14; Tue, 23 May 2017 13:19:55 +0000 Received: from BN1AFFO11FD012.protection.gbl (2a01:111:f400:7c10::145) by BN6PR07CA0001.outlook.office365.com (2603:10b6:404:3a::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9 via Frontend Transport; Tue, 23 May 2017 13:19:54 +0000 Authentication-Results: spf=none (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; oracle.com; dkim=none (message not signed) header.d=none; oracle.com; dmarc=none action=none header.from=cavium.com; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by BN1AFFO11FD012.mail.protection.outlook.com (10.58.52.72) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1075.5 via Frontend Transport; Tue, 23 May 2017 13:19:54 +0000 Received: from dut1171.mv.qlogic.com (172.29.51.171) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Tue, 23 May 2017 06:19:39 -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 v4NDJeWg001886; Tue, 23 May 2017 06:19:40 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v4NDJek7001885; Tue, 23 May 2017 06:19:40 -0700 From: "Dupuis, Chad" To: CC: , , Subject: [PATCH 14/15] qedf: Add change_queue_depth member to scsi_host_template(). Date: Tue, 23 May 2017 06:19:30 -0700 Message-ID: <20170523131931.1777-15-chad.dupuis@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170523131931.1777-1-chad.dupuis@cavium.com> References: <20170523131931.1777-1-chad.dupuis@cavium.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(39450400003)(39410400002)(39400400002)(39840400002)(39850400002)(2980300002)(428002)(189002)(199003)(9170700003)(101416001)(1076002)(6666003)(189998001)(2950100002)(72206003)(50986999)(6916009)(76176999)(54906002)(5660300001)(110136004)(50466002)(38730400002)(107886003)(4326008)(478600001)(2906002)(36756003)(2351001)(42186005)(33646002)(305945005)(80596001)(5003940100001)(105586002)(106466001)(8936002)(8676002)(86362001)(50226002)(5890100001)(81166006)(356003)(47776003)(48376002); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR0701MB1013; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD012; 1:IoFQ8vZRx1CmEhOLsdieh+93Uf23btwdNnQ83OlLRCe1S1rx+d3DX/iyFYPR2RMYh/ssvCubawf7zHipoj++Mb9IFXFPfE9smOi1z7D+u+OZPRek2Cr0F88vfUoXX0wpE/h6SBV2UVl45PYB56fMd2b7R2xrctVpwVbFqIeHwG8ys7kRUWhiHqtnbqaRhhp57Vxj9v5AbED1rIwUACkLBOGqf1PZtip7uiAmRTEPBBGF7eNVFeLdSfbtAZp8zCoCcwpm9BGywK2o9+s3nJIwR0zKyu+mb3IbB9Xis2HTZJ5uMTgrClDO1q2BqTuQoLvb4Hcg96P7sAv+1FSxlDFI3IS/O5PUo5TrP/uvaS5c+WKa0+vi0AnjpdiA4xKuCnHpTCh4bWc8IOZ/Tzjhm2VLW7wLGvnttxy9eFK9ULgsgXLTfQJWUnp8jWDrrDp76lGxfA3BfjR4C2CFIogd/WVwV9ITWpH/rHRFQxYgpuu3O67+itfIqxf1YFr3aQtooznnQR4Am/GVrdOSGmc6JlmS2w== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO2PR0701MB1013: X-MS-Office365-Filtering-Correlation-Id: abec5c7c-de50-4545-51d2-08d4a1de6710 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:CO2PR0701MB1013; X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB1013; 3:3rQrLTxmdGtUYoMcvOATFlI/QC4PokayVAYxXr7cRFwnuXQGS/w5qk9JvrmfOxkNB0kv4Z3cqG7Qkz5r7rPaPbwtcaf8y2f4zu0DuSgbnL00KAiZn8qFEmtTJWPvVTtbVlSCGcG68N4eLXSbXO/A5u1hF4qb7pyvcqKGdunWtW3zKqo9jrmB+q2x3zvqvJFBiXG8uLhIH7C3Lknxzawsmx6GLVU0YFt0yq5fuYmiBr7p9EeWFmarzhLoYXlSUCMlMNuZLiJmQvLr24YOXkeFsu2sVdj+yMSfUG8hGL5m5ETVnUIyymqEtsFmQ8Tid6jIyrgiSRoMDxwP0nZqpXzJoDVOkr8TelQfV94BqLbfwW25ikgtUoQKU1x4udtVeoFoiYefvIc1ERqhPbzl1kTZn5ZdDEHs+/t4cAuWL8xg+kC0IhzKJhthOSj6T50iF1D5QWvP5f5g+0QfIOTYPKR77kKkBgVjfNPX4CCPYzMA4vtAF/f/gSV0JyYQC6jW+Xaf X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB1013; 25:MMUSkhcDdZAElNN1aGeABkA5ank2lGp3gJbZJD0jMxuym2+/R5jTuvirDBeuOeptxF34OTDL2fa88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7mghoxRvHLkg67apxfexRfTxW0sZPBVN4osekzZ6HgcEvwYCsOd1l75xUCj/76nph5l3y/ZjYlQLh3J63VDsBkKCbE/PzNbLpWGv4GzLe+p3odPh9ePWgZiFqyTtEYXVi/fQUgF0uzQfYlzI5sYNwZqs/vlFsGphMr0Ywn73izHd/CiX48sWaq X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(601004)(2401047)(8121501046)(13017025)(13018025)(13023025)(5005006)(13015025)(13024025)(10201501046)(93006095)(93001095)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123562025)(20161123558100)(20161123564025)(6072148); SRVR:CO2PR0701MB1013; BCL:0; PCL:0; RULEID:; SRVR:CO2PR0701MB1013; X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB1013; 4:LzBoMoFxu1fkWjOqz4bIvOjzuxhQePdIUo8VU9bCOAi2uPgEAmOdTJKlLZmT1arXJTj9Y6MKuSFAQ/sEwiqvmrrecmRfpZlPCTd+UOjqXjZRSNVbSM0RmGgWl86IW7qT7+68wU/7WAkxVzz0HofWJi4TBlaa1Gvrm3gD2mpPzOFmlAymmGi3AJNBeP5/k6AXCdNo6/dVH/G9UiElvrX+1XiFgMnFDRTtzMd6ij7lLXRPG7eIdNBTiIDZfV69rEjG3Dui2KFffVZlw8UPyof+EgMc3x7ZyQFAgpxs6MDc+RDt6oiNTm4vvuGHJ/D6iJHSvtvaQXqErxsg5Nw3aVsViEXNX3bdSIYsbXJVH/mHqK1qAK3Z/u+gZ9e0H+DJORELEGCz3MQ77PwrGKU8jEaVs4mXEs9vYkuNX4VlxRxDCOHMvLwO0/Uwj+K81Jk/l4MRH4OEKpHX15NcddHE4vVRW1mAzDiYukLen5sjnLE/ZPPXdKjJ4JsyBA4ohdxUWA+6c4GtI0fZPREtCEobfQtvRvtOMP2u3jQ+zBNz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iEE1hYle/KA8jgy8Q9KTVH8YS14fsI7HC0LJYY2turwTzAf1ChO?= =?us-ascii?Q?rS8FO9pTtK3yYcktcyVpjjBV9jKv8h9eGr9f6GPTLTOGj7DiowZ/Tzae758O?= =?us-ascii?Q?rReq2jWJTAimhmlwc0KSj45KDBi+rcEmUYzTVIqu4+HIsdHJh4wOYogdzMQf?= =?us-ascii?Q?gJZk2aSHxLtP4d5wdoAR4/BG6rH4JcD+uRY//ziSCubLsJkKBAgLT+a4eq1b?= =?us-ascii?Q?dRnKs2IM8pY8mTRnrLRvUa7oMqkB4SfodTFy9SoVO674A9iZV+Gs1/z4H4bN?= =?us-ascii?Q?dn+ADg3BcTxtOSRGQcwJl3Wr1NJ7cH7JEu97/QyY0D6G82wWztci9R+NHWgF?= =?us-ascii?Q?CZ4TJRLEDKVLkm+QhkX3lMDVvRth12zlrhYsSDeK8mOS5BphGR6MEBG5Mdx+?= =?us-ascii?Q?H/yE4E5/NWpRQZD+nM8SpuioylsDkiw6uf61NPo/4L9aZ8qT0rx22DavSN5q?= =?us-ascii?Q?ocQawdwh48sgfIuKn9vOzU9xfrxlKHTB9aal/Se5RwTAx2MvbCR5SGT3slM6?= =?us-ascii?Q?aF6VXdnA1OHqSirKhKYTZgwWSYTsbFHyPKZAZlePdwI69GnapYgg7chZPv8D?= =?us-ascii?Q?9+BeTPO/JE29QpXC5fAWOAus1w6iZeVS3WgagKbzF+VAeSTYm8yigPw=3D?= =?us-ascii?Q?=3D?= X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB1013; 6:vPczJyn6Rz7fD3vVOam92tzY8iNR06feMszhhNuBBYl/JsGj41hXrxNtGUpqrtZOYukv08RghuwL3OR9gJEUopceQqY2VUMrpHaqqfcwwcvNVVK9rZi5KB3HKQErm/h7g7KAiVLWiqjJlq+ggALUHWB3xctEIVUPTFFMYIjYD7YvTKIDEhpX09t7vHm52+shuhhevQYWOWmwrucaz7ki81BUdAUJbSgxXbRU1OM0uAPpapPB6EV/cXC66cjvwEWGF3B6J3pNoVzeLh8MIM0HwMu8pRUk2s3ldsHlPirbqoon8tRvrobqhH+Pu/bg63QnCTB9mBykX0ZWtfefO8/4zHHRt5pB+slI7uYvwa21j6u7gZ8a18IS0BxLC+a36aYI5eytp3b5MbcAzVZ0xb7X6G5Au6oOda2QzI3EJ2gMM7qvsXFPuW0rlY57DGrN+6ANBJeqlkMwh/dV2NdCtgiAp4e3Je85yIQDnCq9YXmo9RlR5ICF+Vew4iaBt3un/z9VmQU+Rvza12knTfk4ggck0w==; 5:LC8tVO/lFSLP1w3IbbB6hQdAw+d7Le+CkNGE1i33rQOhR9Q/VRILBC/A1isCIM/ZrFu+qMkpo5LOois6Tsn2uofuQt6ZdltLTgD1Q4TRR8hiliiVaKo6Oeyw+HzwHTPXBdu4LO9CeQXJRFFp1fw+2A==; 24:/rsyX3PzzVJ9EypYYv4kOtnVqD+CvbY3dT/ZK4aqs2VGUxPO+boS+UMYg8YvbVQsiGZ+zsGSTUFzZDRs5nPpcCjK2m4oATgyGb5QVMp6KJQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB1013; 7:GOnbFaoZwj4N2n+PSWj8qYbcQYzb9weZg3bvt72EW4b8FzYL6qw5i1nNcdz6Ulz629Hphr29cphl1OVd/9BE+GqnoWTzgtepyS0N8XNz089NHv9+6tvHjVUJPD3luuc40WK3mgfbpvWMXk2wtt0/nOtXJ1igtFmUgv2jI2kcZUTcpeag3hOY8G16QINxKLR3J731OyLgeN2q0q8zUTK6Ct4Cnrj/NESboBTI7fKc5NmsleYwlrqLsWJ0pe0F/wi9Vnar+7aM8MZAesvIQzriq6AcrcqLPdFoPmBBITiMLlAaCJM+tcWvM27iRZ0G7DT62ganwhOW1nmYsXt+IIWuLw== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 May 2017 13:19:54.6585 (UTC) X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=711e4ccf-2e9b-4bcf-a551-4094005b6194; Ip=[50.232.66.26]; Helo=[CAEXCH02.caveonetworks.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR0701MB1013 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 Add the change_queue_depth member to our SCSI host template so the queue depth of devices attached to qedf can be changed dynamically. Signed-off-by: Chad Dupuis Reviewed-by: Bart Van Assche --- drivers/scsi/qedf/qedf_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/scsi/qedf/qedf_main.c b/drivers/scsi/qedf/qedf_main.c index bc85c56..5610803 100644 --- a/drivers/scsi/qedf/qedf_main.c +++ b/drivers/scsi/qedf/qedf_main.c @@ -722,6 +722,7 @@ static int qedf_slave_configure(struct scsi_device *sdev) .dma_boundary = QED_HW_DMA_BOUNDARY, .sg_tablesize = QEDF_MAX_BDS_PER_CMD, .can_queue = FCOE_PARAMS_NUM_TASKS, + .change_queue_depth = scsi_change_queue_depth, }; static int qedf_get_paged_crc_eof(struct sk_buff *skb, int tlen)