From patchwork Wed Jun 7 21:43:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Madhani, Himanshu" X-Patchwork-Id: 9772949 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 0469B60350 for ; Wed, 7 Jun 2017 21:44:35 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 131612848D for ; Wed, 7 Jun 2017 21:44:35 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 08135284F6; Wed, 7 Jun 2017 21:44:35 +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=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 5C8B72848D for ; Wed, 7 Jun 2017 21:44:34 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751812AbdFGVod (ORCPT ); Wed, 7 Jun 2017 17:44:33 -0400 Received: from mail-by2nam01on0060.outbound.protection.outlook.com ([104.47.34.60]:51779 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751515AbdFGVoK (ORCPT ); Wed, 7 Jun 2017 17:44:10 -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=Xwh5w/lwpBAvMDmLgGkvawTYonM3g8d5HZkSvgyYrGk=; b=VXQgu8fy/2iI44lHj85b47KdpYiJOvoulBm/YnV7STS6TrC2bMVQZs0n7KcxMT1s6WR9iTeyrTuc2/RLT4Euc5GBLDaw4Su7WOfUwfl4KnLdwuCg5FfkZCy99mKCuyuE5refxLmK3NsWaqTAraqIADEXqKtDQe0SsIIe2oc9uqs= Received: from BY2PR07CA0025.namprd07.prod.outlook.com (10.166.107.20) 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.1143.10; Wed, 7 Jun 2017 21:44:06 +0000 Received: from BN1AFFO11FD028.protection.gbl (2a01:111:f400:7c10::138) by BY2PR07CA0025.outlook.office365.com (2a01:111:e400:7bff::20) 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:06 +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:05 +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 v57LhfmJ023197; 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 v57LhfLP023196; Wed, 7 Jun 2017 14:43:41 -0700 From: Himanshu Madhani To: , CC: , Subject: [PATCH 13/15] qla2xxx: Move target stat counters from vha to qpair. Date: Wed, 7 Jun 2017 14:43:31 -0700 Message-ID: <20170607214333.23110-14-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)(979002)(6009001)(39400400002)(39840400002)(39850400002)(39450400003)(39410400002)(2980300002)(428002)(199003)(189002)(9170700003)(5660300001)(4326008)(50986999)(305945005)(76176999)(50466002)(38730400002)(107886003)(478600001)(72206003)(87636003)(33646002)(54906002)(101416001)(8936002)(189998001)(106466001)(48376002)(80596001)(1076002)(356003)(36756003)(5003940100001)(42186005)(105586002)(2906002)(50226002)(47776003)(81166006)(2950100002)(8676002)(6666003)(86362001)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR0701MB1013; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:ovrnspm; A:1; MX:1; PTR:50-232-66-26-static.hfc.comcastbusiness.net; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1AFFO11FD028; 1:frvR4lwvl9l4wiY+dClDlbKKb4C39KzIrv5TXl7KwGF1v4ICuZb3MtusP8dzSCPCn6y5x8u992onBiJ3fgqHJ+QKdexOAXFuw1evI0ePaNJ1T7WxJ+DVBz7a6Ah7iqHR9CVQ85wI8DneR+0cJRQxUh9ukAGwX4RxPXEOzGipAl1FzlqWyS+jwxXTGbAP2PrwiSw7L1F8cwT+qFXR84wRVgt0qSUz3NJoXI0cKIkuRIDfNmsGrgOTczV73HbjTAaaad0SiCS4xP9aGB5tqc/TYhc7lpxJSFOlu0572xRSyHemainZs5mYgxE+aLArwVK5wPrHFj2qr1hhjOEAeDwF6DRdynMU17SX/vPj58JGge1XbyPbAtTP4hCDGr1vhcjzCiLSwPAnynghNhzpDymg4eL9W+H/T0WUpF+3JrH0ljNCIdQfUEhGPxNQ3GgJWzXhvgbw92poDZaPmYpWigPUATtZeW3TFmoEr9pyeWM0sfPI6FlFW/ceGiOjKV3/HQnr X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CO2PR0701MB1013: X-MS-Office365-Filtering-Correlation-Id: cfd197d3-1313-4e27-03a3-08d4adee51ee X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081); SRVR:CO2PR0701MB1013; X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB1013; 3:P2IeCpemvItqft7TVAvpN6fY+MY3LlkgYNaRYyzr0qo9oRMkU3g5CTbPzTCJWPZK8ai6Kgpot63xRA2veWH0MdYTEgE9AWXXD5BfpJ9eoCQf6nxEcIDjZjOQW/1H3EVFpphR4xCwaywoYyDPhyphDdJP5rDnIkJnJG1MwxVnmXMnqpEDGBELLN9rQtCbHn9ZbDbQuRZOTH65H0UQX8GEnloRLigKtN5k7SovRHhOwIxtoRQ1h6/NyM3OmCLnAboYqbgcO3YejiaRjHeXewXeZDeHXZ20HdS9HKlg/FjvXdyt7P3n21vNYzjbdg4chfV1J7aVUzw3Ws3HWit8PtNosbtj4gAJw8C/oWAyJ2CE8acW6kpO2tjzCbhgP9vVYiljdPqtJBtwFsF0vr2/lZuaVstOkMt66DuSAI5YCAESXYKBtx7pzb2UGDXaRlQLI7OdBPUjEgp43pBzON4pgyVKLA== X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB1013; 25:h+NDqqotyx3ieH6JR26K+1HtpdEcamWb0UdcOfHMN0xJg+ZedBUAPsH5zOeVDxKkouSIdMPzb3Iphuq11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+UG4zvPpC58vI1bZxKZTBcRv9q56sKXXN98tUtvYc+AVdSoyqlHbl55h2CPy4u+HoAtUU/JYqQd7ZA+BoqpypHQgXiw9sW6W2haX9M7pTQUhjj98wtAxArC4LdftGe1DblvReBVkD5L8MgrPdV/Y56tJiB5OhmrY/68y5QGfgbkzZ X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(13018025)(13016025)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(6041248)(20161123564025)(20161123560025)(20161123555025)(20161123562025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CO2PR0701MB1013; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CO2PR0701MB1013; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR0701MB1013; 4:Iny6g4SKI5D/OWsEFMBqIxCAM6vIJy4qFY+x6Lth?= =?us-ascii?Q?6AHPd/r0Jy0H7zFAQAjho7uBuYm/QJJrQbTmBVfrD156aVxKMys7+kufCYSD?= =?us-ascii?Q?yiWk3Vub26xX5aIg/xsC9QnF2zJq0aMbjzirJn+SvY4bAFn6kWNn6A8YinlG?= =?us-ascii?Q?xeGaVhaWHnT78k1yyXwZYuAGf5QP3oNFyFvt9mrqeYgFeFJA26n2Fah6F/N9?= =?us-ascii?Q?b3afl0JSBoivP17EKnle6dSdD/XjY12LUfM53KPHp5epimbD4Ef8G+SYCTFr?= =?us-ascii?Q?muvVrCybwO2FR9+Zdp8hXgeZ9AOIY3tW1lkRBKT0OMwQgTedHtZrngbGZtJG?= =?us-ascii?Q?a4azLtyM1HDhob3g1PI316IIQwm4QebWhqEITX00hpAnan/J2J//GlVeWW21?= =?us-ascii?Q?Y8kGafEHGN/3I7ZE5ZpNiPsQwt+93VU8L9/GZUgZq2cLoxCxSESCbX4ZtGRx?= =?us-ascii?Q?YsNSr1poBZxih5Sy+g1XwodGSuZHqChvb8oTuXVwaJSTz1uWM2RFNDE2sAm4?= =?us-ascii?Q?frjl3SI3YfWhZ9+naX+WRNOvVcLWTODEt9dB89vYa0XGxhyZawVfAJwOxfgd?= =?us-ascii?Q?u+Zn10jMttdn+YZSOh9eCkAUFOSqEbeGkAsK0GEwj3qw+93b41jt60Nka96b?= =?us-ascii?Q?LL8eJ5mh5ei3PFpcoi8ev2IRsbPVnUxyx+n3oOs9zvL+NUmmo7bbZIT2c2Rp?= =?us-ascii?Q?6d0xWIgeDb8nxzrZ0LLulYDS4w9hrzgMSkQl+0eH7lO28G49OAMHhqRfyQ3Y?= =?us-ascii?Q?CKXed3zr+B6tc5oZYAqZijSV5IB/ehmvxn48UM5MXj9ooky0e/L7wDPpwQm+?= =?us-ascii?Q?xZnH23+KIa+AyxhkCSJr8MD5ryE20yNW/I8FI5lmQYKSisswUwy5JSodVBg1?= =?us-ascii?Q?MoDPbFUzOhKltngNUkpfYn80oT8YI4usZ1Nf0kCckqwQkKAQx71d8scwYbBq?= =?us-ascii?Q?/L66tUZtErxLkCcyM4YEPQIArXnJihkRpm2AxfiM9K2y0VN03Kw9DTqzXzrv?= =?us-ascii?Q?3722uaL02+glZI6ZDbn6anUwM0y7TTNBQW3xtDNFxBqwlftEaF281MKR3OUs?= =?us-ascii?Q?FLoJdNYJApLosjdmy0su9xUxLE9MwoA9m20rdiAzXJ/B60XEykCvXkSg0l4N?= =?us-ascii?Q?4sr6EyHyWA1Yq8SmWIsT35xPLv4fuJJ32Q7v02qCFX8IHFcb4EqBrkeDSngo?= =?us-ascii?Q?vmTVDxZO2U57bz0=3D?= X-Forefront-PRVS: 03319F6FEF X-Microsoft-Exchange-Diagnostics: =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pmjA8L+XWDkcevKnBYryPkHhBB0ESoHl+xPOgaBtSf2U6giCO8tw05UdlUir1aP4hCOVLUHa/vlZv3epyblj8FM3hzD6kBbRbj9KUQauB8kK0Ytr2JYHqLq+MY3PkG7DenKdE3bgtNhHMEEozf3imePN76t/jXM2DyaDqQH1rzK7q/gXx0NnvJJqsEbMAc4jCtoyLn9Dytmdz12urVEv8/xqy+/f/zb6xewmU1qEmKdwuMAYmk4NzEDGo/Fx4alzma1wEzoXh+bFCKvlwv3P41OpZj9ui8jXSj46PFhNnF5L5Y3JOCzCuy4mHySMe6XPK5+iJHnRhrj/DPe8irzJgZsSTlv5WyEIh3D4aVDXtkqnT+jr3288SJRXuro3ruGgg9UjTL6OiAIJJg8t014uNAj0QT38i9hMkGnmi/OnCLYb2mC3qu1a9JtTqziK/utSDVUApdz4NIzCIKYC7f/CnMURPoMHPHWYT3W54fwvt1R8sRuc; 24:mqkw78TerT+2eKGHbDwhG9BMUuvUQX8Jv61pYu5mOKCmPbr9TTSdmJwzp/hEGaBwrwAW9N/EoLqN2XMDTb37LGAVeJSIkqTdpabaTXjjWs8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO2PR0701MB1013; 7:T4R0eFsFdYTa+2ftJ4EpCw/5kE0aadZkjDdXQ9eWTYVTTK2KlT1Kt5WPGem9hlV9MH+wJ5CUEmdEXyyLDCFFPEUZg1UgrM9z/mwnBJpdF1OLa5RA2HykoelAesmAalmzabYhMXWamhy9+YNbVwSJN9Rd7W/YkQdFL9eoQpvhpxicY7swwkHhlGRYaeDlgsCV3o/b1akg+lM/1BMRiieezmnGz2Lv64TSa6XelmYJtZ/5Sd7Qeuy+CyMte5uXU0h8iCTAflErr2zdIUfa4cQ4ZRS/IofNbuYsKbrAMAuFsDEz+AeLVSXJIiZWSsn4hRSe4F8rrQsJmqa/mp5xlPkOkg== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jun 2017 21:44:05.0869 (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: 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 Signed-off-by: Quinn Tran Signed-off-by: Himanshu Madhani --- drivers/scsi/qla2xxx/qla_def.h | 27 +++++++++++---------- drivers/scsi/qla2xxx/qla_dfs.c | 48 +++++++++++++++++++++++++++++++------- drivers/scsi/qla2xxx/qla_iocb.c | 2 +- drivers/scsi/qla2xxx/qla_target.c | 13 +++++------ drivers/scsi/qla2xxx/tcm_qla2xxx.c | 8 +++---- 5 files changed, 63 insertions(+), 35 deletions(-) diff --git a/drivers/scsi/qla2xxx/qla_def.h b/drivers/scsi/qla2xxx/qla_def.h index 17b13dd92511..e1af9db3691d 100644 --- a/drivers/scsi/qla2xxx/qla_def.h +++ b/drivers/scsi/qla2xxx/qla_def.h @@ -3183,6 +3183,18 @@ struct qla_tc_param { #define QLA_MAX_VPORTS_QLA24XX 128 #define QLA_MAX_VPORTS_QLA25XX 256 +struct qla_tgt_counters { + uint64_t qla_core_sbt_cmd; + uint64_t core_qla_que_buf; + uint64_t qla_core_ret_ctio; + uint64_t core_qla_snd_status; + uint64_t qla_core_ret_sta_ctio; + uint64_t core_qla_free_cmd; + uint64_t num_q_full_sent; + uint64_t num_alloc_iocb_failed; + uint64_t num_term_xchg_sent; +}; + struct qla_qpair; /* Response queue data structure */ @@ -3285,6 +3297,7 @@ struct qla_qpair { struct list_head qp_list_elem; /* vha->qp_list */ struct list_head hints_list; uint16_t cpuid; + struct qla_tgt_counters tgt_counters; }; /* Place holder for FW buffer parameters */ @@ -3964,18 +3977,6 @@ struct qla_hw_data { int allow_cna_fw_dump; }; -struct qla_tgt_counters { - uint64_t qla_core_sbt_cmd; - uint64_t core_qla_que_buf; - uint64_t qla_core_ret_ctio; - uint64_t core_qla_snd_status; - uint64_t qla_core_ret_sta_ctio; - uint64_t core_qla_free_cmd; - uint64_t num_q_full_sent; - uint64_t num_alloc_iocb_failed; - uint64_t num_term_xchg_sent; -}; - /* * Qlogic scsi host structure */ @@ -4140,10 +4141,8 @@ typedef struct scsi_qla_host { struct fc_host_statistics fc_host_stat; struct qla_statistics qla_stats; struct bidi_statistics bidi_stats; - atomic_t vref_count; struct qla8044_reset_template reset_tmplt; - struct qla_tgt_counters tgt_counters; uint16_t bbcr; struct name_list_extended gnl; /* Count of active session/fcport */ diff --git a/drivers/scsi/qla2xxx/qla_dfs.c b/drivers/scsi/qla2xxx/qla_dfs.c index 63d7374dce77..d231e7156134 100644 --- a/drivers/scsi/qla2xxx/qla_dfs.c +++ b/drivers/scsi/qla2xxx/qla_dfs.c @@ -164,26 +164,56 @@ static int qla_dfs_tgt_counters_show(struct seq_file *s, void *unused) { struct scsi_qla_host *vha = s->private; + struct qla_qpair *qpair = vha->hw->base_qpair; + uint64_t qla_core_sbt_cmd, core_qla_que_buf, qla_core_ret_ctio, + core_qla_snd_status, qla_core_ret_sta_ctio, core_qla_free_cmd, + num_q_full_sent, num_alloc_iocb_failed, num_term_xchg_sent; + u16 i; + + qla_core_sbt_cmd = qpair->tgt_counters.qla_core_sbt_cmd; + core_qla_que_buf = qpair->tgt_counters.core_qla_que_buf; + qla_core_ret_ctio = qpair->tgt_counters.qla_core_ret_ctio; + core_qla_snd_status = qpair->tgt_counters.core_qla_snd_status; + qla_core_ret_sta_ctio = qpair->tgt_counters.qla_core_ret_sta_ctio; + core_qla_free_cmd = qpair->tgt_counters.core_qla_free_cmd; + num_q_full_sent = qpair->tgt_counters.num_q_full_sent; + num_alloc_iocb_failed = qpair->tgt_counters.num_alloc_iocb_failed; + num_term_xchg_sent = qpair->tgt_counters.num_term_xchg_sent; + + for (i = 0; i < vha->hw->max_qpairs; i++) { + qpair = vha->hw->queue_pair_map[i]; + qla_core_sbt_cmd += qpair->tgt_counters.qla_core_sbt_cmd; + core_qla_que_buf += qpair->tgt_counters.core_qla_que_buf; + qla_core_ret_ctio += qpair->tgt_counters.qla_core_ret_ctio; + core_qla_snd_status += qpair->tgt_counters.core_qla_snd_status; + qla_core_ret_sta_ctio += + qpair->tgt_counters.qla_core_ret_sta_ctio; + core_qla_free_cmd += qpair->tgt_counters.core_qla_free_cmd; + num_q_full_sent += qpair->tgt_counters.num_q_full_sent; + num_alloc_iocb_failed += + qpair->tgt_counters.num_alloc_iocb_failed; + num_term_xchg_sent += qpair->tgt_counters.num_term_xchg_sent; + } seq_puts(s, "Target Counters\n"); seq_printf(s, "qla_core_sbt_cmd = %lld\n", - vha->tgt_counters.qla_core_sbt_cmd); + qla_core_sbt_cmd); seq_printf(s, "qla_core_ret_sta_ctio = %lld\n", - vha->tgt_counters.qla_core_ret_sta_ctio); + qla_core_ret_sta_ctio); seq_printf(s, "qla_core_ret_ctio = %lld\n", - vha->tgt_counters.qla_core_ret_ctio); + qla_core_ret_ctio); seq_printf(s, "core_qla_que_buf = %lld\n", - vha->tgt_counters.core_qla_que_buf); + core_qla_que_buf); seq_printf(s, "core_qla_snd_status = %lld\n", - vha->tgt_counters.core_qla_snd_status); + core_qla_snd_status); seq_printf(s, "core_qla_free_cmd = %lld\n", - vha->tgt_counters.core_qla_free_cmd); + core_qla_free_cmd); seq_printf(s, "num alloc iocb failed = %lld\n", - vha->tgt_counters.num_alloc_iocb_failed); + num_alloc_iocb_failed); seq_printf(s, "num term exchange sent = %lld\n", - vha->tgt_counters.num_term_xchg_sent); + num_term_xchg_sent); seq_printf(s, "num Q full sent = %lld\n", - vha->tgt_counters.num_q_full_sent); + num_q_full_sent); /* DIF stats */ seq_printf(s, "DIF Inp Bytes = %lld\n", diff --git a/drivers/scsi/qla2xxx/qla_iocb.c b/drivers/scsi/qla2xxx/qla_iocb.c index 6c710313adce..ac49febbac76 100644 --- a/drivers/scsi/qla2xxx/qla_iocb.c +++ b/drivers/scsi/qla2xxx/qla_iocb.c @@ -2189,7 +2189,7 @@ __qla2x00_alloc_iocbs(struct qla_qpair *qpair, srb_t *sp) } queuing_error: - vha->tgt_counters.num_alloc_iocb_failed++; + qpair->tgt_counters.num_alloc_iocb_failed++; return pkt; } diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index 48d82c67e223..8f75d27daae2 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -3078,9 +3078,9 @@ int qlt_xmit_response(struct qla_tgt_cmd *cmd, int xmit_type, spin_lock_irqsave(qpair->qp_lock_ptr, flags); if (xmit_type == QLA_TGT_XMIT_STATUS) - vha->tgt_counters.core_qla_snd_status++; + qpair->tgt_counters.core_qla_snd_status++; else - vha->tgt_counters.core_qla_que_buf++; + qpair->tgt_counters.core_qla_que_buf++; if (!qpair->fw_started || cmd->reset_count != qpair->chip_reset) { /* @@ -3500,7 +3500,7 @@ static int __qlt_send_term_exchange(struct qla_qpair *qpair, ret = 1; } - vha->tgt_counters.num_term_xchg_sent++; + qpair->tgt_counters.num_term_xchg_sent++; pkt->entry_count = 1; pkt->handle = QLA_TGT_SKIP_HANDLE | CTIO_COMPLETION_HANDLE_MARK; @@ -5103,7 +5103,7 @@ static int __qlt_send_busy(struct qla_qpair *qpair, return -ENOMEM; } - vha->tgt_counters.num_q_full_sent++; + qpair->tgt_counters.num_q_full_sent++; pkt->entry_count = 1; pkt->handle = QLA_TGT_SKIP_HANDLE | CTIO_COMPLETION_HANDLE_MARK; @@ -5466,13 +5466,12 @@ static void qlt_24xx_atio_pkt(struct scsi_qla_host *vha, static void qlt_response_pkt(struct scsi_qla_host *vha, struct rsp_que *rsp, response_t *pkt) { - struct qla_hw_data *ha = vha->hw; struct qla_tgt *tgt = vha->vha_tgt.qla_tgt; if (unlikely(tgt == NULL)) { ql_dbg(ql_dbg_tgt, vha, 0xe05d, - "qla_target(%d): Response pkt %x received, but no " - "tgt (ha %p)\n", vha->vp_idx, pkt->entry_type, ha); + "qla_target(%d): Response pkt %x received, but no tgt (ha %p)\n", + vha->vp_idx, pkt->entry_type, vha->hw); return; } diff --git a/drivers/scsi/qla2xxx/tcm_qla2xxx.c b/drivers/scsi/qla2xxx/tcm_qla2xxx.c index 238abad4b481..5357c2031a1c 100644 --- a/drivers/scsi/qla2xxx/tcm_qla2xxx.c +++ b/drivers/scsi/qla2xxx/tcm_qla2xxx.c @@ -284,7 +284,7 @@ static void tcm_qla2xxx_complete_free(struct work_struct *work) WARN_ON(cmd->trc_flags & TRC_CMD_FREE); - cmd->vha->tgt_counters.qla_core_ret_sta_ctio++; + cmd->qpair->tgt_counters.qla_core_ret_sta_ctio++; cmd->trc_flags |= TRC_CMD_FREE; transport_generic_free_cmd(&cmd->se_cmd, 0); } @@ -296,7 +296,7 @@ static void tcm_qla2xxx_complete_free(struct work_struct *work) */ static void tcm_qla2xxx_free_cmd(struct qla_tgt_cmd *cmd) { - cmd->vha->tgt_counters.core_qla_free_cmd++; + cmd->qpair->tgt_counters.core_qla_free_cmd++; cmd->cmd_in_wq = 1; WARN_ON(cmd->trc_flags & TRC_CMD_DONE); @@ -492,7 +492,7 @@ static int tcm_qla2xxx_handle_cmd(scsi_qla_host_t *vha, struct qla_tgt_cmd *cmd, } #endif - cmd->vha->tgt_counters.qla_core_sbt_cmd++; + cmd->qpair->tgt_counters.qla_core_sbt_cmd++; return target_submit_cmd(se_cmd, se_sess, cdb, &cmd->sense_buffer[0], cmd->unpacked_lun, data_length, fcp_task_attr, data_dir, flags); @@ -520,7 +520,7 @@ static void tcm_qla2xxx_handle_data_work(struct work_struct *work) } spin_unlock_irqrestore(&cmd->cmd_lock, flags); - cmd->vha->tgt_counters.qla_core_ret_ctio++; + cmd->qpair->tgt_counters.qla_core_ret_ctio++; if (!cmd->write_data_transferred) { /* * Check if se_cmd has already been aborted via LUN_RESET, and