Message ID | 20170626155938.2091-3-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 9E91D60209 for <patchwork-linux-scsi@patchwork.kernel.org>; Mon, 26 Jun 2017 15:59:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A0C2928334 for <patchwork-linux-scsi@patchwork.kernel.org>; Mon, 26 Jun 2017 15:59:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9454C285BD; Mon, 26 Jun 2017 15:59:48 +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 14C0E28593 for <patchwork-linux-scsi@patchwork.kernel.org>; Mon, 26 Jun 2017 15:59:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751813AbdFZP7q (ORCPT <rfc822;patchwork-linux-scsi@patchwork.kernel.org>); Mon, 26 Jun 2017 11:59:46 -0400 Received: from mail-by2nam01on0077.outbound.protection.outlook.com ([104.47.34.77]:30504 "EHLO NAM01-BY2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751592AbdFZP7n (ORCPT <rfc822;linux-scsi@vger.kernel.org>); Mon, 26 Jun 2017 11:59:43 -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=bLS1Y+/ykQiN4eGZFOk0ybrxkCWpNS4lOVFt+UDp7cs=; b=AtkC7FY6i3BcfmbAiKf11nfhUeTWmpLQ25o8KsEZ2+wHynuIBu/zw2dR23cTT9Ohyk0ZK/PU59zZW4hR9sjm3JafNTal6YUy+qYGD6yGt7Qb3fPOT7dmgDA4X5+vcJGBuvaeeewyn4x7CVEGMjaZnGhHowA9Cqr4QEJmso+G2MQ= Received: from BN6PR07CA0027.namprd07.prod.outlook.com (10.172.104.13) 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.1178.14; Mon, 26 Jun 2017 15:59:42 +0000 Received: from BL2FFO11FD039.protection.gbl (2a01:111:f400:7c09::142) by BN6PR07CA0027.outlook.office365.com (2603:10b6:404:a3::13) 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:42 +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:41 +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 v5QFxcwn002134; 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 v5QFxcsP002133; 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 2/7] bnx2fc: Check for connection offload before sending RRQ. Date: Mon, 26 Jun 2017 08:59:33 -0700 Message-ID: <20170626155938.2091-3-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)(39410400002)(39850400002)(39400400002)(39450400003)(39840400002)(2980300002)(428002)(199003)(189002)(9170700003)(8936002)(110136004)(2906002)(81166006)(86362001)(107886003)(5660300001)(38730400002)(33646002)(101416001)(76176999)(50986999)(6916009)(5003940100001)(36756003)(8676002)(6666003)(50226002)(2351001)(356003)(54906002)(2950100002)(105586002)(72206003)(47776003)(106466001)(305945005)(1076002)(42186005)(478600001)(48376002)(4326008)(50466002)(189998001)(87636003)(80596001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR0701MB1021; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; MLV:sfv; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD039; 1:u34X4nnjC2mlsqajhbwwQ6YQU5igJwSM/sjRYVxpCUp9GABgKtkLURBhc8TS6wbptQPnfUySPRX5IdL6Q9Jeehq1JEqk9+5w+fKvS9g7Hx7Bt01D9dKGrrhT4aZrsO6zPlFh99So+VGukLvCs1nT/agzFCkXbTygJv7xvclmLDXdiDN4SMRFah+u3U2YZj5aLFjDhPTn/dNl45nH1akX3D9OiCmRZQXMadLl1TwevcCpFBwDvslFrJvAeWoaE1uMA0b88QVdB8IAqNKRWmm6OPz//p70WquOJMPDJ7xi6HZnWrs5b9Ma5EdLprMM4gNCnhc+tey/Fzd7GamvSwCF7XJYYaXgW1AWMq3L8iEAzYe3q7TSEXtRjuBSEOJRgMD8nr3aP6exXCZ8jaIAepV5Cvc0pJe+8U2L9zOkOuoeC1jvaGadI0r5G6Cn5uEiJ3GuPrg+KVWI8fOZdjMcmXHTnIPWC/ii+QeWmCGUIH6+sz4UGEISXt5Ev/chTum28/B68zK1XEGbPTeI2SzXiESgdtIpzmcO3f7gZh1xlqC1G95dxhVXOQ8/rKyTAK9LF68xiWARMJc8KNINnUzYUVZY/N4rQvM4A81s8OHXge/E1vpqeb+/a2iDXMaagM2uD8kp9zNwzQmgzedg3rHyhPEYms8SaLjOSh8P9YDlzrKBoQhIn8LGgbntqqfuxXEcpg48lMF5d7hY60kh02YRWsY+joNIhVDj1YEKlcvj164eupRiZvEsjDBz3tLZFaori8y5mziaXMSKcQ84uJ3rDQVWeJonvSsY4Ta+loq4hJjEmpD0DR8tOely/kgZpcO/kF9u X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 601bd496-4e70-4557-1b64-08d4bcac5b88 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(300000502095)(300135100095)(22001)(2017030254075)(300000503095)(300135400095)(201703131423075)(201703031133081)(300000504095)(300135200095)(300000505095)(300135600095)(300000506067)(300135500095); SRVR:SN2PR0701MB1021; X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1021; 3:YEulgOX7sNhjS+AJSC5U3FVGCQ4vY7mAbRoEDF9smNw6EmiIDXtyxcr/4liopsm4JvlnNI4ZYh7cruglbRiglxjPKR62nANv7ccJvLAnaUcDiDivRI+Ka22ahJBjV4G8CvuimIxmdhGtxqPseM4prKgvpCfLZQW3bi4jBixVCO5nl/92PpfDL35SZWOFByCxuWrXUCdlp9knPciTmrNb/mCHmle7tQ7Y5Of9Wo5YI7tHxxUw09t51LBV4zW2ZWJJR+03oh2UM1CbiuhbLNY+szBl3xMaaM6sBzm6y161sBs6D964aA2rcauozRGk1eER/NP/53+u5dt67uPvgqNCbzkNNvh26ZAVd+aQ90235I3OJ2Z7kbW5C7pkJgdd260EGe681NNjdAiqeCiIgmYwOaIxPxLE7FwR+PoAnkZ8r6a6jn0x6AaGozR07VkjWNBpxKGPoWOz3Rrshj0T2ER57FTCo7PaK9sPyvStMwORdBWIMpnzAiVvPkJCOQyDmpro0g1n09V9a9omnt1StH58oDRLUi9/5EIr/QgE0ejK46nx4rqiB3a4bLO+CeRGcP05vqEwQZ8f1uYw83MJwMjgEl+M/W+cis5EjR/xARly4GgzaghKB/r0xmu6fqrobqXPaSaffkVGfyyQrDkVaa67pJ1X50+DqrELPvMNOIprUiLM+9Y2T2k+05GCuVPO9VrhzfJhbsc86QHBjInvKzwKiH4txxMm1QNfk6odV8n3tK72wIgvT+xXYCjkY+cT1diG5e5UpsfH2HsrTh35XT7DNiAdEpkNvqIp53s3FUOeB80mhH4KIBbEfMLNHWct+sSQqamV0DKFlOThQfc+I3AojS59w56uggFVl9+zE/cl0QA= X-MS-TrafficTypeDiagnostic: SN2PR0701MB1021: X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1021; 25:bYCsnyhgHnFctQmnOXbgYvfUhXh7RkweKf2kJx7yUquRQQntRwU75NKOvlnHqUhe0QqqT6nFtRIoFP1qxGy9DFLEwV7z8wXjgXPiC+axBve0yE1H5Usggpqkv+DuNfmH6m2A221tkGe+KN/5rdVd878YRCj7Gs1B2nBWPXdYlqjuNpPDhIqTDc4hFkUHgLhuawcVUc4mFYgftVbc6cP2OigKaTMUY60AGPSAKhjLYDv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fvvES2gk1LEIunsBNmnLkH2XTMnl2IkuxC+8TbTPHY467Jvu/aJFdI9yDN2SiNvufWenNdfo6WJMxFFMmn0uPjblm91cIjDVp2ZeDnnjGyGRBgX82nPvUGHhxbZrkQELx7t8+K+CyWRh67iY+iRcUi5SxxfTRv8FLu0Y92IqKtXXcCMeB8Bx8TbToa2OjqCe/Btf8cmkhBNfmGay60cOadzkDreHvSnM8YxUbbh4coc8Yv3VJOsoryt/wQu7fUKgTD2pSM/o2Q+/GaFrCw9k7szmgphwjxo9TgA6Aanl7dAY2UJEe8cAkV6TNn8mMkeeLHZ6i++iqEnZEKWMnaHecXBLA14nm7VcrD49X8pprbQYkOarP9Z6CLBE+ X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1021; 20:gp2vgkepYKEw6pZvbWpdXg/RlPHEEGZYMRqrGM+Vo6Tp5iMFiCf2XEzZAEU3XSjZyA5Tx6HhIWY5SmHqg2amsprgm71TeqnzXsudDKCHAuVoU4Z5RNBoAl4FuZ/suK9qrBRoELqgqtFGp4sA5MpDu4S+QowaEv0CycAftDy3km1o9/zp2mXepbg8Ur/rfRttGOfmHgSVXACQMQqA8jyhTFJmCCLHn96tD/ZVUZvS/ljMN8MUQ77WL4oItzloLUDj6I6qVeScYj0FsyWCi89b+Gyc8LPpVDEbtg/fVU9AuWsPD+FwV/28Sv9lohLHikc9Y3o5zet2r+mHujWWqsSkhdQ6091RMQmaGpD8VAlz1AVAnIfdIUMu82qmKvvk4RmPkNfGeW9LbuTsRB/ujlK/FMyNDDTaic4Wj9ubnA+KMFKJIHdihua2NOYk0XLzF6EolVZLR/PAiWsoACQ7wVzicXgL9+RSF1Jot/eK1nvY6rz0mP8LvNjMXoeKDBKgGtlF X-Microsoft-Antispam-PRVS: <SN2PR0701MB10214389799936FD75763B8C9EDF0@SN2PR0701MB1021.namprd07.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:(236129657087228); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(13016025)(5005006)(13018025)(93006095)(93001095)(3002001)(100000703101)(100105400095)(10201501046)(6041248)(20161123562025)(20161123560025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN2PR0701MB1021; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN2PR0701MB1021; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR0701MB1021; 4:fz/1ZGxnMDJodt6ICkPxFTZItDCQogoHIEUeFgAf?= =?us-ascii?Q?6hmNEfATZ4YJm4bBUaPCQCHeq2yOUoe6KQSIOR26q9DMPU+WuoUuZyg2Lcp0?= =?us-ascii?Q?JhAqUokbNMMM/8m7J8gY2lE/X0KNt+df7sysV28XkzBvujOPL5wwtMBPGHIN?= =?us-ascii?Q?yMJFdSN/bs6AoGCDPmffmoJAjJ6HTfzzteFipuNTIECA9+IIdcEkJXdh+Kz5?= =?us-ascii?Q?qyOb6oPvHJmT+mXZe9kPwoIOLmj5u4iskKTmupP7zHr6AkE+JIPPF19s/pTe?= =?us-ascii?Q?FC/XQtghZMFN99kSSV8rbTckRyCnNOc8ZSZqqWazXwi46BOFUoaUdFO4gbbk?= =?us-ascii?Q?QO0MUjqLlE1GZAhCEUaBlQOUTA0tayjM0gL9DNCFAL4RCm/AH52h6xbssNJB?= =?us-ascii?Q?e9sRlsMYVFIkAmoi9m/UktZhWc+u0ePA+MpNCf32Padje5xFKpCutlKfEd/W?= =?us-ascii?Q?FgoPq2SxQpciC2htnklitj7w19jMj4HnYzaQY6SMA81VsvE5h2yxRAdeCgtE?= =?us-ascii?Q?RVCSnK7gGPwENGJeCdd2XtNB0j3kWroPa7As85gFRZs+qgVIOrpLNVOTn3r8?= =?us-ascii?Q?TkYCboJanM/uCfZakyhA2SIL2bgK49oFFirgZEboru/BP62AyG92ioXfX6e0?= =?us-ascii?Q?g9ot3a/6WYZK+BoUQO1qdwEE2Yy2tZ7XGDV7y9sbqFwQWv7UcmtjWViqoXW1?= =?us-ascii?Q?Gopepx8aBLEYabflvv+se5kVChkRLfhqQJfTmGsTH7MSVkyb5NfMVqa3pZBm?= =?us-ascii?Q?IU15K0Y/L8cKoBmrYTMr0xttLtab70DOUSvOOR6XvVuO85aEbzFHOoJb8Q8Y?= =?us-ascii?Q?TOWA+PfVg8wp34aQ/ILMIly9L13yU9Xs6HdTZMRTf4jG7UQgVCU//fDeILah?= =?us-ascii?Q?tih0biv4Gyal+NXUl54yI6KAsOVxC9nqKTHYwS6tnfl40gidtpeJdCvK/Ukv?= =?us-ascii?Q?3UaFY8ZHRI/b+O/Ie4vtJcST0O/ZffqW69+b6geO0T2nXI06w7vQibzMoKb5?= =?us-ascii?Q?VA8xQeuJLDzsyC+NKHLzj2Xl5E1toRfc27CcYt0cyvHbDocEKT1fKz2DSXQz?= =?us-ascii?Q?YSn65/bRN31DrOUIiGcNH3SHNjyl+4bHS6fui/wkVI233V0C0fjjdaxtFDG4?= =?us-ascii?Q?pWUvJTkzcBhMdbpBXPRXaLjsvSdKIHDeE/Ba/0EhHG4zL9+nVVfYbaVQ8QIu?= =?us-ascii?Q?d7w/i1mvt6RzAzoz9I2XM9XfASQMOgsyRTQSuhIkYHxY+cvjGBAHyAeCpA?= =?us-ascii?Q?=3D=3D?= X-Forefront-PRVS: 0350D7A55D X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR0701MB1021; 23:M/KfFevGpmMg45AuruUUw1bQ1toWodfzwAs3QA7?= =?us-ascii?Q?E70BVMhyjZ8f2JIe8VOkjF18rM7Jsh1Ps969XYrqKpHKMJ+gHSaudNkn8mnW?= =?us-ascii?Q?P1ZDTlBUjMM6f9HbSHxYwI3RAbrV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71m55i5igUlV6XC2ubBeNok= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; SN2PR0701MB1021; 7:OWnnL+jOA9sxz8jQkEoAA7N/uBbudkF7O4PCRZNmB08IuwVsa9hftAL5ZueitsRu07oU6sksQWopYDQLejsM6i0yxfZkBcLAEBexCARz8ELgRRUIjl+fz8DsoBbtyUXf2CUDIUuIb0kjl7MrTfDzFrRi84Ed3yuigH64e4Z0bUL8C3DuAzuvlzBV0J7aKY4yhKTizInWF8gVaptvzC3113pQcOBv5VkbLVEsXGwgLh9+DsQH+U/5Lw8DB2XwkT7i+StbrhEyyxVBpywER5Pvhs4XEJiFv1841j55qN6y9Z2JdIV8p+jY/FuGKVZl7fL1COT0N9ad09xi+qme7PXUpSTrPbNnIUbIrONkvaZLJdv2cUD3ZScO0yWcrKp1wojSrFICCUbqQ9jj08Jrla8JIOr9CDh5JFp6b6buOnA5FnW+BbEVBu2evsWwbDR07WfB5ky/raGya9dZQnFXJzvwRfMu46CEizhzGZuGUUZsXPiwHAVkfnmmph5S4FpQjiuW17cJgMeaqrJ5Y2ZA/OiB5niK2MWk0MGB4LEhhEueZwszBVZEJMwEFdnb47w2PDhKnpkCuFr3t1op3XsW5PnrNaa/rryfAyE9hC6W624zzpzApUNlCbGfxTpD2zkFUfQ3pPMtdwTRgSfEvVAiV5dB8H4M1ArGLUHXX9NYdsThY88VsUVwjrLWMrkwIxdA1yVAuD1XPukrhYX71Ad8rOvDCC1NilZAWYz7NUsJnNipKGlZ5J5lddtOpEUZZ6BMN4JLPGuacKloz/xQqOPu5fN/2z8rgEfPeYVstD39ioTpa68= X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Jun 2017 15:59:41.8537 (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: <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_els.c b/drivers/scsi/bnx2fc/bnx2fc_els.c index 68ca518..fee12c3 100644 --- a/drivers/scsi/bnx2fc/bnx2fc_els.c +++ b/drivers/scsi/bnx2fc/bnx2fc_els.c @@ -61,13 +61,20 @@ int bnx2fc_send_rrq(struct bnx2fc_cmd *aborted_io_req) struct fc_els_rrq rrq; struct bnx2fc_rport *tgt = aborted_io_req->tgt; - struct fc_lport *lport = tgt->rdata->local_port; + struct fc_lport *lport = NULL; struct bnx2fc_els_cb_arg *cb_arg = NULL; - u32 sid = tgt->sid; - u32 r_a_tov = lport->r_a_tov; + u32 sid = 0; + u32 r_a_tov = 0; unsigned long start = jiffies; int rc; + if (!test_bit(BNX2FC_FLAG_SESSION_READY, &tgt->flags)) + return -EINVAL; + + lport = tgt->rdata->local_port; + sid = tgt->sid; + r_a_tov = lport->r_a_tov; + BNX2FC_ELS_DBG("Sending RRQ orig_xid = 0x%x\n", aborted_io_req->xid); memset(&rrq, 0, sizeof(rrq));
If the connection is not offloaded then the backpointers from the tgt pointer are undefined. Signed-off-by: Chad Dupuis <chad.dupuis@cavium.com> --- drivers/scsi/bnx2fc/bnx2fc_els.c | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-)