From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-DB5-obe.outbound.protection.outlook.com (mail-db5eur01on0085.outbound.protection.outlook.com [104.47.2.85]) by dpdk.org (Postfix) with ESMTP id 264DC1B338 for ; Sun, 11 Feb 2018 18:24:57 +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=SBMouRTBHRqKmn5R6H90A3GYT2w6PLVkbMihaQGywGM=; b=f/C0cMtOIo4sZdfBTOwS/Tlpz/2nlwSlzHiCVWmej3er/gV+GSpiJzxbnJUB4mp8xssgfoCPDANPHPP6t/oLNlNhlf14PAAbe+WQ40BktpPRZwj9xuEIbutfir9L8g2b7tqZTPIIHjGHnjcUd8034/lC+AeMercPoM4V0kZ3rEI= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=matan@mellanox.com; Received: from mellanox.com (37.142.13.130) by AM4PR0501MB2657.eurprd05.prod.outlook.com (2603:10a6:200:59::19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.485.10; Sun, 11 Feb 2018 17:24:54 +0000 From: Matan Azrad To: Gaetan Rivet Cc: dev@dpdk.org Date: Sun, 11 Feb 2018 17:24:29 +0000 Message-Id: <1518369872-12324-1-git-send-email-matan@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1518107653-15466-1-git-send-email-matan@mellanox.com> References: <1518107653-15466-1-git-send-email-matan@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: VI1PR0501CA0022.eurprd05.prod.outlook.com (2603:10a6:800:92::32) To AM4PR0501MB2657.eurprd05.prod.outlook.com (2603:10a6:200:59::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 3ec7847a-08e7-4cbe-8373-08d571745e4d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603307)(7153060)(7193020); SRVR:AM4PR0501MB2657; X-Microsoft-Exchange-Diagnostics: 1; AM4PR0501MB2657; 3:Osarw5HrAGRAnQN72kuhwmddvnBsYZCdt9yssZRLnZtbKyYkCriqs2/NaYwo5jBiSiV8tBn4piSFxOILlVyvU/T3TOi42PdsT+7ZQElVex5yzWEPPaJoos0QPYiBLUeex4uMkq29wLMu+NCeNECwnLarSk8rKQV2G8FE86OL1VEyca3oNKeGxDP7vuC+HcBOQy3ntQXy8AzQQ4HfSYfPHXjdTvARyXBw6LuV/6/PFoNhvjHV1955BbJgRulIzHJT; 25:BYJfiy/vtYuciuWQU8b96w4kzDs9GbXcLrnpRXxYHon/ZM50FtKR0moI09c7CeogS2l/wIirCGZ9knHpxRtrUNaC37uxUNSC7RIxusIf81ShUzQ9LrRMI1MWBPck8C7U5L0t3xpqXI8yn9g8tZitInQtGiuBARhUVEYPtmpwa4dhxZDJ+JxnxWMrGb5F64JK7DSHYYyuUmh0GOXcwOCrFsMQl1pNXsvFhxwgMlSXYR1oPCLnMYu/8YxjS5o36NszAcXz2akEHgFLEdkLmgOaiT+Eg/K5SI17qS6YpGz2Wm6eL27svYcJrJxaC0eg/Zc4fCwYBe3yNPiiSKm0Ejwlxw==; 31:mTwJibSusj8aZpUCbXZcnS8x70HblKQ/DHvCOIbL6Y2NTIAUusTxLn9i1Xj4iAMDBA/IB19mo1T1nsHqrbFkfuisLYVfUB0y7ZWElsgfAvYd3GxIabOkj9LG2awxALtETvrR0EuTF51L0TDAhVoBMZb4uR6jgMXdo35b4CAHb+6Ovbz/hv3Zbrh64EeA5VRNJyuSbmbpTllGXJ/0UpRLzzLedvvgC8+yy9qbv0Jczek= X-MS-TrafficTypeDiagnostic: AM4PR0501MB2657: X-Microsoft-Exchange-Diagnostics: 1; AM4PR0501MB2657; 20:Kqla+jlznFb1AmS5vnQCPdhkSSTBS1Jmtb/de+A+pY+ahVB0xCUUGT0kSq619+Id0emaJkEAcOpfD1uOLfQit5VmsI7stY0+2CuV6pvRDqY2rr9xgHewneBk6vieOUkup9nghoXgRzQQr8pzsOLKexlKQX2SQ9/eDbE5+fEouHSAmkuY0UAcY3tmYq0CYfMRwi5KP+i36kVEkVMokg35rVlGoK8FyvD1D8VIp5a9DkOAS7RrzNN1zZjVDS1UsRTBGiDDW+jyymf/oyPAUtQqL098mBTb8xjqKAM2Q2mZOKtIYZDvsuORKqtX4A+ikqRKaWTMGZdMb5eDhPV4v0LFSkIWL0vRWG4JEIfsKBwTbFvZqMtzDCj2IUaTqSP6+GS2IN4gvMKL2oZXryCZRCZYAaLL2jkE5zkJVvSM4M+p/KzK1WJXKrmml2hwSqK2OkdcJiU+28+DTFYune2BfFBkDYzwqvgisdZXzN29rcf/B5Ug29RHt19e1j8/Eqdqbac8; 4:KCqiY4tdjqRzL31fc7E612YaD+HDup5LEhig7mtPrCckLM9sqPMj0P7ZoAi/LH/x1bqXDnIN7EuJNznbwOBUqnyRxGqCAM9rTq5/F3hBEW7DGgu+BiCmsiZ/P76OlG8SVJJqCcM33ykKNK0/XQpxX6z7vrFtFIVLeZI2qnhNAMOCCiOC04ztnSckA9Hl8JUZbG9dck41SRM7+1nie5lfzMeJV+JyMK9H+C6cKDJkFESm9kLR9oHFLx7cRH75ffvlpQhs/7pLrWdhP6n/xQOh0w== 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)(93006095)(93001095)(10201501046)(3231101)(2400082)(944501161)(3002001)(6055026)(6041288)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(6072148)(201708071742011); SRVR:AM4PR0501MB2657; BCL:0; PCL:0; RULEID:; SRVR:AM4PR0501MB2657; X-Forefront-PRVS: 058043A388 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(346002)(376002)(39380400002)(39860400002)(366004)(189003)(199004)(50466002)(5660300001)(16526019)(81156014)(8676002)(4326008)(16586007)(186003)(69596002)(81166006)(26005)(76176011)(33026002)(48376002)(105586002)(53936002)(21086003)(386003)(25786009)(2906002)(4720700003)(6666003)(97736004)(106356001)(68736007)(51416003)(6116002)(316002)(2950100002)(478600001)(305945005)(55016002)(47776003)(36756003)(7736002)(86362001)(52116002)(8936002)(50226002)(7696005)(66066001)(59450400001)(6916009)(3846002); DIR:OUT; SFP:1101; SCL:1; SRVR:AM4PR0501MB2657; 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; AM4PR0501MB2657; 23:AL+EcRAoZuvxzoVqpVDvkVdLUh26I2n56Pxb/bQ?= =?us-ascii?Q?0pPGJEhypJOV1yF6pVn7MefVNgMmPRDnez7poA0XmT9wErm4LvSbwZvUJhmD?= =?us-ascii?Q?JOQ5AY6ZNbyfed0xpEP0h2eWlJ6exAvsNJgJmSOHovCRkRWrdq9sSH+05TzU?= =?us-ascii?Q?JsWAnGxFlyuf1F0IEXTccnLqAB6gmTPfBUE9zg1YDK9thGpCfdLJ4blCyEAU?= =?us-ascii?Q?VPUs0OXTGVGK8kP8U9A0kOwlOlvIdR0sJa5Wq05jdRS9D0DDDT7KCQFTAYW+?= =?us-ascii?Q?5eIsZpwPx9mTbqAToueJlQi1dCaaVSCAuqzf/NpH/yISAuiii8LJsFUionKs?= =?us-ascii?Q?jVef4Ptf/lu0NkzuY9PGHP11RtViX6YiHZaThDtPErnQM7nO1e0+T3HkeYZf?= =?us-ascii?Q?yJYij75zu2xuBJDVE13z2+xdmObglEQLZ7XIWl5uHQV2p7wprQYyFuk162DU?= =?us-ascii?Q?JOxpzzjl38z8+yD8aXeUrsh2+ED26oSytqASPbX+tVi+9qu4e4d3bHad4vqj?= =?us-ascii?Q?dQqwzzJJW6RTNrIA57QH4AHQ/TsV0yUT6ygaIkJVKoufT9iw07BgpKzK6YIW?= =?us-ascii?Q?XFwcA0gXY0hdRlxepki+WdI9pp3RiBy2Nvexou99O9iRwR6PNsLuwzXjhacG?= =?us-ascii?Q?jyyon4N8RjwSMowbNV3513axLL+LQdJwjQZNVBZbYew8K6OM6kXMnc5CEXYi?= =?us-ascii?Q?Zu15+hVV1cwa3BkxVY8/UuILzfCL3EqSbP8APerI8iob8Td3j0Lze5BeFTiW?= =?us-ascii?Q?OE/6NbbhCMcGTBBahn0HhRlTooCrtqSpQhoK2eGxorXxiG0xZZ7z/wHQSgOy?= =?us-ascii?Q?FnlTLx39E7VRJFeubrW6JL0fKCxjvLW0H0Uc992ok8R1z0azo6+baXrvF3ZW?= =?us-ascii?Q?hkurgI84IjdbBspJEoBbUPX/Flb7SgY4qq+d3JBZv1NrGJV6XSojPrA+zo3o?= =?us-ascii?Q?k+VSG4ZdyfHHw5n+WEq/eoW2iv/27jsb7+gy+aj6Y7COl6kVFeC8vlbPpo3o?= =?us-ascii?Q?fb5G8EZfaWdbES4SEDWTg9vXzjo5g6YAOgVxn5pqzf3+t8lz9+FuS/tqGJP4?= =?us-ascii?Q?QtFj8iYjM22F4yk+wYq+1RSoadNWEY/5i8GaYRpS09bm8hXl5uHJ+LpHU9eB?= =?us-ascii?Q?VM0wguMToYphjFE38VUCPMQhpvBzrlsJDiU3hs3e+PMORm2qYQylaLG9cglU?= =?us-ascii?Q?Mz/ne561vatKzMH+26PBa3BhiZz5AU5EHMqwp?= X-Microsoft-Exchange-Diagnostics: 1; AM4PR0501MB2657; 6:JinqWgKzEk+cHABuP7+A4cn6iKyOJwdNtdGAE58OcDRMJ6DMbo0UmAavs71b0qngCn/0rWb0Leb8d/LVAfoVEMZn+/RB3SrsV9hOryj5XN/pYFfvQu/W3VSkadA6k7KLEoQKYjYdTIqDTjfcgn0Szpji4Q2Oh0RFH2H71bHX5tkKIuug57WQQ4MJmngfXsSxgv1WuuOGxp5TGkd5CAXRJHT4tWHkiZVyQlwlsELAtqRfElwuPP9T1ruLr8yaQTdxgRN+ySRQByUw5lnEYNECoQ5LKXL+6AvGazvnxatbwytv5qOnbD6H4uscM0JudsrdJmTmR1UvosyPEBpi1r+qjfIOk1vXIyXG8PADZyqneAw=; 5:6oPedu/B4Whpi/k+INFaMRTkKtMwJxOJpljM8S6TmJBHKMXSo/gMy7UQIBbX7ftFpRtOqO1mr9JY8NdY5zuCcrqXrIdkjtU2MLHVyRFgDpGoRvjss1NovtQ0Sdrpl7hLw37+r1t+y216z4ayhCZVFOUZ9Hj1esfgRNi77GQfvNo=; 24:wgIbm/3bH8sD4AaWS/xsNCQtDogzkZcJ84IqpXhZQGV27pSlnTR2kdsPEuyj35z7rq0HHvX6gfN40xPGn8ADoJR37RZzM8dPE5+Z3l1x09g=; 7:0ymiCt2xJ4967L7KooqU9Jm5B0iD9R21qOcixEgoNFV81HApqDhr7RBRG0786CNKmUtJCAFxEZwwVBOVSgdoSrl49n0Labyn/pwYlxXToiP8diXpMOriWZVW/eXarLNcjmW5PxlvmGkvtkArLBLNE2laLITD9MKBnM5Ndnf0/G+0VJEY1YJ+K3ubcQnftRb4jFy8qia7fLpZkQB3Liw36r7bEyavJ+1BrWJ1A7rbwGXTETmXqlOAdkPFXATpEB1U SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 11 Feb 2018 17:24:54.9763 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3ec7847a-08e7-4cbe-8373-08d571745e4d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM4PR0501MB2657 Subject: [dpdk-dev] [PATCH v6 0/3] failsafe: fix hotplug races 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, 11 Feb 2018 17:24:57 -0000 This series fixes failsafe race between control commands to the asynchronic plug-out\in processes. V6(matan): Full lock based fix. Change the remove flag scope until SW resources release. v5(Matan): Change defines names to failsafe convention (UNSAFE). split a fix patch. v4(Matan): Rebase on top of 18.02-rc3. Extend the fix for other control commands. Fix hotplug alarm cancel. V3(Ophir): Rebase v2. Add rationales (copy from an email which accompanied v2). Matan Azrad (3): net/failsafe: fix hotplug alarm cancel net/failsafe: fix removal scope net/failsafe: fix hotplug races drivers/net/failsafe/Makefile | 1 + drivers/net/failsafe/failsafe.c | 53 +++++++++--- drivers/net/failsafe/failsafe_ether.c | 7 +- drivers/net/failsafe/failsafe_flow.c | 20 ++++- drivers/net/failsafe/failsafe_ops.c | 149 ++++++++++++++++++++++++++------ drivers/net/failsafe/failsafe_private.h | 62 +++++++++++-- 6 files changed, 248 insertions(+), 44 deletions(-) -- 1.8.3.1