From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0083.outbound.protection.outlook.com [104.47.0.83]) by dpdk.org (Postfix) with ESMTP id 6C67B1B1AB for ; Sun, 7 Jan 2018 10:46:31 +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=rnGyeaeiG+CvUCWMBebfBkHcXZK521s8cecaoadyAW37hQ6FwZPCU5V1YRHmxqItkQ0F8be3CdFgkomfRcnaw5ZSZ2wy//+ujmTKQi2100i0KvH240BKzTPCmFSqU+amWa53pF0LJVa8DYeIqb/o8p/wUO71sxcSWDV+PVxf8tc= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=matan@mellanox.com; Received: from mellanox.com (37.142.13.130) by AM0PR0502MB3793.eurprd05.prod.outlook.com (2603:10a6:208:1e::27) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.386.5; Sun, 7 Jan 2018 09:46:28 +0000 From: Matan Azrad To: Thomas Monjalon , Gaetan Rivet , Jingjing Wu Cc: dev@dpdk.org, Neil Horman , Bruce Richardson , Konstantin Ananyev Date: Sun, 7 Jan 2018 09:45:49 +0000 Message-Id: <1515318351-4756-5-git-send-email-matan@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1515318351-4756-1-git-send-email-matan@mellanox.com> References: <1511870281-15282-1-git-send-email-matan@mellanox.com> <1515318351-4756-1-git-send-email-matan@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: DB3PR0202CA0016.eurprd02.prod.outlook.com (2603:10a6:8:1::29) To AM0PR0502MB3793.eurprd05.prod.outlook.com (2603:10a6:208:1e::27) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 9540b19e-555c-4d93-d63d-08d555b38720 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(48565401081)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:AM0PR0502MB3793; X-Microsoft-Exchange-Diagnostics: 1; AM0PR0502MB3793; 3:m4gOeZpjKs4QXuLuh6mGlx7ncn8KguVTPsE6xE2Q8Pucam72Qmn050N6gDeMskBjW2nqcFpdthmNmLCFeyK0qmUC6U9LDhdvjK+s5de9v/g9xnYCSScawmGTaHesMBRtUeh1PfEgkiYU4otPf0Ol97z6T9AHeARdtkCYrvcz0zczjf7S4cdeHirsfUgknys6xOw3prKb+exVd0x4wzu1Zv2Xsu0/YZGd1utB/7bDbyAGPMz+r2gmQF+HkVBqVffu; 25:5s5KfsXBlXEhlrNIBfGydEmuYuOt4DM/KZHn0+yoBKXsCAr2oEoLsHl3Ycigs1SVBvobTvfNVzTlVxgXCYOjHLEtqhw9b9XdJ2Kk6Yl7up+kj584cVJrdIQNsYwXE3Dg8ZU8CcMy/UCHGn5q1sn+JI+W2yw3zDLtwbbfPf9WgdIlAGE4IFCizTrInb0g/vzlkidugXH91pP2M9AZTct5nW7wuvTz+wyRGl7jyp/HpGKMTX+SyN8vJXgd1PDdlBlPtOcIn7PJKw4O13zJQwZQfnEKvH8XjTU6eWFYQeVVew+ByR0MWZ1yeODX8sQoorXrorKNg4NNzoUlo0JWFJcctA==; 31:NM3QrMcqBHmulyFdLQci5cCvgElVZ+dyzvvdw6oA5GYGlXK9XjJbjTvmM6Sw0+hbLll6W7cPh+P2gBN19JqoC/zYdXm8/me9mik/ZftUWsuvM7AZzXo+k1VWmaQ+SwxV1Ad73u8N8VjrGeIZrovhsMwlZNAOYRgIBY32rBrDD0vSKJCg839+0AEEMlaAlFvgIzCqhB+0hSu16M5XIsqkJtLOA5Z4UmTPYiPX0K8Q5MI= X-MS-TrafficTypeDiagnostic: AM0PR0502MB3793: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; AM0PR0502MB3793; 20:ziS8QdOH0tIZhH1zCQlGWEEHZo4rooDT1UTQv9UltGu+Sr+y7TOlr+LrtJ26jjU6Rm3/b94JvmYw2rxZ6vBgDWG11XI5iWPlVidx9ECrcaqAi36IWKnEBh3H+0ao1dBqdyaSWaoaSG0AzpE333H+ArlOk+pcHyf76ySKQW9fyeKJhVA9PMPk97hJdfI7gizReKZvTBVYEZVduv7x1aVPBEi1FptRp2l/l6ISZp3EIoCk14gZrJvLVuJclgUyddGZvdvDYEV6aYZG4R6OMTWRbQVNigXFIQdTgzhOWZuhdW8CDqVl6nNHIw8InPf5mmtBuze8ROSwr/vOGd6mPABOgOFsB9EQ7YgZ7v8YFJ0kWxvatRPDgQyb4rF3zfqjvufQNQv9RHJ9UPMdvFGRm3FfwJ+uLl0EvuWOKk9rM+a2P2eTJIM4iSfc4tEqC04ejD9qoyjqhyrRZA5CTD2OKTOG5MpoqKOs4TihqtxjyBDCFRnLOKbfxOmKaw0D8WOWcFwe; 4:QtwqfQWgWdMB1qsEFfSAC9lGcEX7eJnWQCczd5eSn0i4Q/nHjQlPyoLn4N0aoncU07s05fc2BsmUg6BmRliXQJcm7V1NuLDSUuNQVTh0IV3azEwS8EXbNAMOLySyIIK0+9Rm0GmKto7h1s645TlTdvkxAnDiQdeWj5cR9I8pc48hux1aof1AOnRsIfEHJQRlfrCVh1A7tGbUCs/0OOKUfH3lPHht/83NyUe7L31LqY0V30YMa4y7gdf9qnuPxcYtcPlpOJx0rmPqqrAfsV/MTg== 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)(3231023)(944501075)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041268)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123558120)(20161123562045)(20161123564045)(6072148)(201708071742011); SRVR:AM0PR0502MB3793; BCL:0; PCL:0; RULEID:(100000803101)(100110400095); SRVR:AM0PR0502MB3793; X-Forefront-PRVS: 0545EFAC9A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(396003)(366004)(39860400002)(39380400002)(376002)(199004)(189003)(105586002)(66066001)(8676002)(305945005)(52116002)(47776003)(68736007)(7696005)(76176011)(7736002)(2950100002)(25786009)(81156014)(478600001)(69596002)(55016002)(106356001)(51416003)(48376002)(2906002)(4720700003)(6666003)(6116002)(81166006)(97736004)(59450400001)(50226002)(16586007)(54906003)(53936002)(33026002)(36756003)(50466002)(16526018)(5660300001)(4326008)(386003)(316002)(3846002)(21086003)(86362001)(110136005)(8936002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM0PR0502MB3793; 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; AM0PR0502MB3793; 23:4yD6w8BDQFUX6CInQW9Uv1QalPLXJ4LG8Ld+wfM?= =?us-ascii?Q?6j4HshL/4MiLV9St2zu1KmT/owl/Cu2JhZg18XROeYRRnbS+LAV7XcBpSRVX?= =?us-ascii?Q?MMVNJOGDAI8iv+fDd+lt2AmrGq3fOz9qwp1KpQj81UHu13Y72vaGfn157UqL?= =?us-ascii?Q?hYtMGGEbFEvgCo6eiGYAV6kyxJ+OcUcK6wSXpLj/iDAlC4G/KjO/m5BmzH7s?= =?us-ascii?Q?dVkWiEcrbGkKHxyN5uyuHlDJzvaa1q0JXWTnZPHhSvBANA2ydPysJLlAsF7v?= =?us-ascii?Q?hgxfyDPiQG8jtkI12T67ikp7IZypCRAGvDZxaWV7YcH1JQri1AjSOoCWCbxX?=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X-Microsoft-Exchange-Diagnostics: 1; AM0PR0502MB3793; 6:3IwhvDDwo4xkQmwpwa8m2YZlHZjXv84XqZ++pS4CeTTmb+N0QLAFSvWsEm0LzVUIW6O+uE/kN5b3PR9j6gbBbLIEG3SwKD+FrBZfOCC2wrM8BsFXAhu7GvBvOyeluHHcFF2YJQbEdCB9xiFT5SdxuAbO3f0nniSVlP7sGH+13ewUk7zKoylfXy9iaAvUTjeLuJHWxmVhNpEvYrqaR3KSj6jBOfz9vfCOMQxfYKuqjMvaNe2QA1ty4tsrYNJGsxkFSdDMaYSh4QNFmR9KO2KfCKAqtRqdwufgiAyzAtU5ELlOVjjkTPQ8e9fe2VQfpK53JR8012pGZzext8+9fBWHbhoF48iDNi1GJI86a3nisb8=; 5:M19Eg+Ff+MipuMk7Lm2Uq7cccpYE+pKsFw9u6Oo3EoKb9L+6NrUWIG9O7gyQivrgTkgc13JnkGOq/XazVkHuPXXtGtO6tBUaEDQ0IgP/0+1mLgGcnL5/ITouSHlbESfZ/l3zi6eKpeVaBc6P4OEOj7ZaB5p8VDpRloPT/KKJTYI=; 24:vURmsgALqfQ+T+CIxGA+cHsL9meZp1GkKQrStjyXloShwje3f0oORuzT8MU62d3oCIDjYLKygK7iNH7Jn0lL5SIKUS1nUQbigv3onkRcA50=; 7:bGjml5wo+8XW6+r5VFLuqP5xjwZhG1ImDbSt4eWMfpoxTXl/fPpoqAQZr3ZFutc4ASxRD4YRjhjeWDh9zDWATI6yA5XgOScITcEKSUW5vCItEMrR5DIvn+QEytRTeOHrZJvfeF0vVEqgAd4tL0qMW3+kFGxfVUNqfKWO18sBqOjxPVzF0qTiJHIX3d4dI5hFT8sKudSy8x2Rsd6GHFTIItkW5sUrmSe0PWkuA+9Ii2YYWREZ6yRfOJWKeY3TwNBw SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Jan 2018 09:46:28.7532 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 9540b19e-555c-4d93-d63d-08d555b38720 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM0PR0502MB3793 Subject: [dpdk-dev] [PATCH v2 4/6] 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: Sun, 07 Jan 2018 09:46:31 -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