From patchwork Mon Mar 5 08:50:07 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Kalderon, Michal" X-Patchwork-Id: 10258395 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 967656037E for ; Mon, 5 Mar 2018 08:50:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8440A289A1 for ; Mon, 5 Mar 2018 08:50:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 74CEC289A6; Mon, 5 Mar 2018 08:50: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.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 E38E7289A1 for ; Mon, 5 Mar 2018 08:50:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932892AbeCEIuv (ORCPT ); Mon, 5 Mar 2018 03:50:51 -0500 Received: from mail-sn1nam02on0089.outbound.protection.outlook.com ([104.47.36.89]:50432 "EHLO NAM02-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932868AbeCEIuu (ORCPT ); Mon, 5 Mar 2018 03:50:50 -0500 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=ehQ4uNgZq+VeSBOXBDIF8YO/pqellptmL0iK/0LORXg=; b=gk6KN3cCAhpTMsOIAt/u/UV8g0a33fDflVZ9WeUqGWQsMBWm+CGpjsJbmfdXz9Uyjhn4Yl3xsaME+dKOrVZQ29TjqaANgGhr2ItS5HBvwaX1B5jzQMs22E+yTTAc7xAlK1hXRmOhEE07Q0CGNoCJ9PVTZjcXFUm33ac4q+RbTSk= Received: from BYAPR07CA0004.namprd07.prod.outlook.com (2603:10b6:a02:bc::17) by BYAPR07MB4295.namprd07.prod.outlook.com (2603:10b6:a02:bf::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.548.13; Mon, 5 Mar 2018 08:50:47 +0000 Received: from BN1BFFO11FD006.protection.gbl (2a01:111:f400:7c10::1:146) by BYAPR07CA0004.outlook.office365.com (2603:10b6:a02:bc::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.548.13 via Frontend Transport; Mon, 5 Mar 2018 08:50:47 +0000 Authentication-Results: spf=fail (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: Fail (protection.outlook.com: domain of cavium.com does not designate 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 BN1BFFO11FD006.mail.protection.outlook.com (10.58.144.69) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA_P384) id 15.20.527.18 via Frontend Transport; Mon, 5 Mar 2018 08:50: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; Mon, 5 Mar 2018 00:50:44 -0800 From: Michal Kalderon To: , , CC: , Michal Kalderon , Ariel Elior Subject: [PATCH for-rc 1/5] RDMA/qedr: Fix iWARP over ipv6 address resolution Date: Mon, 5 Mar 2018 10:50:07 +0200 Message-ID: <1520239811-10934-2-git-send-email-Michal.Kalderon@cavium.com> X-Mailer: git-send-email 1.9.3 In-Reply-To: <1520239811-10934-1-git-send-email-Michal.Kalderon@cavium.com> References: <1520239811-10934-1-git-send-email-Michal.Kalderon@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)(39380400002)(376002)(346002)(39850400004)(396003)(2980300002)(1110001)(1109001)(339900001)(199004)(189003)(4326008)(2906002)(16586007)(316002)(105606002)(104016004)(26005)(186003)(77096007)(36756003)(72206003)(47776003)(59450400001)(106466001)(86362001)(69596002)(478600001)(85426001)(356003)(107886003)(2950100002)(50466002)(48376002)(6666003)(336012)(8676002)(81156014)(305945005)(54906003)(81166006)(110136005)(50226002)(8936002)(5660300001)(2201001)(76176011)(51416003); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR07MB4295; H:CAEXCH02.caveonetworks.com; FPR:; SPF:Fail; PTR:50-232-66-26-static.hfc.comcastbusiness.net; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD006; 1:upySchgnI9W+lGxPWGj3rN4VwApokze+SVVJbi0npu4mt7fMqkQmEBbph5WHoPPFYBdBsVHVX6paHEoMoZT8h5CE4HnUxbBMHBpoP1aRoBXIKvSqyIdANj8RSII63bYv X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ccfc1418-6d99-4dd5-ca66-08d58276305f X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603307)(7153060); SRVR:BYAPR07MB4295; X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4295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5zSet9/S55sY6ZICf9QeSg4o5EAo2iLrigEFS9UDwElSqYV5SjCh6pHFDF+Xn4iEEkRkV2fBxJsRqJvk3QIyFU/zByJ9ZfMF6x17LfNkFsvk1ZtLNbid7DjZJywMYfo57nvgC16kZB8/IvhaJwGMeZMpFw/gSwO5K1eopWNPbYdamgh3AtGVFht06zX6iBU4XUBLNjSoY+KwnDt0DImz2P7FOb7uB+i52acJaGkHSynpykBoXnnv2W/nF++nHTmHUbdsjHH1MSmemnKjXKH0Oi2gikMTEEW1qlwDOiokk1UG56fwxDCmFnChcrNDWBV81ZUznVRx9111jETkoJwiqyFuMV08YJIcRPtJV3L1e9dyi84sqk3kbTAnLjlvw/jyo37T49TT1Em+gQj90ZKj5QoijSjwPkpWy9S4K+VHbJjSVU53fQ9xTl3c9G3AwvO+s+pz9z+7 X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040501)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3231220)(944501244)(52105095)(3002001)(6041288)(20161123564045)(20161123562045)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(6072148)(201708071742011); SRVR:BYAPR07MB4295; BCL:0; PCL:0; RULEID:; SRVR:BYAPR07MB4295; X-Microsoft-Exchange-Diagnostics: 1; BYAPR07MB4295; 4:ZDdNmmgg/m580DcIzqk/37Eh0I5aEFLzWFGwiSm1AGR4qQpYj529mAz1z7G/P/PheF/RpiLbG3ycXUTHyXLAV4E7MZTIG5JH0fsqst1WvMkk2m3+F6sx0Rne9Fh+vpJ7uxNnQcHKZg2YW7Jb0l1JV+IhDVB2/P8yFIJF2rf8DVCqvsyLrCTrcL3uwhYtf0dTL7W1bqr9aWH+1ejAODmnb9FyhbHpKg0wovSCa2kJn5FclbFX+rFrjeqcDgia18i17RK60Kq1B/HB475+fd2WIQ== X-Forefront-PRVS: 06022AA85F X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BYAPR07MB4295; 23:n3IDW5NJ7RtpRckVdjCWlhSWFMju5yYgz0zrz9pGW?= =?us-ascii?Q?KKTy7OqhLtd1bhPCf+dp/n1CdGEUlb7ltVzFv6fjUI/jDk35j7vnFk7L8LfO?= =?us-ascii?Q?8prONXrQ+130vtls3bYB2y8NnO2X6cb5gres05jUlqFgFl/IhRnZKKNjk6J0?= =?us-ascii?Q?ZlSpX5QL+oKAYygcHZfBitcWkGeT05ngAG5u3X1oBohLysy5YIaIA2AAfEcM?= =?us-ascii?Q?zSqKn0Xzk4t1cLzQVdq6Q/NKJTwmWxNjPng9mjVo/a0I7gq7oAVPI1mQQn39?= =?us-ascii?Q?5ac92G4kIp8KuRkof1c5+hYvEPm92Ck4+/mNXWwF+fTj8yfVFczApBstpDuh?= =?us-ascii?Q?PU/yBFQVR+YrUpZH9igqf6uxd749z/mEbTFSaX7dLaxsVZE2CgVtMJa6iXdw?= =?us-ascii?Q?FNtM3Ep5TeyWkKz+TwukFzWl9eRI+CDjEyrh5XptIk9Qv6jqq0gmvpi9W+Be?= =?us-ascii?Q?13mAB3Iu945040q/uMgHq2I2Xcda3MmaERE4OgWzKBvL4qn74ZBs39n5wKz1?= =?us-ascii?Q?0xMHLrA66Ns3SuiQdbVoqYJCsUopVrmwIgMfaQkNDc8y42GKmtnUtKZ2hdFZ?= =?us-ascii?Q?Em4mJ81UTiqt+F3YWmIZKqPC5dWJ7y/hGqER7zEYwohyKJfpNB95b804WRWf?= =?us-ascii?Q?qtfOMJBoppLA6EFMC2sBbYZxs835Ir0tRJvzBcpLlmIbT4Mh+AzLFmoSte90?= =?us-ascii?Q?KR5m0oPFrMbJDyoKSAAq8Cz6Pxlfp9nb4HT8E46jbPdk+ULizDUtADVuPyR2?= =?us-ascii?Q?6IuYj4+MRD66O4ixmtaMBZF9DLTea3dwr1S70JH5qDybJ/gM1RUhvs3OJFB1?= =?us-ascii?Q?G5ajLgiq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cyYTSP7Y9zjzNx7TBiMtDnmlZSK1cVek3CaMTUFk9HoRycacfY+Ajw2A0+u0FgK951EqX04z0A7fD1WfcxdzA=; 24:HP9uWRFVrSVlTsfK87OQiYExnkire9t40E8vqnXpz0IL/1MT5cA7PAj1bJblA3Alb+X+QDE6qy5nikNtBYQ7V4x/hILz49J9zENVpxA81GQ=; 7:07/DQHVx6vpVo0kL1nPwYEYcFhZlDbLtMBI1kO1Vk7cO2NkZM9XsV64jzRsdI5ttAJHYwHy3hYwznGMZcYEzjWrJh6vCNCQe4x6K+sCNRJjgT3eXsbCcIjPwpKehcqk3q4WLc0fg8G4XtnIxvONbWb/1n5x1RYEpqgH1mXO8p8odQuV1DbCzXcz75POoIhSgHU/BCSKYB7S5C21cszrdzLs9w7c+Ph6j4d8YNNinQSbPLxbU8XfjcOtLIxED8PUJ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 05 Mar 2018 08:50:46.8697 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ccfc1418-6d99-4dd5-ca66-08d58276305f 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: BYAPR07MB4295 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 Use device network namespaces instead of init_net Signed-off-by: Michal Kalderon Signed-off-by: Ariel Elior --- drivers/infiniband/hw/qedr/qedr_iw_cm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/infiniband/hw/qedr/qedr_iw_cm.c b/drivers/infiniband/hw/qedr/qedr_iw_cm.c index 478b731..28183ea 100644 --- a/drivers/infiniband/hw/qedr/qedr_iw_cm.c +++ b/drivers/infiniband/hw/qedr/qedr_iw_cm.c @@ -447,7 +447,7 @@ qedr_addr6_resolve(struct qedr_dev *dev, fl6.daddr = dst_in->sin6_addr; fl6.saddr = src_in->sin6_addr; - dst = ip6_route_output(&init_net, NULL, &fl6); + dst = ip6_route_output(dev_net(dev->ndev), NULL, &fl6); if ((!dst) || dst->error) { if (dst) {