From patchwork Wed May 31 13:33:51 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Dupuis, Chad" X-Patchwork-Id: 9757055 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 4C59060390 for ; Wed, 31 May 2017 13:34:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4626A20952 for ; Wed, 31 May 2017 13:34:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 38E2B281F9; Wed, 31 May 2017 13:34:41 +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 84F6A20952 for ; Wed, 31 May 2017 13:34:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751157AbdEaNej (ORCPT ); Wed, 31 May 2017 09:34:39 -0400 Received: from mail-by2nam03on0058.outbound.protection.outlook.com ([104.47.42.58]:12096 "EHLO NAM03-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751164AbdEaNef (ORCPT ); Wed, 31 May 2017 09:34:35 -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=WE7BvnfvAMy31UVozNQmIc4CTLJaggILnXVkQkJuetE=; b=CiOmzfadXEmriA4NdVP6h0uUJxp1sxmmg4h69+G1nE3SpukXqXmx4Qww30SAsmxq8VwL7nNCKWjLPo14c6LmO4tvBpd3tkzwYzOSnplrGNb+9scQeVawWQbiwqCwRF2kLEgvW4QAkWPwxQ+lviEtQxhcYgPqXwP6RDdeFtbHsIM= Received: from DM5PR07CA0043.namprd07.prod.outlook.com (10.168.109.29) by SN2PR0701MB1021.namprd07.prod.outlook.com (10.160.57.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1124.9; Wed, 31 May 2017 13:34:23 +0000 Received: from BL2FFO11OLC005.protection.gbl (2a01:111:f400:7c09::199) by DM5PR07CA0043.outlook.office365.com (2603:10b6:3:16::29) 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; Wed, 31 May 2017 13:34:23 +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 BL2FFO11OLC005.mail.protection.outlook.com (10.173.160.91) 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, 31 May 2017 13:34:21 +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, 31 May 2017 06:34:03 -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 v4VDY3bN016680; Wed, 31 May 2017 06:34:03 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v4VDY3xb016679; Wed, 31 May 2017 06:34:03 -0700 From: "Dupuis, Chad" To: CC: , , Subject: [PATCH V2 04/15] qedf: Look at all descriptors when processing a clear virtual link. Date: Wed, 31 May 2017 06:33:51 -0700 Message-ID: <20170531133402.16629-5-chad.dupuis@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170531133402.16629-1-chad.dupuis@cavium.com> References: <20170531133402.16629-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)(39400400002)(39850400002)(39410400002)(39450400003)(39840400002)(2980300002)(428002)(189002)(199003)(9170700003)(47776003)(4326008)(2351001)(101416001)(86362001)(5003940100001)(105586002)(33646002)(478600001)(54906002)(110136004)(38730400002)(80596001)(72206003)(107886003)(42186005)(87636003)(106466001)(50466002)(48376002)(1076002)(8676002)(189998001)(50226002)(356003)(81166006)(305945005)(2906002)(2950100002)(36756003)(6916009)(5660300001)(50986999)(76176999)(6666003)(8936002); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR0701MB1021; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11OLC005; 1:Rfyhe9Xdvq6JHlTDE+ggGktLeB29qaccuHOmTfoCEA6WBp2lUSJQHADtlAQilaaxi5EiA3MaD797xIiKWPEj9uKWKYle77fMsyuG87uXJ1U5IhMSg0tescFMBITYTMdUgdSppBj0pBQ/FnF872q2D5AP8BuekpNdMX4YsgCKJvxMfsOqxaXKXHPERi+lYztBhxmpU2MFEzRUQNxQW4Q3slpPaOwN8ZUOPZUIGJakirzXaH19sCkavhzc/BxHr18dDVTXpXd3UgWcsuq3PnJAQb9nwakqKYCgJuklYReevdKZFg7pG3sXmwhTu6g2OeRflTJuuMtuC/8/R4ykR1FTXfXjCXtHg9mCJKIurlm4wBjUHabP7Wkl8yTXeSvPI2/4evYuULf2MMvwHQd6dorrtzVcYvDy2GLOwq6swpI9vzgBO/JOI03+hc3ALsA3UagPsydQc8gY4lyBbl9jBKYkcA== X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SN2PR0701MB1021: X-MS-Office365-Filtering-Correlation-Id: 045a1044-a819-4874-e0ce-08d4a829bf8f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254075)(201703131423075)(201703031133081)(201702281549075); SRVR:SN2PR0701MB1021; X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1021; 3:cg2/TfFWqVC6uw/Dzv+vn6j88llrA6cTW3bIzl2pG5+Nzcryax89GiCrJ11l+NSt777TgDn0+IY2y4qXYyssKYOBLGNX3Zo+6o5NjS7WDKzdE2AoltC5CI3tGBzrlSPE3Qe1uPNPqcm0xj4slF/XIqPN3O42BVTXb9Xs8quARjbGy1GtBZWpa7FDY4mQhvDIRVTDG8T+qn9TqaDRP5tOPjHa9uKDFFpourEXWG+/UA8fu21htQ2xIbNFzs1AdX+a1i7H0BSt2L4Xp3nKJ0NBB8RkZRWbv2JFwXvBvhUbzC7DF9cMZp5q7VxlsG+Bqa1pRQ102GoUoqWRdq291NfqcYCO11czZAfeZdMH3tH2VBEBPynfJtwD9Dse+fOrD8TJV9a41GIFhEvc/x+GXdrVrbR5YMyIihqeOaW97NHG03KzDq9DfeMNrxYKsNO/RqruF3ZnMuI51Kie2pD9gu+ll97rj65QZqxU+Z8gDjAK+gis6Orb/m+HMRXTSvCfcMJn X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1021; 25:w01KNWGlS5gwRXCDcMY0wNXOGkgmOhDp58TCJ9KAUPrPlw2X5ucwqj3XQYMT1vGOBYc6ig616NC5FZPqxSeR/HJ80j3DGA9FfuILi1pBTSnpWBPET295tu5aJwoHbCpmi3G4w6KYKCC1/mI0AktSmvJsqeL6uSVXw+j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93muyVlBRGk+AxQVYP/kVI6kJlpcOzJyAdAkQahwatN/iEH2oRBl X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700073)(100105000095)(100000701073)(100105300095)(100000702073)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(13018025)(13016025)(93006095)(93001095)(10201501046)(100000703073)(100105400095)(3002001)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123555025)(20161123562025)(20161123564025)(20161123558100)(6072148)(100000704073)(100105200095)(100000705073)(100105500095); SRVR:SN2PR0701MB1021; BCL:0; PCL:0; RULEID:(100000800073)(100110000095)(100000801073)(100110300095)(100000802073)(100110100095)(100000803073)(100110400095)(100000804073)(100110200095)(100000805073)(100110500095); SRVR:SN2PR0701MB1021; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR0701MB1021; 4:GiL90XnJrfJGq1A8bcXGCpgH2WofLDZj2zdG1+wz?= =?us-ascii?Q?1tPfubWgZeCx8+acQEzra1bvGCy7EO5c8d9+sLNR2Ng8CpGU3Bfq8TcMcEwi?= =?us-ascii?Q?q5rbaAa829tdiMa1aIQLbrDtUWDGAdlcyjPTWjDD3SdoQzXWCIEkjSXEfAeT?= =?us-ascii?Q?Fbhn+LmB63guM5004JmPDUqGZE3Wau5rSxffjmlR5XyU1sWwew0+7/jPO1JK?= =?us-ascii?Q?sKVzraz5bz/7ba1YRqJJU94H967GSr0fSwYQwC/6vDMwMYwZ6KeHngPVFvei?= =?us-ascii?Q?HkyBRsSyC95LQ3BRMoKmAWZizEpj3X0i2W5rdoo1g0AjiZFvA5zaRhnF1hVG?= =?us-ascii?Q?ktTAwRYpuEKsUT8K5VZva1psVgm2LXDGkTBDkqQPTvI5ZB9bxW6+pAhmRYjQ?= =?us-ascii?Q?NRvzqc5EwiaBfe/jKvfg2lDOzMzNc+GkWfls/txAcdPEDvxa4mNxw0hMCXSB?= =?us-ascii?Q?QncDpQEE8F2aAnFbmwgoueXawGFWe1Gi2k6whqIXh8fLwuWJHb7Z17kpFMRX?= =?us-ascii?Q?l4HiwZrWu3WEfQHJNPxbF+DDlAHBpY6pCOs5Q3ktu9CF0zwTGCaQ8NEjVlsH?= =?us-ascii?Q?jdI42r686usAEq1kgu87NZmmvMKtDUO0MwOTldFMMzPhEGbEyQZRfqflX/8m?= =?us-ascii?Q?fa0YVx5X9TZ4HyWpgjR7aMzGvQ8kaRu5c9OUoSs/XYvK44iuBuXRPou9aa7h?= =?us-ascii?Q?Zx3e4q1AAMss21dhyTcISW7zJSLz8oPxKt+mrft/aHilNSY6iDVGh0NjLKM8?= =?us-ascii?Q?Emn/I0x/XL09ch0gNhH/o1Bk6TXSNyRr/dU7bhBtw0mnYJIPBHenv8UEs/w+?= =?us-ascii?Q?FuixHTumpnFDJgcxjBrBac935Cfv1MdubtfhNxfjIvBZ4keiO/QDG4a6yMuZ?= =?us-ascii?Q?JB4QGXqHQwxYmS2mLRD668yBn8rm4WnAQ/9EH4X91U9bVHgENehlAufoqZSe?= =?us-ascii?Q?ZUV1V8nrCkoSVSsz+F5WikawXCO8/DjO9sM7QO63KtR9pCJ8QJo+Dsoy6xsa?= =?us-ascii?Q?3j5HDm8B0MHTYSdKmmIx/vFIOxQ2UdgHdsVXV6yPjkiMrS9rnW43FDImWVeP?= =?us-ascii?Q?wcZcW6JLTPUJHr6mMPNVApTRt1smywr5UtcGul9y8BOXnJr4Yu6GEE2NxtHK?= =?us-ascii?Q?i/E+CvANNbkpwAsSH7d6+wVpi6J7keddSTc8vVMNVPV37cG7E4mzM3J6k5U5?= =?us-ascii?Q?s8cOdnVE0FLm0dc=3D?= X-Forefront-PRVS: 0324C2C0E2 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR0701MB1021; 23:3e2Mq1K/A4T+KenXq+X12o5FXs+WXZFxb8PzEC3?= =?us-ascii?Q?CJKzD+lARvjpoYnd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hNp8r6hcnUL1TLQeAvfBw7Fmfiy4xPLxeSICYwPYOsdzqIIqYCeB0JjykTy8KZVnj7yyeH+TUm6PfBK2PgZu2W59jh3sdLSyerLMDY5AkHjXa/nkqpFLK8sPbE4EnfaQF9mbl6FQDr/5zqZP+1UnYpdWSyiWpg+DLsMNTSWqWnBkIjAgbI3HUq+V/et+fk4wWUIOqAFMnLwgOBLtlmBSvA75X0ki3RkcHXi1IWcPDJJG1NufPbONF6UNmxUoIkQNSH8mUDWYV4NAfE9grdYX87oUjbBx5z93yha3i/88/+AMrhsIBQm4DvlKvTniKOvPcvwTftFAHbGrBpfeaQWC+BAc4ZAxlHHY889/xZDf3eFIfcZ3IfsP; 24:Q9k9WCYPjxGFtuphtlqjgN8LefYSNtxdO226fgWyk0lxfAqajXrPl/AwMxxnarpP3Ty+aIHqMQzw0WqiqT4BuJJ+lGQ6mFIXwQGnBtUP5PI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1021; 7:ggFvwRDerKKTqaTYgGzKx6mLshpdycxmpZm8drqEVuJQLWcvd+QwpZVxSH+4hlNZnoQulosKnvG5PuJPsHibIavweyQ0XEE0bz5DkOIZeWCmIi/135HmNN+gZsrAPZwtWDIaKPN9vLfm3AOZSIZUK0iinf+znrRPDBJTMjzkXZrHD4ie0IenNBISp0pfr/raKf+nnK4Jg17UruTpAurvvYvkHnzDGiGAuoynxWjTiQPm2jSTgtPemwK+EPYAYtUnKMPQraB/SV7AiP8gY1o588WJQrz+DPYyo2H1Zf+lmSWJjT1asL5vdEmtgNtQgTo8U3rKDfpbCs8Rtg6LEnFHGg== X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 31 May 2017 13:34:21.9597 (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: SN2PR0701MB1021 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 If there are multiple descriptors for a particular type in a clear virtual link we receive, we will not process it correctly but rather take the last value. This can cause us not to not flap the virtual link as the value from the descriptors that we compare against the our stored FCF or fc_lport values may not match. Change this to do a comparison when processing the each descriptor instead of at the end and then set a bool if we need to do the reset. Signed-off-by: Chad Dupuis --- drivers/scsi/qedf/qedf_fip.c | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/drivers/scsi/qedf/qedf_fip.c b/drivers/scsi/qedf/qedf_fip.c index 2dfb817..64b04f2 100644 --- a/drivers/scsi/qedf/qedf_fip.c +++ b/drivers/scsi/qedf/qedf_fip.c @@ -156,10 +156,9 @@ void qedf_fip_recv(struct qedf_ctx *qedf, struct sk_buff *skb) struct fip_wwn_desc *wp; struct fip_vn_desc *vp; size_t rlen, dlen; - uint32_t cvl_port_id; - __u8 cvl_mac[ETH_ALEN]; u16 op; u8 sub; + bool do_reset = false; eth_hdr = (struct ethhdr *)skb_mac_header(skb); fiph = (struct fip_header *) ((void *)skb->data + 2 * ETH_ALEN + 2); @@ -190,8 +189,6 @@ void qedf_fip_recv(struct qedf_ctx *qedf, struct sk_buff *skb) return; } - cvl_port_id = 0; - memset(cvl_mac, 0, ETH_ALEN); /* * We need to loop through the CVL descriptors to determine * if we want to reset the fcoe link @@ -205,7 +202,9 @@ void qedf_fip_recv(struct qedf_ctx *qedf, struct sk_buff *skb) mp = (struct fip_mac_desc *)desc; QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_LL2, "fd_mac=%pM\n", mp->fd_mac); - ether_addr_copy(cvl_mac, mp->fd_mac); + if (ether_addr_equal(mp->fd_mac, + qedf->ctlr.sel_fcf->fcf_mac)) + do_reset = true; break; case FIP_DT_NAME: wp = (struct fip_wwn_desc *)desc; @@ -217,7 +216,9 @@ void qedf_fip_recv(struct qedf_ctx *qedf, struct sk_buff *skb) vp = (struct fip_vn_desc *)desc; QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_LL2, "fd_fc_id=%x.\n", ntoh24(vp->fd_fc_id)); - cvl_port_id = ntoh24(vp->fd_fc_id); + if (ntoh24(vp->fd_fc_id) == + qedf->lport->port_id) + do_reset = true; break; default: /* Ignore anything else */ @@ -228,11 +229,8 @@ void qedf_fip_recv(struct qedf_ctx *qedf, struct sk_buff *skb) } QEDF_INFO(&(qedf->dbg_ctx), QEDF_LOG_LL2, - "cvl_port_id=%06x cvl_mac=%pM.\n", cvl_port_id, - cvl_mac); - if (cvl_port_id == qedf->lport->port_id && - ether_addr_equal(cvl_mac, - qedf->ctlr.sel_fcf->fcf_mac)) { + "do_reset=%d.\n", do_reset); + if (do_reset) { fcoe_ctlr_link_down(&qedf->ctlr); qedf_wait_for_upload(qedf); fcoe_ctlr_link_up(&qedf->ctlr);