Message ID | 20180830163550.27288-14-himanshu.madhani@cavium.com (mailing list archive) |
---|---|
State | Superseded |
Headers | show
Return-Path: <linux-scsi-owner@kernel.org> 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 8E27C175A for <patchwork-linux-scsi@patchwork.kernel.org>; Thu, 30 Aug 2018 16:37:05 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 7CB102BFB5 for <patchwork-linux-scsi@patchwork.kernel.org>; Thu, 30 Aug 2018 16:37:05 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 6FA9C2C12C; Thu, 30 Aug 2018 16:37:05 +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,DKIM_SIGNED, DKIM_VALID,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 035372BFB5 for <patchwork-linux-scsi@patchwork.kernel.org>; Thu, 30 Aug 2018 16:37:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727088AbeH3UkC (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Thu, 30 Aug 2018 16:40:02 -0400 Received: from mail-sn1nam02on0046.outbound.protection.outlook.com ([104.47.36.46]:28928 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727705AbeH3UkB (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Thu, 30 Aug 2018 16:40:01 -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:X-MS-Exchange-SenderADCheck; bh=U2fJ3yULDJohEWWnthJpxbTiVMkyN9o/t+Fv9hg8+pg=; b=bXuKXSnD0siNa8eyAHeF36sYhCSQsshQa6nETMmo/ruDgUmsYPXKDz1LwKW899g21DrD1Ehl0Zm0JjQrHhWEO5mJNt9izTv/hwf2FreJAmbLhgKfGIrsFNVsw3Bs/XLYQMyd3hQrV3QVXv0fNWgA6/KZD6geGvpPObQSf+R8pdg= Received: from CO2PR07CA0056.namprd07.prod.outlook.com (2603:10b6:100::24) by BN7PR07MB4660.namprd07.prod.outlook.com (2603:10b6:406:f1::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17; Thu, 30 Aug 2018 16:36:09 +0000 Received: from CO1NAM05FT009.eop-nam05.prod.protection.outlook.com (2a01:111:f400:7e50::203) by CO2PR07CA0056.outlook.office365.com (2603:10b6:100::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.1101.16 via Frontend Transport; Thu, 30 Aug 2018 16:36:09 +0000 Received-SPF: Pass (protection.outlook.com: domain of cavium.com designates 50.232.66.26 as permitted sender) receiver=protection.outlook.com; client-ip=50.232.66.26; helo=CAEXCH02.caveonetworks.com; Received: from CAEXCH02.caveonetworks.com (50.232.66.26) by CO1NAM05FT009.mail.protection.outlook.com (10.152.96.116) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.1122.2 via Frontend Transport; Thu, 30 Aug 2018 16:36:09 +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; Thu, 30 Aug 2018 09:35:52 -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 w7UGZqM5027375; Thu, 30 Aug 2018 09:35:52 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id w7UGZqb0027374; Thu, 30 Aug 2018 09:35:52 -0700 From: Himanshu Madhani <himanshu.madhani@cavium.com> To: <James.Bottomley@HansenPartnership.com>, <martin.petersen@oracle.com> CC: <himanshu.madhani@cavium.com>, <linux-scsi@vger.kernel.org> Subject: [PATCH 13/14] qla2xxx: Terminate Plogi/PRLI if WWN is 0 Date: Thu, 30 Aug 2018 09:35:49 -0700 Message-ID: <20180830163550.27288-14-himanshu.madhani@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20180830163550.27288-1-himanshu.madhani@cavium.com> References: <20180830163550.27288-1-himanshu.madhani@cavium.com> MIME-Version: 1.0 Content-Type: text/plain X-EOPAttributedMessage: 0 X-Forefront-Antispam-Report: CIP:50.232.66.26;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(39850400004)(396003)(376002)(346002)(136003)(2980300002)(438002)(199004)(189003)(356003)(50226002)(2906002)(5660300001)(72206003)(87636003)(86362001)(8676002)(81166006)(48376002)(186003)(26005)(81156014)(478600001)(50466002)(51416003)(76176011)(42186006)(106002)(14444005)(6346003)(44832011)(446003)(16586007)(80596001)(110136005)(2616005)(486006)(476003)(47776003)(6666003)(69596002)(336012)(305945005)(106466001)(126002)(54906003)(1076002)(36756003)(4326008)(316002)(11346002)(8936002);DIR:OUT;SFP:1101;SCL:1;SRVR:BN7PR07MB4660;H:CAEXCH02.caveonetworks.com;FPR:;SPF:Pass;LANG:en;PTR:50-232-66-26-static.hfc.comcastbusiness.net;A:1;MX:1; X-Microsoft-Exchange-Diagnostics: 1;CO1NAM05FT009;1:/C9o4KV3YRRKBTSlQhTvpjHeVB6oQNWWMu/AAaf5ljhgI0J3A2+pd09nHpZ1z+uGs2yMRWVwL5gB+6fUvR9hsz/5OTRGdAhV+j9fIXE2RhT/lpPBjHHHOqjROfYz8RGX X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 59516c41-b919-4800-d2c1-08d60e96b10a X-Microsoft-Antispam: BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989137)(5600074)(711020)(4608076)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060);SRVR:BN7PR07MB4660; X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4660;3:/kG6eqa7bVmURKU8KphWPt6OpaiCl6FIGaHm3sz60isHGA7BUlUMiSb23JdQDnKWGm/TlXeNpUkiPvB62dpCmnNPWsYV6zvOT9Dn/p/dH9/4RZUmIpj0tUyyyu9rbt7tY2Qb4xVJU5lqYeGNRS4d9UwLtoNN8oH9gXzGYdkuTfXp66Vshh0ib5JbmijW4OPIBq1phE2KglitmGuwVDp164X8O/8xjcKKPCoF+hkLd9X1bjeNj0Dy6L59HFI6jpF0V5YV6313yZXC8bECBue6gjySvc91R3LlNuoKEb1lOvcQu8gk19zU2LKwvlRO95oZqQ2SzAF1R1C0k4/0Zs7GdUGdIjbvRHxn/9WU52HYiWg=;25:pIucCEhEUIFSdH9mlZt5VPJq5dVjfPcgBlpuqDb1tcm7mK2/7TN9IXxzsa8z4l5I4vzma2G61YdzPnpw40kZSVhBHs8GKYBrV/3l+ejNQs8J/fZZgzJxUuvujJbUTlskoN9lMdMZD4LBJTDfN4TRE8sPGcatABHrYslLXK0o79uucd5s4WQI8mBinvtfg60p1XMD4Bo0GXgWcPmulLulsx2GMbDkFRAZS9hiywJJ1YhNahQCoRYXLeOb784s/BsXpqQtvR0QS2Rlcemxa2e5O22focnxaeVb4QnYwV6gR9qx3gzc+P7nmWl7Igd6AF0RxR6pYxVvNaSPc5ewmSkiaA== X-MS-TrafficTypeDiagnostic: BN7PR07MB4660: X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4660;31:xxDVsWuvWPoWyONyhjWxqqyZMpF10TtmtZVfg6MJJNIcaPLOCR5g8fJlEFOr/whSd0suttbepR21YI7gz9t/kAjvV0c0kuBzC+fPdxb0jGJtbL5txx4+/0+jZYPYrWbRNhXzGHkUg1oGWfT/7+dmVvvpvtXWD2oNS1tP3t4GEpZSna5o71QgJIso+OpvJcokrmWYRqcQdxx4lPbXu0oAt/6VaicXaoEI1u0PzkNangI=;20:vHkkuJEbTPSDJFylYboBDBGRrw3g0y+MyyOWgZzYQ4c1AEaV0L3J2gd44fQzs3e0533VxHbIO1R8RGsNGhVmLUj+Ov5AoCPVZkOWwXPUUnuH+/kNvBFpWeQ7udW8i2PpKzf4eoOZiv2nxH5+4ZmYRFrp+GUHPpLJehI1yMQtC5AoBk2HJ35F//djFccaRlSm5S5jv1JLYshZy9EcAkipLDNHG7bmMq1JfkC39Hij6h5JHLyRKxK84BWQvVnN8ZNOjH/cn9CpHM6r68qyisO1qi5pRDjG96PCsPQBuR9dJNxal/KMpEggIYvUnZtNL1iNFU1uN2v2PyHo3EyouVYbTZguzpj8f1LNqLKSqUFXDIBc2lF1bk3QvQ+0xHTAs32cgfxjxuw43ulAzU3v+PVpgmAlm84IgCPtf3vZE6p9jPVXORdVOod6vQn8SN24n+vSqK5P55LgRwEvatZHj9YOpZJDPWrX19hst1fZmO6aMCdIJflxLId7T6mHsHeLmcOh X-Microsoft-Antispam-PRVS: <BN7PR07MB4660F797A173E641F12E60F4F5080@BN7PR07MB4660.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(10201501046)(3002001)(3231311)(944501410)(52105095)(93006095)(93004095)(149027)(150027)(6041310)(20161123558120)(20161123562045)(20161123564045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016);SRVR:BN7PR07MB4660;BCL:0;PCL:0;RULEID:;SRVR:BN7PR07MB4660; X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4660;4:nFQNt4IJexlW0hiByqO3K37h9kbz7ubBmlUDI0BpWjj3N/X94ygMzSfScVknigeUB3oaFnJ1fsSdEVmScW8/bZC2U5J/DNDQZrZSwk1kJwxBbD7oJNkLyKIhb+cgi19UjHcIgGBP2g4cj01xnTMMCz0l759CegT7Fr1Bk8lhzFu2abtvwoEA5XtaSTFz7JH1bu507R2MI5whQq+13GhMGNfulsgtZ8PzGrPoiIhADW2PYLEBmQJveT56/zwo8i3YIRLqOokr2m+mCq5ijo74Zg== X-Forefront-PRVS: 07807C55DC X-Microsoft-Exchange-Diagnostics: 1;BN7PR07MB4660;23:HWGYPOU8Nmy5RLQqBeMYkLAtfi9Z/Wi1c5022/pQCsonjri5VHpnc2nSZpxMtjTzrnzpM8N3gZn2o8iESzNHvFjg5Y82NCWEmKoNyCAWkhfym032aMOjPpP4uiCsEAlZgk4dsFz3+EM+ITPGenFfaXbQhYnuLjf/EFr1HJZZPCD23QVh+lVHD/GQl+nTGKWQ/d2FLYntBpqIkubh4CBz50A5jIySbrBIh4MqI/rxgPZ+V658cZYFTOB58gXjwIe5VKjOTBO1U4LGxh76d5CuVq9hcIv+QrEbbpXs51OrNQU1cktxK4jrY6yO4hM/YBnx2fRxs14VQmUPe/sCSfjRZ+QJEthQhap0hxD3/2VCzL9885fYJJyzW4o7s5hUy85/KdvUYzp/NTOVDa6kVjCjjh3u6M9JwlxqqlNc4ktLIsxbnbWVKwMfBAfpiP8zyd/1u+0HLWwY5r442JZimvX7k/HFMIQbrqrZuplofLnEf3nCSgbMD2YJrUCH0lgOjga1TLhKbee5RCFVwDnH/00MQI5iNizWXgpwu1gzNFRgPvvY3HEFLU+kkkDHpeLl1+OHmdkYk/xY1PQb7j2iWfFeH92cg10GXNEVWno9ja74KyzRdun38Ye+dhBquPXVckPyJGRPhqS15hyNL5Js4gHQwLdoBLAcHrh5ACdxEcL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cyFoMSc5dfMD2Pu3oi+si7ia66X+f6FjEGsw8wM8pmzhJArZ/Md5tqV91sOQGn6UH7eQnaeQOQiM697wX7b8W9mTIHgcxv6syuLY5YZs0vhV2nY8bpnCJ4KoDu1Qt13cMVdji7AdwQ9FWLZwOuxE96H2lMpL33Qs6ycq19hof+WFX2o4LsJWRvpXmNmZ47bKvipNjOAXqqWTHgnbUNruBxRPnFJ6cLPeb7NAdMZ1TABYcdsat9mJGw+nQsje9+l0AgIR4xXeYN7jW+4J46z2neopIcPfQxeY7DvT7apWfZw==;5:G55XCOyK4pTKXWLVaLTXhrfWSZ8BuBqWI5SbugQ8CkUAZLibJiUg+XH/AwI197CCDjP49IHz5JEEEYUFZhFJLRV5TWswjEkehnr1woO9xyvtvDAynRxlo9e4FlvMzbpzDi+WeQBxeeMWzv+n7bI7fcplO29GrrwOeoodb5a9kVY=;7:ZLJ0jU1Vbf2XBLVRjZdOsx1ho3gvMkqlI4Ed1X++DYKYgvENNkaPFA0NILh0weWNW6lKBMdtlripeZVnf7bRJ4jX6x55KpvYzWaCE1onk6WHPMFzXvDtyFAAU0+tIUpsRwZTYk/auKBX6vuycrjth8M1+p6MHeW5Hcvf7T8ZGVpbdORHaQ+4ABbHydxjehdi2x9zZdrAUw+TPWZAOaOHLEqhc0F88KLSXuQVbQeZ8bHCXpG70oQNWGF0dfiIiKFr SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 30 Aug 2018 16:36:09.5163 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 59516c41-b919-4800-d2c1-08d60e96b10a 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: BN7PR07MB4660 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: <linux-scsi.vger.kernel.org> X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP |
Series |
qla2xxx: Driver updates for scsi-misc
|
expand
|
diff --git a/drivers/scsi/qla2xxx/qla_target.c b/drivers/scsi/qla2xxx/qla_target.c index 34fadd320f55..396c8a6d502c 100644 --- a/drivers/scsi/qla2xxx/qla_target.c +++ b/drivers/scsi/qla2xxx/qla_target.c @@ -4723,6 +4723,12 @@ static int qlt_handle_login(struct scsi_qla_host *vha, sess = qlt_find_sess_invalidate_other(vha, wwn, port_id, loop_id, &conflict_sess); spin_unlock_irqrestore(&vha->hw->tgt.sess_lock, flags); + } else { + ql_dbg(ql_dbg_disc, vha, 0xffff, + "%s %d Term INOT due to WWN=0 lid=%d, NportID %06X ", + __func__, __LINE__, loop_id, port_id.b24); + qlt_send_term_imm_notif(vha, iocb, 1); + goto out; } if (IS_SW_RESV_ADDR(port_id)) {