From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30067.outbound.protection.outlook.com [40.107.3.67]) by dpdk.org (Postfix) with ESMTP id AFC873255 for ; Tue, 28 Nov 2017 12:58:29 +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=J4A2ukCeI2PvzROsVbdCFIa69oG0hYNdflH+4fI6kSM=; b=RdrxI0tNBx7w+q3qrTcdfn3lp9IfX2zJ1C3KPYUbPRcNgSKdwB5h4Ip2oXpzSYqllza6mUOFPCalsw6xH3KmAS1ILRN5eB8M/DNcW4jMdyiaaiUR77mGKkXYSBodCWXuPtcm9vd84JFRUTE4HDUyJDweFCTrJLNj9MIonFLwYC4= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=matan@mellanox.com; Received: from mellanox.com (37.142.13.130) by VI1PR0502MB3663.eurprd05.prod.outlook.com (2603:10a6:803:f::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.260.4; Tue, 28 Nov 2017 11:58:27 +0000 From: Matan Azrad To: Thomas Monjalon , Gaetan Rivet , Jingjing Wu Cc: dev@dpdk.org Date: Tue, 28 Nov 2017 11:57:59 +0000 Message-Id: <1511870281-15282-4-git-send-email-matan@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1511870281-15282-1-git-send-email-matan@mellanox.com> References: <1511870281-15282-1-git-send-email-matan@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: VI1PR0801CA0078.eurprd08.prod.outlook.com (2603:10a6:800:7d::22) To VI1PR0502MB3663.eurprd05.prod.outlook.com (2603:10a6:803:f::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 25d3dbb2-1b57-4441-fb24-08d536575683 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(5600026)(4604075)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(48565401081)(2017052603258); SRVR:VI1PR0502MB3663; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0502MB3663; 3:ObTlkSqaxF+Cw0mu2ERZ6uaE6AY8EskrKQ6OgQc4XPGfYyTtIKP9wqzEtbQBVzhK2Ist5ocoDsV2ivnMQEBWxXbezfSY9nyrgww96+oH87I3EDC77Chn/AfmYTwwkLY1GinnRWecq52gtC4CtTRCn48u/k4ke5EeNmRpmLUyXGnXGuf55K40pY2E2+VbWdPksTOsM6M8np0p2iJyRxoeZep/K3mt6qAftk7KskFnNjLcF9mJUqe/GiLxA4rHtB0p; 25:6lh9tiKnRFoI/UV6vneeJRosrOpULaylBkMlo6iNCJwTVSjVmnb0vGj3rlYo6FEbNXBea8og4jMJhXH7uFM89zFm0Ge+YIAV1VXL7VWL8ZyfROA1v5CEIB2rGZcY2t4MGJRYcEUNVRxj9+TNNArKrxNOhD/qqtFgZ8j+ORevAjMpgOqs8eEtLswcoq3Ogsthtb71IAEnsHf6rjEQfoK92zCj9qfrlk6Kg0EJxM89T9AChJ4aSgxez4hQANu9ROtT4j0vtXwpJMSOXvFq4aFVi6JzHB/jklVl9kegPNjiAxtA6SVwHnq5pbak4XcawDkrjdYueWkiy5WelO8pj8kV0+vOXq95evYrYuDinDB1wR0=; 31:hjUiHtHcKmhy4MH2Fpltpah6e+hLRI7sNDLBHnsePfmxDYHehSgLmBkec3kErG7BzTekkc4FYTM/OAvZS0WP7qJJyrehs7Nyu8XD9jWkbXhHUx6X3KYdRTE8CI7cPiArw1JvkycJEGlvy1V03VjXvcQrH4XH74ch2G+Jo9iQqjwY2oHY8HUN3DjaybV3qpgsIKUgD4hr8MUryDKiDsYiGjkcBemEQHApxvq8ha/3ibo= X-MS-TrafficTypeDiagnostic: VI1PR0502MB3663: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; VI1PR0502MB3663; 20:/sIm+uLWXtPfumj/GEWZqSIj+zUfg5oXw7OAc0jKhCq9dP2OMdyrXn91EFQE1dfKAkGqcbwX2+oc38IHz6mpd6M7yLjF7OHB/uLF1JU057tpHacFJTSsylvtD6AJi8jxV+ZDYbNMG7g54Nku8anb4khhaPPtVrUtLrHwvWDQC6wwcmorWYDMfwOTXnkulP5Bv2Rn7jYktVRHA1eagcIVD6Ns7klSsQSk3RWiy12lP07v3ZXhjOmFow7zdOeuFVVLPD7FZqtRbScRj/Rfpiiz9udw4cdNT21dvGWdkm7+TiqtRx7iCCX/1hVvNvFLC5M1bW77QYjWElisPEbL2SnDAUctkXZfC2Zgp39lwsNhi4Ze7mCgnQtQ9aIGlAPj8NmyQ9i9HwNh8bbKBRmk5r5vjTT8VpUGgF4N5pwA1jFmDFv9qn/IrQOdMfey4Q9vOgqrDSASE8lxkjj3m3ezXH+29UtEfXnOLPePU1erpkNDm7SliEyaByw1NTmStF4/SjF4; 4:BiNwmQXgh3rpu3/j+2MMAk12/XWSCJMQZHfvq1qVU8sxE+aJB6VvklVtXlHBPnXGx1m6z6vDmsZiouuU1fPDXMd5GCidbibmxWR/fiuzysqx2SHHsAwUoJekY61dP+uhXnCex11RaBKUHsusMw/XLCFP5mNCmq71LYpwleq33YphesdBs84rtJ5eQfvD4G026EwNWBRTx83gofQICK9kByR1ZyiFp7DCh2w1VBLU15BNOV4Sdw4e1gMDJgwFsPYYkVuTZ1ASDagah0fmpfjhUA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040450)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231022)(6055026)(6041248)(20161123564025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123558100)(20161123562025)(20161123560025)(6072148)(201708071742011); SRVR:VI1PR0502MB3663; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:VI1PR0502MB3663; X-Forefront-PRVS: 0505147DDB X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(39860400002)(346002)(366004)(199003)(189002)(4720700003)(50226002)(189998001)(8936002)(3846002)(97736004)(110136005)(2950100002)(6666003)(6116002)(47776003)(316002)(5660300001)(16586007)(50986999)(105586002)(305945005)(76176999)(16526018)(106356001)(66066001)(21086003)(81156014)(69596002)(48376002)(50466002)(101416001)(4326008)(52116002)(55016002)(7696005)(25786009)(2906002)(51416003)(8676002)(33646002)(53936002)(68736007)(36756003)(86362001)(478600001)(33026002)(7736002)(81166006); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0502MB3663; 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; VI1PR0502MB3663; 23:j6SOkMhKK6KtKAw483hhd4bB61h55X4/MbczBxj?= =?us-ascii?Q?QGEjxUjl4/raQv4gQiFq7qnsdK5TGdP2cQs/lKx8gkcQHGaCX7+tPNGBB5s2?= =?us-ascii?Q?cqz5HMU2F4Kx3LV/APp94ygO2EEmQXGFD+WAyoKDBIdezlXwfMmlM1xXfVax?= =?us-ascii?Q?HY0oSLeUau/K21RjWkHJ3w3a/QM+RNtFZ4ZWqG9EmEcGFlMh0dReMp4PugAz?= =?us-ascii?Q?x8L4MH1uNsxLiWUbcPOoKk+wGnTmZMGVNEBRH6HqiPbTBmGyWpO+rxXzvhex?= =?us-ascii?Q?4UdhrfYHKU+2P1rCkzmytmpSu72wd3orFGtf4Qo+iZDtjReeBxB6qIEz5G9k?= =?us-ascii?Q?Bc4OOuT15xFWJUp0VFac9QLDuvRAqzQZM1XEkelHUcY2MGMKKVprrTb9ZKpm?= =?us-ascii?Q?3pTulygYcngbjoYKCgS44vk524+/MvrgGePocr411L4VEpAm7GYp19+9Y8nb?= =?us-ascii?Q?yobRnOACVn8EYbbyqy+gPXDVGY8qAUW0irHfolPymgcAPQUTPYRIb4HpC+RP?= =?us-ascii?Q?fMYBP6OV7h/jm3kzkoJel03dpleav0ptGdRNaDrZWxKZWXotQHk+I1wohDIL?= =?us-ascii?Q?p4e3PM62DN8ydPt+rTK9CHIabeVIMzj1MzQY5Vq3pTc1vewPuFFFIWsJWXxn?= =?us-ascii?Q?8Kx/6dyR15A+Tx8n5DwoXeOY89qNvi8QSrAfv4eWmQ1W4leYJKMWnoupXW2i?= =?us-ascii?Q?kVxCgiTJ0jZn/4e2g/r679Jo0ctBiGNsOr+qIF4lF3Io/JRcLtU8xK3IwOS+?= =?us-ascii?Q?G3O+SGraYw3/05DAy5k9E6XQmNEBem9Hy+8vrVRa1l8JRUcdX4KamoZaiByB?= =?us-ascii?Q?Z8EeIu7au5/KuI/XZChk6L1hcdtQUVg7icr0YimRhVyijAdVvmDN7WENCaR+?= =?us-ascii?Q?aLrzhafOaMnp/5x8nuyKILCmsTUu9PSHH0qnPn9mC0w2tXWtKQtbuOwqufpW?= =?us-ascii?Q?ykR18aO/TyywOw09Y7gfXIA5IzrYW5hCXsjeGzebD2SnFXOfUBrrid2sRQQg?= =?us-ascii?Q?FOcXjss/D81AChmpSztrNWL6BquO2stR/CT5HJLbZPZm3KuDB5HgrFMjOA3K?= =?us-ascii?Q?f2bbIma4KWt/GpIW22+Nhj+2w3mJLO849SidAEpRUzAxLTX/ByVdYVs8hYPL?= =?us-ascii?Q?+aWn0uVgDEAZb5sgEnMTH3Sg3SSoHtnwkpc8YI1GvuqKLXJx1jXjzctDJGO/?= =?us-ascii?Q?fMeW83oIhXuZZnQQ=3D?= X-Microsoft-Exchange-Diagnostics: 1; VI1PR0502MB3663; 6:i6Mima3w/6IIoDdetTf7Jkq+el9HlMkppNCu0W+B4Z5Pi8mY7Yzy5HjN/MurExAId9ukV4AiE5JwZZlNbvPST+XvhL+O8NSrkZzwfmm1cWCBebybpDCYxkBcxqebsj1PGd7f0RY3Db4pD7WuZ0doNCWzrTkrEin1fDSV3a0W7OrrIePMe03MlH7k9Q6+5MUTdfDlhdoj+3809C5q/zpKQa46E2LLziNUwveF64TBYZItOEGlrh2Q3PWHrNwS3jwDygOYIH6A2z5Y1grUZqbOxGJPNcnLKtVxo8R+nGoAWhisdDM337sK0YudEaTNPDAOsT6cQwHepRZ2HnMb8LADd3u8TjFtPkjySzTVt8iIifs=; 5:uf0rST3P2mg8FcpnZd8mjT/9Dn1wQO61Np8e4F1xHZfgwexaq7Trcjyri93djb7r1qoiTsfhxz4R5lb8etI4BqKQ2C7dtVCfsykA3PRko/XAP6xu+LmAWnVH5KozrORiQVlDMSymA7kZL9PiJ1K0YOJuZiocqwtrGj0Ec2xVgJ0=; 24:kqfCm14AV4v5u7mJE8vWe0pss80IVv7n7FbUydGjKxL5pHm/Z6u4Kdfqf1AawKdE/OGZp618fr2/IIfsqVyzyQ5zziI51L2mAjNaDhyOUuM=; 7:/9GGVe3x2pkkQpoAJgKeLHttFv0jVVd7Oo9RbRap/oV5oJdp2wLq5s8cg0R7kY3w0LhQwA9Q8NBazfQdt3iGRoGqM7XOFYcK1hHQIQ6nHFIAZ13krcm+fu2ybyXoKSnHyGxs+/ij4p4/U5C6Z5ErzT2oBsE5d33G2om8cHRSsWBEv0dvag+VgH+4bUaQK0RO4yC4Oi4pjuRvzwKJbE9I8VTGhBx1ydu2+2/F/F2e619wSfpf8TibTV+GQzegYDnG SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 28 Nov 2017 11:58:27.7619 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 25d3dbb2-1b57-4441-fb24-08d536575683 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0502MB3663 Subject: [dpdk-dev] [PATCH 3/5] 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: Tue, 28 Nov 2017 11:58:30 -0000 Call dedicated ethdev API to free port in remove time as was done in other fail-safe places. Signed-off-by: Matan Azrad --- 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 21392e5..f72f44f 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