From patchwork Wed Jun 14 03:47:27 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 9785251 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 94D0B6038F for ; Wed, 14 Jun 2017 03:48:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A411D27FA3 for ; Wed, 14 Jun 2017 03:48:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 98D5328294; Wed, 14 Jun 2017 03:48:31 +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=unavailable 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 45EEF2858E for ; Wed, 14 Jun 2017 03:48:31 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754230AbdFNDs2 (ORCPT ); Tue, 13 Jun 2017 23:48:28 -0400 Received: from mail-cys01nam02on0087.outbound.protection.outlook.com ([104.47.37.87]:59856 "EHLO NAM02-CY1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754202AbdFNDsQ (ORCPT ); Tue, 13 Jun 2017 23:48:16 -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=S8n7hEWsxlZ0UvzPL4IhjKlkHGdz769GzVv55yOMYJE=; b=AHItleu5k0l4xrUl6ZVrPOnKjF5kh9ka0XNuGmRi8K8m9pGa9wmbictOhUe525uVQUo8rQ4a7aC87Lg9cmcmEkrxZxz78kWQpu8p1QeWkg8X5zDLpCkv6L7qTM1SfqL4LJUh6/u14M6JmvN49/R4lTq7I3Y1MtB+Ihk0w8rVxjQ= Received: from DM5PR07CA0031.namprd07.prod.outlook.com (10.168.109.17) by BN1PR07MB424.namprd07.prod.outlook.com (10.141.59.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Wed, 14 Jun 2017 03:48:14 +0000 Received: from BY2FFO11FD018.protection.gbl (2a01:111:f400:7c0c::104) by DM5PR07CA0031.outlook.office365.com (2603:10b6:3:16::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1178.14 via Frontend Transport; Wed, 14 Jun 2017 03:48:13 +0000 Authentication-Results: spf=none (sender IP is 50.232.66.26) smtp.mailfrom=cavium.com; vger.kernel.org; dkim=none (message not signed) header.d=none; vger.kernel.org; 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 BY2FFO11FD018.mail.protection.outlook.com (10.1.14.106) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1143.11 via Frontend Transport; Wed, 14 Jun 2017 03:48:13 +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, 13 Jun 2017 20:47:57 -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 v5E3lvEe015511; Tue, 13 Jun 2017 20:47:57 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v5E3lvr0015510; Tue, 13 Jun 2017 20:47:57 -0700 From: Himanshu Madhani To: , CC: , , Subject: [PATCH v2 12/15] qla2xxx: Remove datasegs_per_cmd and datasegs_per_cont field Date: Tue, 13 Jun 2017 20:47:27 -0700 Message-ID: <20170614034730.15428-13-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170614034730.15428-1-himanshu.madhani@cavium.com> References: <20170614034730.15428-1-himanshu.madhani@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)(39840400002)(39450400003)(39400400002)(39850400002)(39410400002)(2980300002)(428002)(199003)(189002)(9170700003)(80596001)(2950100002)(189998001)(101416001)(72206003)(50986999)(38730400002)(76176999)(50466002)(48376002)(54906002)(305945005)(42186005)(87636003)(33646002)(5660300001)(36756003)(478600001)(4326008)(5003940100001)(86362001)(106466001)(81166006)(6666003)(356003)(8936002)(2906002)(50226002)(1076002)(47776003)(8676002)(105586002); DIR:OUT; SFP:1101; SCL:1; SRVR:BN1PR07MB424; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD018; 1:+4Itz3R6L90TbQvzWokTD1EgX7gfcvM6CgQzGuEA1sBo4PVBKTRaxdfcIvZUZRMbkO8QHGy9Qa5vvCHD2IO7man1E3mKzshbqBHPt2xlX3WWEQaQRCAEPCMVnsBs+G7A3AWEPtWBohirowi6iIXiE1VvuiuGBBWtWa1YIT9Ftnu8a4TBriZi/pMwfhzo8N/ue7NkYDLzBBp2gv0ryII2veLrKWhvkOBO+aj1I3bTJxW6a8rCQBkOF12ofVJc/Y1A0shqyodDdS7hjodrgE28G5aHnKC/fAFLD1nBPCvNyTpLxWRklb/+e7S4+lVUGrqJeTFC7y76rI1WTtGyYuYig8+Z/5OXa/yL0cA18qqiBUMWRkxDMot3k+uFB8su7mxBYI4h6csDhflEyyD8efFjPz3jwi7aJi83PchYTOgYheSdl7k/IKFPa5zUPz5LKjfMJJ6nakI63+jUEsY3D249t0PAAMGFS7BCQ1/d8Y3WTTsAOq7HBgZUNJ9OGK3q64vZ3IGMafDIx7DG2zBeO50ftQ== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN1PR07MB424: X-MS-Office365-Filtering-Correlation-Id: 3ea8eed3-d86c-4b6e-51e6-08d4b2d82ed9 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:BN1PR07MB424; X-Microsoft-Exchange-Diagnostics: 1; BN1PR07MB424; 3:i8C59UMfcecioxCpLK2IOjdWR73MLOiiMfiOzWjmul6Jkab4VO5Uka2dPq+M1MMjXerds/ZMj+IBo/qTtdWjik8+aDWHJb6n09uCh3M2A3VvdjM5YVa6X9huPYTgzmDqgLvHNVjX3nUhw7hGFyECK3pfITB4QiJ+aF80YgWVpWJoBISE8/v367itqIMgqS8V/PqUmuQX4tWb/kacgDOAoEB+SWYrOoEsDuyjOXq7ZlQrP3LtOuL8XgdhxZSKUp77An24IZhJKbfPxEC4RGomncdUO1qAZTkYZNCGwSKLZ+lUheQE8rsE3FrDge7LP/yuWRWWk/0XPQiRYHixC4IFhSqCmJgaQvMWOYXaIeSitpQbf9iv9AFE6zvDs0100peFvJ0XrjNEQvO8n8k1ZtdgBrGU2iea5YHxALcNcHeGmK/f9Z8nMWhRm/PWLLZLgGWA19TS5SkZHIE8MS3SQ+GhC0otEUsUNqATRhfVijDBS/jxmX0ZSspTmMUHCt8vGyKu X-Microsoft-Exchange-Diagnostics: 1; BN1PR07MB424; 25:jy2f+AdApbbOxZitOGOnboVCWJ15YuVSURmxrxja+qsR601VQfp6Wzjpqj1zPvtQ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Ya8dgidfbIHKK+xtlDWB5sL1CfrOEBEaETEWwsNlZEg/IK6Mre7i5fNK/pPj5ZJESRJTzfS+Z74gTBTSc3BpQPhThR1scs7SCG3sCowDkiZEwSEcRaQupLfjHEu4/acwQXmiDcS8p34Fwbkc+KmksGbCoDL7FkBb2o43tyqS1 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(788757137089); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(13018025)(8121501046)(5005006)(13016025)(93006095)(93001095)(3002001)(10201501046)(100000703101)(100105400095)(6041248)(20161123562025)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123558100)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN1PR07MB424; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN1PR07MB424; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR07MB424; 4:HpO5KMMmeP5oPdAKWswvYFcL28ptukJ4ZJP81D508wI?= =?us-ascii?Q?aR+jl9ScaIVHkeQC4YAF75PoAyvNDbMCPBJSTwfPGIw8gvtUBzT8FMmHZIEL?= =?us-ascii?Q?LM9Z6hmrfyRPc0RW7pzjLhYGlSeFgojmZt/GVw+l1W/IP1uGqyd4GISRZXt5?= =?us-ascii?Q?8wsZeLb6E9IvgVtqf4XCEu7guh+ZTWzir8ca7GaLQAgaULSSLEED1m8suPO5?= =?us-ascii?Q?c0CkRhg5TWVwfbcZWSndaoEMUNNNi485m3IEXJmTYam6md1744gUW9FRGf97?= =?us-ascii?Q?crnwlDXEhpvs3c7f0Hw4/8k/AEKFGWIc2S1H003zriySBimj3xoUcFe6pq1H?= =?us-ascii?Q?ZKQUFJBH1LqU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?us-ascii?Q?=3D?= X-Forefront-PRVS: 033857D0BD X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN1PR07MB424; 23:QMGOmmC7QT3DX7GDBKyfVZ8AN4YSxWoZnk97H8vPW2?= =?us-ascii?Q?g6eo2i1YaRAQae/MJqcxUNzCEcgD8MwMJb6oKUC12W2wJAI6u65NQqe8/5IP?= =?us-ascii?Q?gZow5wd7uZCx6L9ZTsBsYMyeFqrx3GmqwDTYHPAQN6OpU4Fs0VvOGsH2nqa1?= =?us-ascii?Q?+URWkOANuRZzNX0OHW5GDi816+n+LsFOow2AvM8Ktx5z+E2Qj5w/Ay4at5Gm?= =?us-ascii?Q?O3dUjVNdIubRtBYbAsa5kTiNKajKDPCR3pD/WFnRn6+55dBRMAG5MdyV9HdD?= =?us-ascii?Q?mt/F0G0+b8abcNtuz59Y4XXuiO16bDpGF/gWfxABLfp8kF15D5vOSd1470UG?= =?us-ascii?Q?bE/iH608CCqOs0dMM2JLBfcpEQlLWcZNNwbq1GjKRTgpoR+bLTNIWIIVUfdB?= =?us-ascii?Q?qMer20ctUbeIsn8E53siNs0UyAgLGi4grTFsPgZdkc/oCZSwlpXDWveIqWkn?= =?us-ascii?Q?VGPGEKPLDuV1ehGZghCCZzG1FsFE2HbF5mnzGA1zfVdoRqz+OsO1qiyIX5uz?= =?us-ascii?Q?z055G5+G/wbd91E0HrCb23WVYIlSz7r5Tv6BZR9BqKZfvK9vzlTy6pdJgrcK?= =?us-ascii?Q?ThukNMSnazpf/v4SrTKIsELkfYwMXmimd1TAipfhViAekJ9xRsfd3N3isnC+?= =?us-ascii?Q?uoATPfLp6UsNz86xvuxbryNlAkr8KK3bPx2p249OKq01XXaSNG4zn0e1zL2v?= =?us-ascii?Q?9Stnf0Ys8cT4gWHCxE0he2T/ItcBrMe9iT0gLHHGN8NvQI1mcqgROATPJ5LA?= =?us-ascii?Q?+kxlh1PVB7IaIdDICVB3Wl0mwVGsafsv1Iaex5+1/OVemKw0jODBMLd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ot4o0cYnKJ/OsxntSygmcT4xoS5HJHrKOTbveN0a239L9Rr6ZvHetR90BPiyo19moSBdWKKmGR682k8YZ+KzPOxIxVFHEBVlBim+/6qou75sjLkSU80wXpRva1Lu3kp/bQd+aqRyW3Cv3+2MMrsjA9LHtD1rdAGKO2YwEg9jxDj8fSxtM6FscYO4h4jzQI32u0xTYJ6j2pediIpdp2McRy5+pR5D1BycLWsS2D7LXlAhnmGi08kTZTQIz3idt+XdLk6Sgj9CLPKtyPtfQ4v3pz59hVP6g14R5rcMIuWfKUP/yg9DXRqV6l/vJxnkMV2MgXQtEruwHFs2Yi6ukQBcDK+ZQL7yK2JhwQ5eB4nYFgwibilMlOADTR6/nEHy+A1FjtV0b8lJs; 24:CP1mZmzfLd6XGc2UkJVfHp5L4SPRSU7TjPKaYCgfJhJUW1R41Yb1eScYEcGl74dRrHcKqDJhEYvqcDMQG9vRzPXDmEZDKVTbA4lhuqeIJBU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN1PR07MB424; 7:dapjjr/6fNGrEe6Oi5SHrT3jgPoubk52ZXIarsKLSDBxIFMSokdLsLBy+uwTOUCYX1T2pjsJuHxF2hfzZQKtciw7KlZD+AS+ULv4dw1ENzJjYCnAJFxyziVugR+EotQcKMat+z+TLtOc6yGJKVrHD1wcSZq4LHKTxQnumbDv8yjCWF8R+WmSGF9omy35OYlkIexJ23nrizWbR8WsM/Op7RzUKiCt1pSJdv+G/Pw6IPc/m9/ZVS60cP6nkyGc8HJkX7ocUsav3InJq30oK5wBqxEMhtKRLxq3FR92XklCEgS2qqqQM1NxFDsrw1uQZ68OpDb0Njjrs+TYVcHgOePhkg== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Jun 2017 03:48:13.2728 (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: BN1PR07MB424 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 From: Quinn Tran These fields only hold one set of value. Replace it with macros to reduce cache thrash. Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_target.c | 12 +++++------- drivers/scsi/qla2xxx/qla_target.h | 2 +- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index 411c1799c6e3..48d82c67e223 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -2228,10 +2228,10 @@ static int qlt_pci_map_calc_cnt(struct qla_tgt_prm *prm) * If greater than four sg entries then we need to allocate * the continuation entries */ - if (prm->seg_cnt > prm->tgt->datasegs_per_cmd) + if (prm->seg_cnt > QLA_TGT_DATASEGS_PER_CMD_24XX) prm->req_cnt += DIV_ROUND_UP(prm->seg_cnt - - prm->tgt->datasegs_per_cmd, - prm->tgt->datasegs_per_cont); + QLA_TGT_DATASEGS_PER_CMD_24XX, + QLA_TGT_DATASEGS_PER_CONT_24XX); } else { /* DIF */ if ((cmd->se_cmd.prot_op == TARGET_PROT_DIN_INSERT) || @@ -2448,7 +2448,7 @@ static void qlt_load_cont_data_segments(struct qla_tgt_prm *prm) /* Load continuation entry data segments */ for (cnt = 0; - cnt < prm->tgt->datasegs_per_cont && prm->seg_cnt; + cnt < QLA_TGT_DATASEGS_PER_CONT_24XX && prm->seg_cnt; cnt++, prm->seg_cnt--) { *dword_ptr++ = cpu_to_le32(pci_dma_lo32 @@ -2492,7 +2492,7 @@ static void qlt_load_data_segments(struct qla_tgt_prm *prm) /* Load command entry data segments */ for (cnt = 0; - (cnt < prm->tgt->datasegs_per_cmd) && prm->seg_cnt; + (cnt < QLA_TGT_DATASEGS_PER_CMD_24XX) && prm->seg_cnt; cnt++, prm->seg_cnt--) { *dword_ptr++ = cpu_to_le32(pci_dma_lo32(sg_dma_address(prm->sg))); @@ -6170,8 +6170,6 @@ int qlt_add_target(struct qla_hw_data *ha, struct scsi_qla_host *base_vha) base_vha->vp_idx); /* 3 is reserved */ tgt->sg_tablesize = QLA_TGT_MAX_SG_24XX(base_vha->req->length - 3); - tgt->datasegs_per_cmd = QLA_TGT_DATASEGS_PER_CMD_24XX; - tgt->datasegs_per_cont = QLA_TGT_DATASEGS_PER_CONT_24XX; mutex_lock(&qla_tgt_mutex); list_add_tail(&tgt->tgt_list_entry, &qla_tgt_glist); diff --git a/drivers/scsi/qla2xxx/qla_target.h b/drivers/scsi/qla2xxx/qla_target.h index 902685f85506..7fe02d036bdf 100644 --- a/drivers/scsi/qla2xxx/qla_target.h +++ b/drivers/scsi/qla2xxx/qla_target.h @@ -806,7 +806,7 @@ struct qla_tgt { */ int atio_irq_cmd_count; - int datasegs_per_cmd, datasegs_per_cont, sg_tablesize; + int sg_tablesize; /* Target's flags, serialized by pha->hardware_lock */ unsigned int link_reinit_iocb_pending:1;