From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0063.outbound.protection.outlook.com [104.47.2.63]) by dpdk.org (Postfix) with ESMTP id 7D1B2271 for ; Sat, 20 Jan 2018 22:24:51 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Mellanox.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=H/2BT2STceBrWf+PIE7CRpN1ciPQZssGx7a5PgzfXlc=; b=u6CX1PL7DnGOQihnLDWWnE3K8NMUIpVplI/Xt9PuL5kVBC1piMcvmPL8U6wL5bOb6eI1jmv7G1wzadaqV33WS4fajZaabmPvVvA/HuePbUWuZ7PKnUYzTnGqXSZ/W35IrDoEuwc6sonNUreOPHXh1wKrbKFo2kKCyLMYY8/YtHI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=matan@mellanox.com; Received: from mellanox.com (37.142.13.130) by HE1PR0502MB3804.eurprd05.prod.outlook.com (2603:10a6:7:86::30) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.428.17; Sat, 20 Jan 2018 21:24:48 +0000 From: Matan Azrad To: Thomas Monjalon , Gaetan Rivet , Jingjing Wu Cc: dev@dpdk.org, Neil Horman , Bruce Richardson , Konstantin Ananyev Date: Sat, 20 Jan 2018 21:24:26 +0000 Message-Id: <1516483468-9048-6-git-send-email-matan@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1516483468-9048-1-git-send-email-matan@mellanox.com> References: <1516293317-30748-1-git-send-email-matan@mellanox.com> <1516483468-9048-1-git-send-email-matan@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: HE1PR0402CA0047.eurprd04.prod.outlook.com (2603:10a6:7:7c::36) To HE1PR0502MB3804.eurprd05.prod.outlook.com (2603:10a6:7:86::30) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ce574af8-005f-4729-4da6-08d5604c3d01 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(48565401081)(2017052603307)(7153060)(7193020); SRVR:HE1PR0502MB3804; X-Microsoft-Exchange-Diagnostics: 1; HE1PR0502MB3804; 3:iuYInqza8nVc3fXWSx9Rqhmdv+Rtd5XEgeebycEomYeAC2aty2oquBkzmM0Cmdv1Upn6AIRL47jpxV0ToRHd7x1bVkKtLodACn6M3Ymfe2iOY0wH5kfQqImN0PolFzVxVaCBcLaSrj6sCPM+Re1XC3kRvlaVx+Nn+UrKgMa8q90D9oIl35/aqIDTKX/GN5ZsKpHPUtMRIIPUcFxmryg59cTc9ATz7eecfn+OcXvBL7Bh3a2JJfHgrd49ZdXgjcd4; 25:AeuK8VTxndYKxcCjMj/m+Q06AmM1e15Zt7ay64QOo4NVzjscOwQsXAsXOfpEo9xVnO4A8b84ql8Fg2Jv0b2Jo46+do7vXevcDMTokSJIgNWwtOeXsONazP0hcaSU1JGkyjmRpiX5o2IHUfaY7Ln5WhF4btNDf+wjshJKqYrxOP2H5cIzWHWdT1gHwkQs5+wQoIIVGn9e22S6CYjAtSDwUuuBU047sJyH7UP+GkVoh5Z4Jte/b54DhTvYIWvJRSdnXwOdoMTaEA7yu+YAlNKrIVisscmbaT0++CcWRhIXSLF9HIkyS6LQDshN72PtzGtxBaLhozc7Adnbz84TQaRCCA==; 31:kbVz6wJLADGehJlqUzGLg8etbd/l9RQ2Ys5SoeE/laVWklvCkLVZsvkOc4mH7cpjReQdDqcyGpnyEHImMbnsYqZHAj8DRHWCX8/HJWttJYlObhZydtfbGdvs36TvNYpxkYuMWTZx6atg4tzXXeUbveJIAuSJi9Oce6nj23LlwMpJ/a7gwRrzM4D0UwxIXtux3+d0JxIIiDG9W8s1PcA7XtDWStB00k8tsI21cj/posI= X-MS-TrafficTypeDiagnostic: HE1PR0502MB3804: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; HE1PR0502MB3804; 20:roVeT2PlQ8P8Op6Ym71WdycaQhmve2s6t6CqC7p/j1s+335QQsl3leR3z/72xj8VmEF2SNjuy8XpmGvCS2bTYVmumm62a9MJBP+TSjUtO5D2+2wLpQFTLXOcAkpMXzZSBhroeG25gGyzkaeX2Snq2FpqSIB0fsnDtWYJ9JKaM3suMgcT10uUGaEYaWeg0HTE/aumZK9hWEcx1yke1bPnparAOBSLK2ElQA/laK1Ca+tkOAn8acFLIbeM8K0WoStDqzJ9lPSR5Vwv+ZgCS8YMmzTL9kvGJdNOaZ6wECgHKXoOplSbWMewK5A2ASd+tkyZmygA+NybNBZi3niGxTos7SPwOP7a5QoIxFTDpg7kyRZbqVgRZr03H86oHvoTGdzsXzWmVaIgY+Uyj/7pXqMUiAN9xOoSgafKG50YB2qi16JqT1DJ0ydaAqAyJVN62zUIBuI9gFp2HrbexefxcWqhKcsWot2L4vglzR81xKQssg7GHTds5LTL81C9ot02k9dH; 4:4ZdVZHKNKETancEVRUQaqhdyij1PQuOUQvpk9ncHGX5N+csTXiKA6tLibW3/34nZVeogd6IlaSqWjIKtvUyQGLZ5enMryvEak1w+kbe4OGPanx/5d40rP5C8JLtp+Kpaqw0B8ibqF6ct1JxwtMoMSoEjIwfx8z0rGMNHAzKZdWSi7pQjIr/Qes5NECsdpsQhOlkfvJC8y4HQWKKtGYl+BBZflBXIEO5AjWfJt8cl0kVUboTTEiRaximQwrNpNf8/u8p5QLKBgBmeyaH4sykZug== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(8121501046)(5005006)(3231023)(2400081)(944501161)(3002001)(93006095)(93001095)(10201501046)(6055026)(6041288)(20161123562045)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(6072148)(201708071742011); SRVR:HE1PR0502MB3804; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:HE1PR0502MB3804; X-Forefront-PRVS: 0558D3C5AC X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(39380400002)(396003)(376002)(366004)(346002)(199004)(189003)(97736004)(53936002)(26005)(8676002)(305945005)(66066001)(2950100002)(6666003)(69596002)(86362001)(55016002)(575784001)(68736007)(50466002)(4720700003)(21086003)(48376002)(6116002)(50226002)(478600001)(25786009)(36756003)(2906002)(5660300001)(4326008)(47776003)(110136005)(52116002)(54906003)(33026002)(105586002)(8936002)(81166006)(386003)(7736002)(106356001)(316002)(59450400001)(81156014)(16526018)(7696005)(51416003)(76176011)(3846002)(16586007); DIR:OUT; SFP:1101; SCL:1; SRVR:HE1PR0502MB3804; H:mellanox.com; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: mellanox.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR0502MB3804; 23:R5mAKUYFrFNByQ1+5jdYpRnV6hMdF5za6qX9+4m?= =?us-ascii?Q?4eT0gawYdzpLQfAjJkMLu0lCRuvPen+QRvv9vtI8utfX0xcJBVT/1AOqhZmj?= =?us-ascii?Q?fPh8jDNvqPyHDt8P9BpRv5Fna+qhBCKDtS7DTDRrBhhzZoqXTy+nF6RbF1z+?= =?us-ascii?Q?7jwdA92FQjW4wnlkwss1+JhQOWodreEKMbD5+GLtv/gdO+Sy49uUtsvG8ihs?= =?us-ascii?Q?E6KdJpfSTJwNzX2FQViQdtHpSalCXRzJ2m+FqugLeatl34NXfKfzEqzmAa4/?= =?us-ascii?Q?z5Ywr/vJjWQom98z0V1R/3CaiVgjuXyx7kFt9R+1xbLOOog/lHCeXXbBGG/z?= =?us-ascii?Q?E9Vu6L1qKXe43AsvLEcvP3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D?= X-Microsoft-Exchange-Diagnostics: 1; HE1PR0502MB3804; 6:w+m5iaSfSlCVTyVQkrZ9EU5U6yj7RUQHwzrs6c2aWrmfF8x8yi/wQvZpVkzBp5I3kPM9c44Q6iY+8ZmKnxk5osgq5RckcMk4z7eqf+/MSJEiGzZ545R9ZUSBWjkldZmQWCXmImXyxtV3wqyoGOVezodv+Ok1a6o5xyKAGWuXBRZWUOVh0ImFOlYQLDlfbE89F2vpCWd+pf3ArSqX0HaMjcjP+cXhTqln87y0Zasfg8ujhBbFnM/0D+0GZERt6MTVdpugQDbrYW2xjjNFkxNyRNFNO9/h8d8KHcCR2fZPy1okW3Y7hLVtx598GXDDvgMhbUAZ8kAEzPkytS/d9m3QJVIbtcayOKT3Ap22+AZs4o4=; 5:BCGK4jLQCnqgcoTKmdzfSs4LFuVKeBBb7e3gEzX0Xsv63E2JzEg+s3cbTvRMPL6CwO/oBqQMbuLALKGQ3nJISSiHix0TfTcNxrhCeYdXB1L6tHhE+mZexxxLVVwjYsoTSzy+qE+MYRdQV4p0LqLWv3sZrVLZDfhbMFrQcO9Xw0A=; 24:e8jplwRh63BcMxDhDPUwJ+17Q+fNhIxh6fwzi6RVNoMNP0sHYpQvELDHzz7r3aahlG9zsdbzQDhwBofWaVATGPx+WVp1lYTVj7bwxbIdNCA=; 7:X+lq2yxVWvGto+hl7NcDiiIW+unOYOBq58MWkHS6UAKySSlBNsBX3o2m2F5Sx2V9dy0omAkKhfv3fGpSrjo5+3iGm7/nHx7HkII62clx8BHleWIGPNhFaOFGKqvUyBx4h0fjz6avTHti6OPkpYzgNr36Q7zzTt3NWncUaFMzBCg/UXppdM+40uMyRtz2Ly5c6QqCHTttflVICu0h+7alU9YRRygFcYDT3KuNWPh7aeboV+mgF3yB5QrDGq9Xd42s SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 20 Jan 2018 21:24:48.8038 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ce574af8-005f-4729-4da6-08d5604c3d01 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0502MB3804 Subject: [dpdk-dev] [PATCH v4 5/7] net/failsafe: free an eth port by a dedicated API X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Jan 2018 21:24:51 -0000 Call dedicated ethdev API to free port in remove time as was done in other fail-safe places. Signed-off-by: Matan Azrad Acked-by: Gaetan Rivet --- drivers/net/failsafe/failsafe_ether.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/failsafe/failsafe_ether.c b/drivers/net/failsafe/failsafe_ether.c index 8a4cacf..e9b0cfe 100644 --- a/drivers/net/failsafe/failsafe_ether.c +++ b/drivers/net/failsafe/failsafe_ether.c @@ -297,7 +297,7 @@ ERROR("Bus detach failed for sub_device %u", SUB_ID(sdev)); } else { - ETH(sdev)->state = RTE_ETH_DEV_UNUSED; + rte_eth_dev_release_port(ETH(sdev)); } sdev->state = DEV_PARSED; /* fallthrough */ -- 1.8.3.1