Message ID | 20170626155938.2091-2-chad.dupuis@cavium.com (mailing list archive) |
---|---|
State | Accepted |
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.web.codeaurora.org (Postfix) with ESMTP id ADAB660209 for <patchwork-linux-scsi@patchwork.kernel.org>; Mon, 26 Jun 2017 15:59:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B0E0628334 for <patchwork-linux-scsi@patchwork.kernel.org>; Mon, 26 Jun 2017 15:59:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id A5B55285BD; Mon, 26 Jun 2017 15:59:52 +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 2674028334 for <patchwork-linux-scsi@patchwork.kernel.org>; Mon, 26 Jun 2017 15:59:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751866AbdFZP7v (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Mon, 26 Jun 2017 11:59:51 -0400 Received: from mail-dm3nam03on0078.outbound.protection.outlook.com ([104.47.41.78]:57771 "EHLO NAM03-DM3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751592AbdFZP7s (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Mon, 26 Jun 2017 11:59:48 -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=VekgKg40XSVAS4PfbOS7vCj4AGco0wQhKlb93jrW9cA=; b=T4C2BweOyeeSGNAKzlls37L4c8owzZLkI3ZjTD1vGRu/j/ZPEqQnYbqRdzyPRp4tDqTWA5Sb/EACInL3ZxMpwPM060uPuQfm0P8vvRjRaC6+bSfhd6RX0QgArFyvuosolzCZ2GRg2wA0OkglTcgduN6CtGFeJLZTigN1aUfetro= Received: from BN6PR07CA0025.namprd07.prod.outlook.com (2603:10b6:404:a3::11) by CO1PR07MB426.namprd07.prod.outlook.com (2a01:111:e400:103d::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15; Mon, 26 Jun 2017 15:59:45 +0000 Received: from BL2FFO11FD039.protection.gbl (2a01:111:f400:7c09::138) by BN6PR07CA0025.outlook.office365.com (2603:10b6:404:a3::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1199.15 via Frontend Transport; Mon, 26 Jun 2017 15:59:44 +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 BL2FFO11FD039.mail.protection.outlook.com (10.173.161.135) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.1.1199.9 via Frontend Transport; Mon, 26 Jun 2017 15:59:43 +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; Mon, 26 Jun 2017 08:59:38 -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 v5QFxcQT002130; Mon, 26 Jun 2017 08:59:38 -0700 Received: (from root@localhost) by dut1171.mv.qlogic.com (8.14.7/8.14.7/Submit) id v5QFxc1m002129; Mon, 26 Jun 2017 08:59:38 -0700 From: "Dupuis, Chad" <chad.dupuis@cavium.com> To: <martin.petersen@oracle.com> CC: <linux-scsi@vger.kernel.org>, <james.bottomley@hansenpartnership.com>, <QLogic-Storage-Upstream@cavium.com> Subject: [PATCH 1/7] bnx2fc: Add filters to the non-offload FCoE receive path. Date: Mon, 26 Jun 2017 08:59:32 -0700 Message-ID: <20170626155938.2091-2-chad.dupuis@cavium.com> X-Mailer: git-send-email 2.12.0 In-Reply-To: <20170626155938.2091-1-chad.dupuis@cavium.com> References: <20170626155938.2091-1-chad.dupuis@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)(6009001)(39400400002)(39410400002)(39850400002)(39450400003)(39840400002)(2980300002)(428002)(199003)(189002)(9170700003)(36756003)(2351001)(101416001)(50466002)(33646002)(48376002)(80596001)(478600001)(105586002)(72206003)(4326008)(87636003)(42186005)(106466001)(189998001)(76176999)(50986999)(305945005)(5003940100001)(38730400002)(2906002)(110136004)(356003)(47776003)(107886003)(8936002)(5660300001)(2950100002)(6916009)(6666003)(1076002)(86362001)(50226002)(81166006)(54906002)(8676002); DIR:OUT; SFP:1101; SCL:1; SRVR:CO1PR07MB426; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD039; 1:2kcs1gPNUKrLXezHQEtwJfmuMb0SC+1wla5eYkDxg+3fQCYuGR30kuRrFrBnRCGnxMCvDncfHHE6MJwFkcPBFPSHqQhPoMEVT544f5Hwx2yRj/XLZvjLcAl6EC8zpmZGhLwPDSouP7+E2SkCr31JBaB6ZTRW5esE6QsvP5MKGNEiMX8Z/75h57tkjgTw+V+WzcFt6owlz7+NXeLFc74YAp5V3FP6eMc54E7KFLVh9TT5I8cwh5hJbkQxGR1yPox9FZK9N9UWsGc7oX4iJssrYvD9ZTDIoQqPhb47YeDVzwgYicIB2ely33qw4vsXqaWT6yr6BWvi8iKlHHN5RpMDnmjV1GIUscCltw+TJcaCxX4AU7hp6HEAMI4zZYCc+kWGQXv2FxkxAVCaIhL8fV3RkZT2+6BJzBqvN4VradMYMzJ7jyW7GYBq8E87sdrtWmIQ0IYKYuM4Fya0iTgMUMf5dTHWWfe0b2sJV5ty0SPd/Kk0wMC/tbAkxIZP7TuU2eH1LbqsRZE2DjFM1k15M5UOrAty/zP5KP7Z3GDKtaU+Zu1B9ZheoT2xfLMbD+ncbPlJvfzz9Ui94xIZEiTOSJTFsL78BrS6kCicnOLsxhEr97ZeceNcpR3WmBJRjClt2w0884Fex5dA4hJd/Wd+UvzTJVyDWl2+hkzSmOC3nfnGv5jltVK9cNsgXbfgMeqTXvuTdjTl9irH821VKogAZbPsW9eBmxPg2BiwY3h5RqQNDwyawClCe5G7kKjiBtl3Sq+rDFUBI7DwGtcIuGSD4q2cXdWT2ZV/icKMQ0cSPXwhXOsOeTbIEl+PSKZEN5RiQ3/S X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 881f4b9b-1fdd-4b3c-4568-08d4bcac5caf X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254075)(300000503095)(300135400095)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506067)(300135500095); SRVR:CO1PR07MB426; X-Microsoft-Exchange-Diagnostics: 1; CO1PR07MB426; 3:8XKOY79/bWx2sJZhfT9E0UUnpDJxgpOu9cjgVky2Z0o09gwLmKkymfwKM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EDF0@CO1PR07MB426.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(236129657087228)(247924648384137); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(13016025)(13018025)(5005006)(8121501046)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(3002001)(6041248)(20161123555025)(20161123558100)(20161123560025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123562025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CO1PR07MB426; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CO1PR07MB426; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO1PR07MB426; 4:oBpXcZVHydMBNcI8xF3lyDCzutGcm5atwxVUkVKhlwK?= =?us-ascii?Q?7RjcT43Rs2/0sHv00LjtuzW/fxFNQsKEkRUaVLZXMpaTW9KQ4EcjEB29WKQr?= =?us-ascii?Q?1rmHrKzUBoxsy7R4evywOIjyZRaOAfeHgsa7Ju/hbBTIh2aGc6HisELTvCDl?= =?us-ascii?Q?i/jP8EVq0IXzUL5gioyevbOFTFt75tuIquR0B18FxItEGKN+JQjA9Hfo2U93?= =?us-ascii?Q?wgxvdeYybZ6+zWvM0oLaJGS+cI8cnN1YL7OhyHwLLv6oZRmlQjDW1o0FN7zg?= =?us-ascii?Q?0NfKRFkCWnhEYWqg0o50ZfltCs9jPt570S0SsyACUlHqyIoFkyonCia7ETh6?= =?us-ascii?Q?abmOcN05KGvwUxNCi0jgCwca+5wAH5OkpM7RKvx6GT3EKvhW+4gL9UevysNR?= =?us-ascii?Q?cdcwAKTAaM2ACL00ZW3f6luSu3+p0kViMUOVYQRUwzvR2nO8DWb97C692pJz?= =?us-ascii?Q?PvZRLdi70HwxRlDCp9JRcPSXZif0lhnG19NWMDgYPvRvnekH1EoA4/UNK69G?= =?us-ascii?Q?4EZ3gCbrd/mH/JA4N/ERLA2TjhCtwNGCBohahJeCfGxVcudl5ixbBUgOQiH/?= =?us-ascii?Q?5xy7MFwoj6ksoGduHHw69ajdnjaobqleO6OHo9YngNGDtqMV7CEnSo2k4UyV?= =?us-ascii?Q?W4AFXY6FC3g+v4OjPXJTs42APvKccpNe7gDf/g5NDPxU2mTPYgj3f9Rrlhf5?= =?us-ascii?Q?6QE4ZUaxZupwvW8oEndOj64L59BgbcDWDTI5WUOeaQW459EnDz0v+fgDGbbd?= =?us-ascii?Q?ARN0fEJGr7USNc3HvVVl8NgAmMhycw9YFnemSjy5aniyhnn5/27QilRvVRb0?= =?us-ascii?Q?T19d+5LKruCjBVQRTEI7iiXa2xG7KwKyayIWqFtXPK2tNHOlnLGj9V8kH8rk?= =?us-ascii?Q?qYVJDrlAFMwk+YEtBDkvCckc5yIp31QwtPV5pQuV/HDDoYd2TxaqCCK2C/6L?= =?us-ascii?Q?Ocv8G4wfzs8ubR5yrcJ7cdG/OxemHW0MKy9FICXVLzrAb2CLUK+ATbFkMl0q?= =?us-ascii?Q?3c9uMVGzPAUBcTAlfsqCFqF0+sVVnieA4A6DgGG3ToH30oX695nfIMQh8D74?= =?us-ascii?Q?EW0rrxZQPGfrsLnR//mWBHn5jDKjR1jc9E3U/N2PjMgDc2Ee7v0RfwHqf6Gm?= =?us-ascii?Q?djUwVQAiYsGkcCr3aZftr5SiZJaWAvZbaAj4VO2L4OQv3v3OMwIOVDK2DoOL?= =?us-ascii?Q?oykSCXN5SLrBrwVRfewWqvHtdBlXRh0q07D5HKQSFqqQB1FaOhdRDlvrCoXO?= =?us-ascii?Q?zR6UUvrIAe7w78xPfwQY5VLCtMZRIL5Jz9zbR?= X-Forefront-PRVS: 0350D7A55D X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO1PR07MB426; 23:MEfVZaGOkgos+z6GH7ZJ8yG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yg1MIpowo0cloNivFmjt28ToBSqBgYdkFYt8qdl1M45RUuNTox1HAQ2ca?= =?us-ascii?Q?e4pEOfnOVEAHirLwqV5SZzj6HsWRmwip/CgIwpr2+WPlG3C4Jei4hjZjbeJE?= =?us-ascii?Q?+yJIksFS+V0Nl3j6QRV7KTTO2htBUeotjVp33d/14xaI5ilX1948HE+VKegk?= =?us-ascii?Q?uIs5E2GM5wUpDz8XZCvclwBv0VqGhpJBwTIfnByd4dh+l4u13hZq6SIq+kZk?= =?us-ascii?Q?wVKiK/Srz4Vp917cAYz39tRmCzKmicxvs3qpgjwc82o2MMv1Ys6w=3D=3D?= X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO1PR07MB426; 6:2LWrUBRLACmRZI/d5m7h8Q8Lj3AxwS8AG/5jVMLnDBo?= =?us-ascii?Q?3qyctiFNAtZNWUJaljL4r5THTwEls7MRch4f1cKq1n2ZdZofgyRCMx7WvR1s?= =?us-ascii?Q?aEl72h5b/gExOaM/mc0qdF1nB+n1N+dhY/gCINSElEtm3ge1cs+9X3XLDoB4?= =?us-ascii?Q?iIcOjmwbuuGGutj96o8sLwFBQYxvPw3sGkCCY67xPMzoRHzFeWIvevqFRtXB?= =?us-ascii?Q?Ol22lX0xChd9pzgm4gnVT1nyAV5TcEK/LTmvfYDP5/iNbZf/8PgPoFi3WuPo?= =?us-ascii?Q?siFpZVBhRJRHCUhvmpiBzacBY1iR7A0/T15J3pVSc5OhJThFG/saImsGIsCu?= =?us-ascii?Q?+vXg2l9eSfCxekYuvULvHRfSi3Yh5KByWbLYmtHk0fGvkr+P5Ml6bAyJzXWk?= =?us-ascii?Q?pONvOfesbZXK208jqNut8M9roBYEbHJKzTLpse1sQ1FzJSb1CskGhf/1OaAR?= =?us-ascii?Q?K0wZ9Uf+Z4LiWaXSBTBnpqDVXa0TKEnFuZsY2VP7WYTD07XEYDoUGDMpKOPH?= =?us-ascii?Q?fBSpoCsiKwVmUdo2qZgc+7le4jNYyo6ls2q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ym6TT8sZZlON4Qmn+6N/1V3VBGeQ; 24:FFhzixEu2jE6OR2dVwrWisyuxQVYvErnY+CaM4ROc93zNb2vvq+Te6MaGsm12kTAWqoWDWTxzSKrp1sp7wvojFqz1sJb6nrgyxihY4NeYDQ= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CO1PR07MB426; 7:BF+2wopMH3OKfshkLLIyfXCyJrDQSO9YAC6P4pDdaIOUspzbc105LJCQ/vTuWuiZBHI64NN0dpp+FWoASUOuZircg0ZduwOQ7HdDgbfYSGRjcoJneMQgAXia4Mb+IX3tXxs8o4JzeXMLGVi8WNNyEqqD2MLqXUjQotUvYe2SUcyn4SetK2yxSTCGulOPrnyh1TzHQekSZHDq0/h0IMOCH5UDS36uQilASQxS1UDGbJ3ranRzzFeKgeZG5eSuf3gyTUX41CEoAIOnlQ+BQnzs2eXnLx+hrVz+LXj2LNVTMNPAkMuc34b7/CImUe93tJhKDLwbFC7++hg8xmsUXHxIrHUZ55I6CZT5LNjEm38Rx9pO54WglxVgZ0hEfmN/ZJZckusJ1Nm7DHpBMPiSsTWjiAOlP/h/Kf0rfJo4ZTzIjqe6xLP0un/GrdAgLa4oivw6MGgexZjCvHM6DfZ3s2oV4QDkGpzpu0ai9jlgQdNnGmDidS3Wymuyq9Kmwt22gdlT3PqMow+KZCxl8UF+iUPgvrAc1KW46myAOx5sacxFaLBNfeQN/qoTYBRhZNJ06Pucyx+D3zX777QDJNNnta+eagH2ql8QR8XYMIykYBY0rzO62VkEv1a2VNnHGBjNPjyaYK1JqDSX7Bihpi0j6YkXjVcNLWhKOVPlRpYJnpKj/tBw1CWNWaOqNJ6wvIjwoXM2x++kmFmZlcj35/ObfbCwfucOaRaGRrCWEZ7NqX684q0DQmBKX3yxPG7QTgj50zROoofOBkII6kGm52ueMre9xHlfp8JopTWSaalkegcTG0s= X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2017 15:59:43.7881 (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: CO1PR07MB426 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 |
diff --git a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c index b025ee5..2025510 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_fcoe.c +++ b/drivers/scsi/bnx2fc/bnx2fc_fcoe.c @@ -522,10 +522,12 @@ static void bnx2fc_recv_frame(struct sk_buff *skb) struct fcoe_crc_eof crc_eof; struct fc_frame *fp; struct fc_lport *vn_port; - struct fcoe_port *port; + struct fcoe_port *port, *phys_port; u8 *mac = NULL; u8 *dest_mac = NULL; struct fcoe_hdr *hp; + struct bnx2fc_interface *interface; + struct fcoe_ctlr *ctlr; fr = fcoe_dev_from_skb(skb); lport = fr->fr_dev; @@ -561,8 +563,19 @@ static void bnx2fc_recv_frame(struct sk_buff *skb) return; } + phys_port = lport_priv(lport); + interface = phys_port->priv; + ctlr = bnx2fc_to_ctlr(interface); + fh = fc_frame_header_get(fp); + if (ntoh24(&dest_mac[3]) != ntoh24(fh->fh_d_id)) { + BNX2FC_HBA_DBG(lport, "FC frame d_id mismatch with MAC %pM.\n", + dest_mac); + kfree_skb(skb); + return; + } + vn_port = fc_vport_id_lookup(lport, ntoh24(fh->fh_d_id)); if (vn_port) { port = lport_priv(vn_port); @@ -572,6 +585,14 @@ static void bnx2fc_recv_frame(struct sk_buff *skb) return; } } + if (ctlr->state) { + if (!ether_addr_equal(mac, ctlr->dest_addr)) { + BNX2FC_HBA_DBG(lport, "Wrong source address: mac:%pM dest_addr:%pM.\n", + mac, ctlr->dest_addr); + kfree_skb(skb); + return; + } + } if (fh->fh_r_ctl == FC_RCTL_DD_SOL_DATA && fh->fh_type == FC_TYPE_FCP) { /* Drop FCP data. We dont this in L2 path */ @@ -597,6 +618,18 @@ static void bnx2fc_recv_frame(struct sk_buff *skb) return; } + /* + * If the destination ID from the frame header does not match what we + * have on record for lport and the search for a NPIV port came up + * empty then this is not addressed to our port so simply drop it. + */ + if (lport->port_id != ntoh24(fh->fh_d_id) && !vn_port) { + BNX2FC_HBA_DBG(lport, "Dropping frame due to destination mismatch: lport->port_id=%x fh->d_id=%x.\n", + lport->port_id, ntoh24(fh->fh_d_id)); + kfree_skb(skb); + return; + } + stats = per_cpu_ptr(lport->stats, smp_processor_id()); stats->RxFrames++; stats->RxWords += fr_len / FCOE_WORD_TO_BYTE;
Add the following filters to bnx2fc_recv_frame(): 1. Filter out invalid packets - eth->dest_mac[3] matches FC frame's D_ID 2. Filter out packets that are not from our connected target - In FIP_ST_ENABLED mode - eth->src_mac matches fcoe_ctlr->dest_addr 3. Filter out packets where if d_id of the packet doesn't belong to the device when one is already assigned a port_id, only then this packet is dropped Signed-off-by: Chad Dupuis <chad.dupuis@cavium.com> --- drivers/scsi/bnx2fc/bnx2fc_fcoe.c | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-)