From patchwork Wed Jun 7 21:43:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 9772931 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 3705C60350 for ; Wed, 7 Jun 2017 21:44:23 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 459742847A for ; Wed, 7 Jun 2017 21:44:23 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 3A4B0284F4; Wed, 7 Jun 2017 21:44:23 +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 9A10C2847A for ; Wed, 7 Jun 2017 21:44:22 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751454AbdFGVoT (ORCPT ); Wed, 7 Jun 2017 17:44:19 -0400 Received: from mail-by2nam01on0081.outbound.protection.outlook.com ([104.47.34.81]:55311 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751754AbdFGVoG (ORCPT ); Wed, 7 Jun 2017 17:44:06 -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=jBD/NfgdOw1JV46KVNbPMMvdX3ul2XfQz1wZXM4iecw=; b=F+wFKBqZLd7BOOeFEeNOLIyZ4S4kjR0rpUiEVjEPeSLyEjQcuWc3Z66p6XgWzmHXHjO22HK2hiSAn8n1NPz/AeSnKKAslqC22aoSGXPln2Ij1WkC0Nu/DMql5M8vqsskDXVUnP6OL4/DYhQ084QyXpThUpq8EccJnr1qN/HjyZ0= Received: from BY2PR07CA0090.namprd07.prod.outlook.com (10.166.107.43) by BLUPR0701MB1012.namprd07.prod.outlook.com (10.160.34.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Wed, 7 Jun 2017 21:44:03 +0000 Received: from BN1AFFO11FD028.protection.gbl (2a01:111:f400:7c10::137) by BY2PR07CA0090.outlook.office365.com (2a01:111:e400:7bff::43) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12 via Frontend Transport; Wed, 7 Jun 2017 21:44:02 +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 BN1AFFO11FD028.mail.protection.outlook.com (10.58.52.88) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1101.12 via Frontend Transport; Wed, 7 Jun 2017 21:44:01 +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; Wed, 7 Jun 2017 14:43:42 -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 v57LhfC7023193; Wed, 7 Jun 2017 14:43:41 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v57Lhfts023192; Wed, 7 Jun 2017 14:43:41 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 12/15] qla2xxx: Remove datasegs_per_cmd and datasegs_per_cont field Date: Wed, 7 Jun 2017 14:43:30 -0700 Message-ID: <20170607214333.23110-13-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170607214333.23110-1-himanshu.madhani@cavium.com> References: <20170607214333.23110-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)(39410400002)(39450400003)(39850400002)(39400400002)(39840400002)(2980300002)(428002)(199003)(189002)(9170700003)(189998001)(2906002)(105586002)(48376002)(42186005)(1076002)(5003940100001)(5660300001)(86362001)(50466002)(356003)(8676002)(80596001)(107886003)(101416001)(50986999)(81166006)(305945005)(72206003)(2950100002)(87636003)(478600001)(38730400002)(106466001)(33646002)(6666003)(8936002)(76176999)(47776003)(50226002)(54906002)(36756003)(4326008); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1012; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD028; 1:9T4rajuX2qMIDCjmtIHlMvy5mGAVAlpTZ/NlVSmTqWyD4NdIt8mkKEzKha/x7avOWNHFDi4IENL9HCtuUAeq56lmh7hPhVfgaJbZQlEIBuv4WJXohUWphuGChfY1ljk7zgen/R0niShrroMUVdbiaEx7aaelYFOZsshxgfoEdelSGCwnb9naFnPgxszAlBnhjdAvQN/3WUxvBy5sM4mXrjRzk6MMZHOGRR3DUbi2gCNAaLrpJ3ZM47jAN/bwRCGOGfTuMt7aZPWiC+E2p2WBX/6gjL/+e2Lf+3qsnKtgUhVILn/JDLxBEMYWL3nrkY1VGpMiDH0VrbvvsDs14HpYhMuomNipT/yPpmJaMt32J8nZuvQTE46NEQefFX7sWfhIWs+KGz+lOclyMYcPvj5Z8/wFJ01FK9mY5dtpBXkbwrznQCjlhigUiBEfqTdCf/hHEBOwdLfVbD3mJSF49q4LyWFHsHTaf61iKzInrC8cE1BHYw/nQ7eQ5uD6eLuA07KK X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BLUPR0701MB1012: X-MS-Office365-Filtering-Correlation-Id: fa736439-b27e-4a16-b363-08d4adee5016 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081); SRVR:BLUPR0701MB1012; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1012; 3:nc1Umd6uu4tgFpq5EGdZKOJ0KHMM5zP091EuJHQAuuXCCdsvP+LV9pJI6Qp4c0CZ9VNyO97D+iL0SOPHlSELLaptM0C+VoSvLgdcEiqCgttuvVB5qyDpzIdjJFXShjOmQ7hBohmepFMevA255XIRABTUqvXkeVIoUMj/cvl2w9/DBFlb1HF4iVwgQFHH+vREWLpAWi2r8TnisTNmxWSJNaMmGCFLjhGTiWfhdTihGDpBG2KU6sU3LNP2lQaUfJyhOdsoV/clPnpLfhSaJPHiM9Bm1/N9quCHKHPMilRleCftROeqXpS10bVR+8zRvsJq0+aCu9dNN383dcSChEER2rJCpdJ8GUsYF37JOXYrYAmfcNNRJU9zAyt1DWOV0QurzoeL3vwdFeSGtOYiet4OGD8BxZd8ysDntqxDs8LVtiRTMzRewRbmCLbRuDCvtKZuOQaIO4cCNsjQUENdGV4PWA== X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1012; 25:13SMYynMJ9oz5CvsG/pI1Pxu4SPe785roZ4uQox+xL8Wiy+tYBI/ITqNQr5mrjEPg3nE5Kwzsppl2KEt3FGagf3sFAbBuvXIVXvCshdjxSs1oGfBX2qhg+vo5AO9ELUkf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KyNZ8vpNy2PVzoql83TQmn8QnpYrjTXA5pi0/5zYMrUiWDJR9wvZNYqjB88G/PrHZ+uZrzcXbs5QOBMuRGST0suagqAhdgxucNKOUj 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)(5005006)(8121501046)(13018025)(13016025)(3002001)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6041248)(20161123560025)(20161123562025)(20161123555025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BLUPR0701MB1012; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BLUPR0701MB1012; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0701MB1012; 4:KJdru2naiBwXL1HfbgytdNDVD3IpBQ5z9LJjHGUq?= =?us-ascii?Q?peFAMTt7yPbeJj6aJmpQQJ7NERzVPT3BSvDrMo+vAeXVidGLjtcwF7Y4jfqE?= =?us-ascii?Q?RZ3ZZ4spsDf4HSIaR6r/J/ZI0XARx+JJTaLznj2cE04ds0bYXJEwiEt/3pvz?= =?us-ascii?Q?OeMuslMrgfOfv8tRuNjVXm3Zl85CblapDmOgEmfmJSoI2wYot1ztri6rEK3R?= =?us-ascii?Q?9yRyC/hELKIo0moy96MnY16Uwrlo/45rJKNZ5ZIOYwN49v1l1BbcBY2XaDqz?= =?us-ascii?Q?XuloCdJS0TiGyxKPHHFci3G0bDMn3ueKIehT0UaFNOBOkeQW0S53AjUGFAlT?= =?us-ascii?Q?47VN7HzL9o4wIYBGeM6aMU2YrBWkvz9R9Ek6CpHC8gGBvzznSpSCDxP598X3?= =?us-ascii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X47i+58C29HhkWNnAo6se4bjaRjMRGIWwnRevxpkXTqa69dm+zY8/V0XiDgZlbRo55EdH7thoV6ZlZjB+n/5NWmvFi6gIpk4qc+zFlyRkbSbwHI3cvUatdT6DW2fbHfSrimZYO+g6NDEGSL7Dbp2PCcQu53s/SayFcf6LSQxGQ750sDQc4RyYbbYaYOEQVN+wQjYg1XLbFL2RItg6q5+4ggRPrSUJlC6fS2lJe60zYsK5QW+k7F8eOCvw6p/J/nr9YUSEl8/8QsqK+bl0WFCBECz5Fs68gpl2zc1wmbBXxFUG7j2JujjeSWRcyPvQoHWcMYJjAprFZxPD5nZcXbAn7jjPGjGU9tu5CxYjVLWuQIQ5tUu76pvHpn/XL2pG7OqKXhg9nyeADbf+noQEA; 24:47oxkhwVPy4gjC4f4VcEfAcHsCSv1dbTq8Qptts4I/aGkWKXyt7VVvZA5MVN5r9j55qQqUl70FKLu4ui+iqKYnTDlhOPu1rIjS7dKvwm994= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1012; 7:2S6+Zqoxqfa3Ost2G2+icTlYxXF9XlIYBvkkfY6hCymFeKd0UIX+7nWombLdlkTpTn4SmPFkrM4K05KFuGCa+uM91xw6rWp4pB0lRwFFCAR4/pfCOYwnZeeazfPt3fMIGhQdXhy3N4Z+hz48B4QRa6MBfRoCvBQ1CrBjMsi/zWwFWeU8x1jD9IF/MK4W64NH4EWPbpvSAPrK+WHkTGCO/HmH0kWidJlgB4O190lXy9POQfzH9YB7p9Wp2XXWCLOF4rl4owadXjp28UmeOloiuH1jVBHcoNLCzmZj+W0LYI/Wp5iKq3m0uvKFnRlLqOzbt0fcB0yceqaBYRvsS6YiJA== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2017 21:44:01.9825 (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: BLUPR0701MB1012 Sender: target-devel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: target-devel@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Quinn Tran These fields only hold one set of value. Replace it with macros. 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;