From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10056.outbound.protection.outlook.com [40.107.1.56]) by dpdk.org (Postfix) with ESMTP id 96A5F1B362 for ; Thu, 18 Jan 2018 17:35:39 +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=rksd3FdwCImlhs+FraiQUocdZIupNnL6y2CMyVolCKxZZi7p5XDwy2AWiCpGJKSI+yqjo6gfvo/FffxdVc2pSDXZTdeXoN8dTeqr+XyzrucsdtJYKoaPC2abcjVsejTbb3MhO01mulDeSMcl1h0KzeP/WdVhxtuifO91M/olVT8= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=matan@mellanox.com; Received: from mellanox.com (37.142.13.130) by VI1PR0502MB3806.eurprd05.prod.outlook.com (2603:10a6:803:12::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.407.7; Thu, 18 Jan 2018 16:35:37 +0000 From: Matan Azrad To: Thomas Monjalon , Gaetan Rivet , Jingjing Wu Cc: dev@dpdk.org, Neil Horman , Bruce Richardson , Konstantin Ananyev Date: Thu, 18 Jan 2018 16:35:15 +0000 Message-Id: <1516293317-30748-6-git-send-email-matan@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1516293317-30748-1-git-send-email-matan@mellanox.com> References: <1515318351-4756-1-git-send-email-matan@mellanox.com> <1516293317-30748-1-git-send-email-matan@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: VI1PR0802CA0021.eurprd08.prod.outlook.com (2603:10a6:800:aa::31) To VI1PR0502MB3806.eurprd05.prod.outlook.com (2603:10a6:803:12::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 78018157-4024-4237-08f8-08d55e9181b3 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(48565401081)(2017052603307)(7153060)(7193020); SRVR:VI1PR0502MB3806; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0502MB3806; 3:qoLvL7Pb1yGyFrTFf6KY12dZ3RBpVecLPH6/KXhz+U5H+Z1yX1ImnQqSC075oaDqdDgCirisGP3UWjjSAZBocSDZBZsdGilPjhiPbxz0D9xeq70JtwPHrLRJsX5y2qjJ5CyzYSOaxREYB3AUcIQslzmxQT5nH57ncbpQMi8Dw4JDrr2EhZfkakqzhSXHT5YLF50pqsewKUNP+tqxlOie1GXEO5hpKf+eD6UhPQjRcBZafW3yQxkucCtjnkMuPczU; 25:d4+EL5o6cKyqa4AgV77STpq6ThwLpDE9pYpb/pVP5NtGTycokAGESG0buqSRzWEluRs3oo4YbRxBitI41EaylzM39okqz8b0p4eIx+7yQasWUZytnigdtHlWjl19yAhMGjEgeWvjHjh5B5Ubls9rL8khGM1vNeUjgkm8Fx77oS07T7iCXnRvZVqHrxqziYplpHiRB9Yk3Dh6wGdTud9ozivd8BdhobZTuuGzIEstQ3UI6mhQZf59y7juJ9XrOt/HRXQ5UcfqBq7+RIdFT6lCCGRTfOOWfYB0aUt7ZrMlnHJaIb06tZBhiDWwmuPxxVQD1hNtKhV/XW2N2QYq1RYIRw==; 31:lPqB2hhcEQhfnd1wT+LqXepNx/e9uO83zP30kUIwn3moH4IzidnPs2jDh+UBSOOmVnHG/4fcdEImbwrmzxeVolPpe+VUGXOrQBSlkcbkCAzOZWukajiugXOlNwPVzbuHdQQg9lbspJ3UPNploH6f/4rzXnr4opKMkiaA0MtzneLGpj4KYRxbHpdiEjxcIE/DYjoCLzGju/zlFDKbg0DoNLsrHud9ZvntHzcUM7NV0oc= X-MS-TrafficTypeDiagnostic: VI1PR0502MB3806: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; VI1PR0502MB3806; 20:zNtqQsH1C1HZcLmJmYUyWUFdFW6znirIxqiqpcrpFIToi4qh072TTpQlRf+H6OyIxf1cYlElbyiJqo14ea3GUObO3mFJ/9IHv0Mvg71r5m8ZaJ6X7ISDvgT2s9uGCL7UBV2Gi1evBfh3lFaQsvMIRsYIT/dK6krYwW5EzlQ3VnXp3z6CynQgkHf1BuRrAk/LFfJXHna3Xck6ReiNa1xXxLA8E0eqg15LTJC1JXCKn+Tsf6XDxq/jS33I7ENo2zoqGz6DfSUtGd/1puONnzp0pQLlLKICSm/EQrsKh+26tYcyugijl8TfZIy034r+uTF4HWNGSyUUXl6DiWZewKA3yFR4T4a6DASlUt8fhBduP3D45LnpOVreV8fNs4LumGLwdd6g6yFWnnf2KnwiOtKo8EyC0peH83OeR4A8psVxpi2r2HKGVL7MmhREYwCU8J/+glKviyxwRNuZSzMylpgxN8s30pw90gSE6yDCKndztQkiuXk37RPW/REivSjN2E1A; 4:aWc8gJ0/7PTG78Snyp85STPbV2DGizlG9epJWdDDP8QFp8GZ29I81KzTlbQC72Q6RaWpz+OWH9qHuuler6vTg0OpcyhDibRsmLK4MhUiXa36pQFG15Fi7XpcUYtPlHChDMneeTrEbMfKiWtLWuUi0yZX8K4undub0Ogx1NQycsGzC2QQAktiykoZ2J/Nu3AoTUY6lPLKnGr62vLfI/SJSDPk9U2eRBoHzRyWT8jXuDbzNOTuTxdlMVmZo7e3LDvAPBlpcoGuZoChUPwlfXRxtg== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040470)(2401047)(8121501046)(5005006)(93006095)(93001095)(10201501046)(3002001)(3231023)(2400064)(944501161)(6055026)(6041268)(20161123562045)(20161123558120)(20161123564045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011); SRVR:VI1PR0502MB3806; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:VI1PR0502MB3806; X-Forefront-PRVS: 05568D1FF7 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39860400002)(396003)(376002)(39380400002)(366004)(189003)(199004)(2950100002)(47776003)(4720700003)(478600001)(21086003)(50466002)(86362001)(106356001)(575784001)(7736002)(16586007)(76176011)(305945005)(59450400001)(36756003)(3846002)(25786009)(386003)(52116002)(55016002)(7696005)(4326008)(97736004)(33026002)(51416003)(54906003)(53936002)(68736007)(16526018)(6116002)(316002)(105586002)(110136005)(5660300001)(2906002)(6666003)(66066001)(50226002)(81156014)(81166006)(48376002)(69596002)(8676002)(26005)(8936002); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0502MB3806; H:mellanox.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; VI1PR0502MB3806; 23:G02pfeUzbt4PoJ09l3XLnhBE1P235qA2KnHClk1?= =?us-ascii?Q?Qt4MD74IEjuEXrZtupnlysEmqgKdItxse+Fs9z+9bRARTHcWqHLXKVk+wT3j?= =?us-ascii?Q?ZPhUIUa7PIykLbb/b1t5etc4AKFZYvGmTA+zokkkemNqyefyp8MZKv8j87LA?= =?us-ascii?Q?qSCR5p9/WqU68z+Z8beNvDxfn2EK6wa0GQnvBeedWPX4Mfoz0BSjdmN8TnLL?= =?us-ascii?Q?QQ1WPq621ZCp8Mld8GAVx242zCK2Gkc0rKjPyAEODvJ/ZEOoI9Ug6C5gtsGI?= =?us-ascii?Q?rxWkHcNFCDCAh22KzrxdkFxbCNjDN5eH6X0Lo/LivnCPcxF3czJSKiN2yted?= =?us-ascii?Q?wVHv1XjaE7m3DckNzQkEZh1V3L3t1/dJKZoVGhIuRo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ft-Exchange-Diagnostics: 1; VI1PR0502MB3806; 6:RfmrTq4vZDHxnoBlWps7/92EaptBi42Qw+0El9a3u0yBrpbLECT3LSMfl5/XyOMbThHnuR14Q4CHm84GQmFkvrPzK+U39IaDSrtJiaCjGkYGkuhk65M4AVyLP1atwvq1n1bkoYWwNSzPQNERynQcpHIdHiqvoLeo7T3SZ0+SD8/nlcIvrA6OWFYvq9Iry3KTPhVFvt++sqk2euHzpuZ4bpOZ7T6G+oKJ7gs7UL82pf+j9G26cpAanuH5YExI4qiOzg3FTZUARSPTTLHW8xHCXBf5g1N3j+psaKKzoH7AJ2f0rWZ7BBgVuJs0ovX3vlK6XuBFGOgwbXHy7R2Dv277fJrU3MOdyPE6Cgn5dE9BfBc=; 5:fYch9/wurd0nwTRmYZV3KTWn388IaNTqvhDZ/P9ZqK67er96Z9jcIRkzEsIlbKT2ULVT/8D3cmXrYheuD1vgVPJBWYXvz4RumpcK4suz2TNDakFCfRSc7fRmLQ1DUHhhC1ke58GA7JB0foymd5TT+C3B1uzAl3qF61q7rnRdVTQ=; 24:DpIAJvO1+nlMTM0MyHzz3rufdpv+e98ozsP+oCNM0yaZ+fjUK2FXx8eacBJSVdd6T8hjncHXeG/nW85QabMisSxyJZj+0R1326L6wg0UQk4=; 7:5HVghfMVEpzDbS+2jUvvgPpdMeqMYExpPWURuG7wmpIP5EDJK7VRKOMTa8hCQHZU6IGMjmnC/+r8E1LMpVwFtK6FKq6vQHIYdt8RXwOAOPX9iQPDw17aJ/UgFO26wj2jUisvB/VtgndDi3iJUwzd/fyaRctEUetPVTwHLHidxk9hZkaZpIqrifWBezcWkjwi6dJun8Eu2GazYfDH6qpAxie5r7fwwlMrso9Yf9ULL8AxsoP84ZXJPom/FeeXp7ry SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Jan 2018 16:35:37.4556 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 78018157-4024-4237-08f8-08d55e9181b3 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0502MB3806 Subject: [dpdk-dev] [PATCH v3 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: Thu, 18 Jan 2018 16:35:39 -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