From patchwork Tue Sep 19 17:38:37 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kalderon, Michal" X-Patchwork-Id: 9959815 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 D9351601E9 for ; Tue, 19 Sep 2017 17:38:51 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C47B328791 for ; Tue, 19 Sep 2017 17:38:51 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B97AF2892B; Tue, 19 Sep 2017 17:38:51 +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=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 1C54A28791 for ; Tue, 19 Sep 2017 17:38:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751378AbdISRiu (ORCPT ); Tue, 19 Sep 2017 13:38:50 -0400 Received: from mail-co1nam03on0066.outbound.protection.outlook.com ([104.47.40.66]:51465 "EHLO NAM03-CO1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750973AbdISRit (ORCPT ); Tue, 19 Sep 2017 13:38:49 -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=TZy/T38xdj9ElkrKu8O2x+RlwOAIXYzE9ENwyzXnQpg=; b=M4msuzf681wiblmNoIU+kRF5DW5Xt+qxA/H0IosNfxPmcduaI1ZMnErBJZ/7/Zf2mmBy2cpB2yvhStkFdsZl0c2wdz1k2A4Xw/3ccs96vZB/oXM4wEtI0nNaA5PSiukEWZypiEeychTc9wohZXJqQPZZWwVTIwx9kts6M59j2NE= Received: from BY2PR07CA0087.namprd07.prod.outlook.com (10.166.107.40) by CO2PR07MB492.namprd07.prod.outlook.com (10.141.197.151) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.56.11; Tue, 19 Sep 2017 17:38:47 +0000 Received: from BN1BFFO11FD026.protection.gbl (2a01:111:f400:7c10::1:176) by BY2PR07CA0087.outlook.office365.com (2a01:111:e400:7bff::40) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.56.11 via Frontend Transport; Tue, 19 Sep 2017 17:38:46 +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 BN1BFFO11FD026.mail.protection.outlook.com (10.58.144.89) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.35.14 via Frontend Transport; Tue, 19 Sep 2017 17:38:46 +0000 Received: from lb-tlvb-michal.il.qlogic.com.com (10.185.6.89) by CAEXCH02.caveonetworks.com (10.17.4.29) with Microsoft SMTP Server id 14.2.347.0; Tue, 19 Sep 2017 10:38:43 -0700 From: Michal Kalderon To: CC: , Michal Kalderon , Ariel Elior Subject: [PATCH rdma-next] RDMA/qedr: Fix rdma_type initialization Date: Tue, 19 Sep 2017 20:38:37 +0300 Message-ID: <1505842717-26646-1-git-send-email-Michal.Kalderon@cavium.com> X-Mailer: git-send-email 1.9.3 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)(376002)(346002)(2980300002)(428002)(189002)(199003)(478600001)(356003)(104016004)(2351001)(8936002)(50986999)(50466002)(16586007)(47776003)(69596002)(305945005)(48376002)(72206003)(5660300001)(2906002)(5003940100001)(4326008)(81156014)(81166006)(54906002)(101416001)(106466001)(6916009)(8676002)(6666003)(86362001)(77096006)(36756003)(316002)(105586002)(50226002)(189998001)(107886003); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR07MB492; H:CAEXCH02.caveonetworks.com; FPR:; SPF:None; PTR:50-232-66-26-static.hfc.comcastbusiness.net; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD026; 1:ERRs94xXqHxpiM4L/VPDwCxEoZARZUfq7vDEK45gtzL7cspp9FU6fdcs+t0Ul5oKBXoVQZz7U8fsJqBL1fJkTYQk8KwSXvFty4tmPsGAJ9C4iqGiyDlSuWVhy0/7gq7R X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 3036d9df-6bee-4af8-4353-08d4ff8547eb X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(300000500095)(300135000095)(300000501095)(300135300095)(22001)(300000502095)(300135100095)(2017030254152)(300000503095)(300135400095)(2017052603199)(201703131423075)(201703031133081)(201702281549075)(300000504095)(300135200095)(300000505095)(300135600095)(300000506095)(300135500095); SRVR:CO2PR07MB492; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB492; 3:4dpDplWQVfECVT6Z1bNl8krvksC1pdaRIqmgZNtN+2UmB4wrFIrniZGZcuREaNkNoyWY0+6xf3zFxbQs7TVmVLChhSUj/84by4LGGng7nZp4abEkr+80tRypq+uYqow2ABNubdn+Bsb2Zx3eLj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4RnZ5yvYGc1rAywxyPOsQ9o//nEKALXaF6ysSfwOy/QBdfrcpZQNT7KyOfTMpelQCzbXqhoMoUoNPPyqafTWL5gAP9P8Vj40UAHalmUSC2EpCSvz2MQG+1KoQquKnc/gc0F7FVTvgAODO8dhv3DvNTiso/5TBx5B86sIAPxybRpWtOkYCfV/gzT5baF/aj5ujMgCXK5bOyDeScy+MSUvhce2mO73JXGszV5OBRf/jTrseMuG7PLEletTqr80/nXH5SyUCCUBoflNzPj+nALcfLgHre3rpXLZXhcOq3Oyk/nYk0dnSnTQ X-Exchange-Antispam-Report-Test: UriScan:; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(10201501046)(100000703101)(100105400095)(3002001)(93006095)(93001095)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123564025)(20161123555025)(20161123558100)(20161123562025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CO2PR07MB492; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CO2PR07MB492; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB492; 4:eyA6rDm2YYp1412QM8Y8pQqqkiCfk4n0+Hz8RvQzYfCTPs/RVMWDnJmRbYsUiPA4i+dDVh3+ekiljx3lFk73DhMi5A0+Z6gVQGcNtwYtH9lmuXq2J7hTbtE1enjigunG+yNmQPhQJ23kFlfu+Wp5lOqLAt99lF3L4srxzSmxef2PxBPWSIF9uC1uOUTJCe5n7dIgtLjaSlSisApXlcmFN9d3gXmASWl+rayR2d2CmfoCcawHWJXjxep9xiSqQvhv X-Forefront-PRVS: 04359FAD81 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CO2PR07MB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?us-ascii?Q?e67nw9pJ4DosBL6P9G984B/ilOnpgnz5+lhcUfjvJ8oforWq1VXjhv1MdF8h?= =?us-ascii?Q?07nV/CeoZQD9R2/VBuFEwOk9MT87jfhsDHTBi4QQ=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB492; 6:EZWKCKm0kdDPLvJKE6k4lQPt2BypSY8DVM6roRYW/iA4gforQph/rvGbTGRBEH+3BYjfUCmQ0qFAylgDpzQ/KetCFj6XItAbtwdhH0CVkGZ41N/ti7t017IG2ziL47wqQgnhYzHy3URg6D//0zh+9eQePiry5qghjsG9DvWGxG2IIq5O4R38o4RIr9OAWmhd1y4qhwWlL0LIqD+ROpuCR6tow8E3jyfdwlC88FIFSeFgjvkXlMzNUBwcaX0gqPHyBQmoX0YjlT+bL1n9lgxuQFQAT8i8wL+WwWYOdRgH9xreFaQciFvy0+NLN+/et9GyIA6Ex7zaWkRky8bQEk2ARg==; 5:XFUOu5L2rxg43y+Cx6ZEru+uWFf44FVWSV6hJM2qJEtQ32YIMgrucHg4S9qVNYqt7tGa/rvuPTOFiasHymohZRhhbp0BRN05j7FVhMtczJELc6mld/icV/4EJ3w/4ouwePrKsLYvsyxPrxFpgmTEvQ==; 24:p7p2dsx7weCegnqCSBGY2sRAOnOQpwtVw0ZZURNy4TJgSKJKTsMw40GEnA/+OYABz2RHAXdeCuvDsfYt8QgTJgvsjs4rLpHrUQayQ8xmcAw=; 7:cHYnuslxcCq2j9xFo+H2xrhKAsb2iy1TerunA/pZamcfSbu/cc6qUWqXujHhlw0/PQ0cpJskKGLVuED4S7UQDtxccYCFQ45yt269kn5ObJILF98MZBP8eni/CV/VjBrVrrvnDSfx9JzG/0IjWKxwgGoNtcBlQ5Uud4mpr+/tc2x3YTLkwVUALi9viL2fB13Ve8L6+7hlnKQVT7gnVvdJLK9N4B3HgLc/3d/kwvcDGjc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Sep 2017 17:38:46.4985 (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: CO2PR07MB492 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Initialize the rdma_type (iWARP or RoCE) which is set according to device configuration in qed. Signed-off-by: Michal Kalderon Signed-off-by: Ariel Elior --- drivers/infiniband/hw/qedr/main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/infiniband/hw/qedr/main.c b/drivers/infiniband/hw/qedr/main.c index ca93171..1afc267 100644 --- a/drivers/infiniband/hw/qedr/main.c +++ b/drivers/infiniband/hw/qedr/main.c @@ -870,6 +870,7 @@ static struct qedr_dev *qedr_add(struct qed_dev *cdev, struct pci_dev *pdev, goto init_err; dev->user_dpm_enabled = dev_info.user_dpm_enabled; + dev->rdma_type = dev_info.rdma_type; dev->num_hwfns = dev_info.common.num_hwfns; dev->rdma_ctx = dev->ops->rdma_get_rdma_ctx(cdev);