From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-ve1eur01on0081.outbound.protection.outlook.com [104.47.1.81]) by dpdk.org (Postfix) with ESMTP id DADFB1B2E3 for ; Mon, 12 Feb 2018 21:52:01 +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=U1pFHDvCbBBd/Ff2QhiZ64kYQq3HmbmFFW7xtsuR0Ek=; b=j2jwlJy4C53QKOpkrSxKJCAFgammPfSi9OCPY5DJEkyqoC4mzVJPD+vKOGqN3VfcMAcfJTxDsWOtM8T2hneBZQ4JgcLza7T1D4zQhI5J5ZWD0L66GJia0V2+GLhIaJbB4kySekk+PCjiAOZM00Xqqf2mLDVrWc7TvD4DjDR8yVA= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=matan@mellanox.com; Received: from mellanox.com (37.142.13.130) by DB6PR0501MB2664.eurprd05.prod.outlook.com (2603:10a6:4:80::22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.485.10; Mon, 12 Feb 2018 20:51:58 +0000 From: Matan Azrad To: Gaetan Rivet Cc: dev@dpdk.org Date: Mon, 12 Feb 2018 20:51:39 +0000 Message-Id: <1518468702-16719-1-git-send-email-matan@mellanox.com> X-Mailer: git-send-email 1.9.5 In-Reply-To: <1518369872-12324-1-git-send-email-matan@mellanox.com> References: <1518369872-12324-1-git-send-email-matan@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: HE1P191CA0004.EURP191.PROD.OUTLOOK.COM (2603:10a6:3:cf::14) To DB6PR0501MB2664.eurprd05.prod.outlook.com (2603:10a6:4:80::22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 3ba91b59-8ba9-4a4e-c12b-08d5725a75d2 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(4534165)(4627221)(201703031133081)(201702281549075)(5600026)(4604075)(2017052603307)(7153060)(7193020); SRVR:DB6PR0501MB2664; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2664; 3:KigYvd/xcRQNmg2SSMEGRtE8714qQv4JBZPY4d3mYsfH8RIF3jAFtmPX8yMFgObkOPkEG4G4gWODALQZbzMry0wz+jQLRL9E08gocJNuebcuddQSkKF29tN4wU9PDxIuB4t1p0gYU9t3BongaBR/IC1WsJ4iamdQks0U4R/DxQGDWxqak1uEfGdn3HMbiSFEKP/gjn0e2l+b/nEWWlYySuuTQj8SGxTO0oJcyqFguc78BVZVtawoXQrWlDmdxWRL; 25:ZYeLObCMpZsbliZfA5AoIytCA8THYkRAvCVXljjWWh+df0w3iVs7Q9jYJar3bOar5jfvDb/Tx+xyU/novyf5Mq6iFm22lrR5XsvhuevqPBES0wQe3yxzJyzvn5sUOXCk/oKXw2xRGcnAwyoasQ5L2ICjKVRGuSx0eGSPHoMXyWVVzwYu/CiN0AXgFoYA6r9vni7mwaA+WjwoB6Oy/OM7bd8XthwVzt9ju/wQH+YKnU6pMZcIrkCqaz5SIcGs81rCXrkMJyATkuTIB5TCpKzmB+X4uNO8TuYMavgHPeVpeOdyiKUAyaPm5riwz6ORb7qKrgIBtdO87HY5LFbrL3YO6Q==; 31:ssI3VfHeGPECNUivB9lgR+zmAqfwfWA+zuTmdqi7BqdWq4Ppzpl/BiJ6Jy5V43uNAWo/7ZbSMCXRPU/d9h7WtrQitoKDlvzWwN79O5dyzSi2DCnDf/cyEYWM6xnWSM+fO4RQdcOX9vp+8agNeDtbU25qgnGJK40RhOronX19Ggy2nm1A2RXDyztyXsI++IGA0PmKVPoO+3mxZHSdgu6FHoKlk4ALW5HWV23cWpNxpFU= X-MS-TrafficTypeDiagnostic: DB6PR0501MB2664: X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2664; 20:hbG9slkisq4FWneMxGbTNNPW3CFAfF+Z0RTcAbi4Gu44DXl1pheXHFaHn+Hu5ZBaizrWfZhXE3/FzTT219eLRlMrEB02EH4HVBUAr2hrb441Al9h5xkFrY2oQataSXcG0YlmpfI4tA6UdTF+MZYhTFo1ja/6QSiH9pJMgxPgkzwe642ZbiftsAC7kf7RjfNSYjCDlP3stPQ6dhiHDXip7GpQm45LkVyVZEcJeNsNe/y7TCpo/zThk6buJtauFjf7ib0y6bkR2uGUanemPhJuTsjeOxvftdYeNXh9iB9Lm8y6ng28ybTt3poEeEiCAWOcDdUqUqgtPz+UPP/WIY11h5TLZG9CeFjOPlXE2hc/5hK6M8afDpXhkigdKQWluz0S3QDzcXqrKIWmDqF59eMHovQoo/w0chScmh9ymxrYWwQvy9WOgfIBdnL+vtg/PY/ENW2uB523N48mLcFFl1MPvaYvxzbdliDrIzhmHB+6RdFhl6G+7OlD624TLADI7q9Z; 4:UaRfZclbu5osi3mbPbys3wBhWSbXZFpmUWkIYFqp1Y5Iu31KwqwoP4jDPztvAj282zVHwc+xcd7MPddERQuLIPtaYhAqV4xfr6jlf20KykuhkfexJIDjWqSPTc/olMgdVgSiSb1I5IrT/4IDVSEjHO6dBh69HqeGiWHjUK7ygqoJVXZVkVPCDvLox1VvgnlQiheKORJ+6Sa0AqlLaMLmJxexPkOPpEvfD1DDDsqULwfHH+GFy8meU5ohsLZufo1THUDVdyCk3TR/GI3P3CKAOQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040501)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(3231101)(944501161)(6055026)(6041288)(20161123564045)(20161123560045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:DB6PR0501MB2664; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0501MB2664; X-Forefront-PRVS: 0581B5AB35 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(346002)(39860400002)(396003)(39380400002)(366004)(376002)(189003)(199004)(478600001)(8936002)(6666003)(81166006)(81156014)(50226002)(76176011)(68736007)(6916009)(69596002)(8676002)(2950100002)(305945005)(7736002)(33026002)(316002)(36756003)(21086003)(16586007)(48376002)(105586002)(26005)(55016002)(25786009)(4326008)(186003)(53936002)(97736004)(66066001)(16526019)(106356001)(47776003)(52116002)(51416003)(5660300001)(59450400001)(7696005)(2906002)(386003)(86362001)(6116002)(50466002)(3846002); DIR:OUT; SFP:1101; SCL:1; SRVR:DB6PR0501MB2664; 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; DB6PR0501MB2664; 23:Dd7poHRHx7b/IMqPIddqdJECtWOnDI49EEg4KCT?= =?us-ascii?Q?YlBVFy9Cx6uEpvbk/xDCxsf5c1JNuqVtwcozEv52JdWc/ooYqOYZ8gVj/9TI?= =?us-ascii?Q?u/2Kq9tGv/W1lpkEc4IE7xRMtQH10vnN/JVS8KvUYiqTNNGpgIGpgUB8whX2?= =?us-ascii?Q?aGLSKSMRWOAQrvohW6DkBBFGdBHxSaMLz0KUjPxXaOtiADT0fb14q1gjeUlN?= =?us-ascii?Q?RD4nvUaUWHpZ8E2tzEtvPdc1+coz6lbziEXY8ZT79WQOvR6KKKWp2ue6QPZb?= =?us-ascii?Q?woYZWkw33fXYwssjmNUl+de3kdkSPRzAtp24WPO5eNsriZr9rLv3O7d0qHDA?= =?us-ascii?Q?B6KZG/viYfvHoQNhBNU1dfrlACKoBew0ljVa5lMHRuoN3/FWnYRbpA5kmuem?= =?us-ascii?Q?wlUNe6GhBMYcBrhwnAIoVDHULZ6IRaAnZ8mgGeOps1ZcfZEOro7OzyxYq2Nt?= =?us-ascii?Q?AVWbTBLzpVzp1y1L/VgkiiccSndx/aGey2QTbUji5oCvJu/UYMZvz12vJfnP?= =?us-ascii?Q?bt8HUMATYfruzROMmIjtLvhdHm2H3rG5XUk5yFPnqmACKZmyy9FiQlhOabjm?= =?us-ascii?Q?VjYZSumk4ZbMq5eChOsL7XTltksGyg7QUTmxfn14dLwVusKNCDPOoc4Qjub9?= =?us-ascii?Q?woF8rdPKtgpGRpM6wHud/Om/2Lu+dBIn3u4a3Tlvfg1yFSfE4McvS9cjQXK8?= =?us-ascii?Q?Uw3GcNhoRYV/bDrC4Yh15ZwYWY1EAgjhueZNdsNePF277aNQRpirQpXS/phy?= =?us-ascii?Q?OQG41myiA5yZv1Mgj/FvL6YftjR038IDla/NGFzhNSx/TCVSUuF4MGJuVuri?= =?us-ascii?Q?WeOdP0ff5HZRans4O27ogf1S+1HXVZ0uSYrV18+YLSGUXhgbDNwxcUzWUah6?= =?us-ascii?Q?cvn7OF7iNhyFi1Vxq1Ujmda8LXvHRbefiFNGazqBNoRak9mnflj9+4Dhcy9B?= =?us-ascii?Q?BlSYpZCWnEdhKjQ0CEQuacFsUx4yTB9IIHihgb989MjB2bVrwJMnutHKE3QA?= =?us-ascii?Q?hgojQCzAGKNzQO2JSIBkZxyf7Qgo6cKbIk9+4yNt1dFzvy7CXZOVqGykGgIL?= =?us-ascii?Q?D3G5C56SlvMG7Q2LI8EBSzlv2tjYYVCHoe6vtw2nzqR9cRWGIzXOiX9Ft8kP?= =?us-ascii?Q?+7vHCvcdvJJJyHAPtVfKk2iumxtho4Qn9unP2Nn14XLsw+k8UVlFarft0k/7?= =?us-ascii?Q?Ox5ixAz0BErlM3uw=3D?= X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2664; 6:SHS7DEkBmYXLVUggVw719+CXdSIPICe1AHMu3uSu20kDW24Ksndf1tIG9bR0RIxkTBQZNOxeSYqbmSauivV6mhlGJl7ZgwWrthF0ZdQJrvR21OTcXQgCNURBtzImiKhybf3YiIbJmXi71zymOj0zs0x1h0TJonnhTsk4DlI+PtVWDCVQEWHwHQDe9n3puoreZd21Z3+ty66BGyKM6dbXc5fv21AsYIpCbJGDf0za3qpKH79yF2DzpdxjzLwtkTEBQ5iCHZbZ4AHRS9kr73MSQFTVk5SKgpBA6wGT+Q7woQiTtnEAFSaq6NinYMKX/inXwsqXtW2Mts4EXzAO28KNcIP6f2jgkeEuYYSKQ5efUR0=; 5:Pcb7jsawRZt02mjG/2G2IqF4d48+9PPcb4mAh8TfDidfyulZEU5eQY0gjDQfU1NyHQSUoXhj4VB4ZmW7NuHGtx+dXAcZYXDHVNHn36OwzAb9SUs3J1lapEs8rmeKmr8sX52H6mT1gcCQ0vJ7KyWaIfimh2xhuTmA0OWlqJD5+Xc=; 24:UsIEBlzCTPD3cEaRvqFCnVfucVKk+wQRi2VDhVgdde3lDae2ywHjD4xNacYoSI14hbjHVh+6rmnFJ5xfyAhBaW2PBzt6mddWTwcUZEL8Mic=; 7:C5fkHIbGBuoSgCEJ1lEmXHfhFTaZzO2ZQyeUgZJSXG1mnSB1BBk+uQjM93ucU3RUmS0XF/8+zZj/osRnPP/nRPZUbF//C2N48hEDybtUcrU28MZUh6zGZz39OCEeJPN3lfZqGxdskffhr2DmZnRvrjs/Sma1HdJhT5tOCBqqSQBuev1sGSeNMgbBDOIaeWnGXtqe8dT0KLI6FeMrIrNoWlb8LSr8ZBDrlAKMJyCS1Iw1TQPiEl9uGU/nDcIXntdB SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Feb 2018 20:51:58.4662 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 3ba91b59-8ba9-4a4e-c12b-08d5725a75d2 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0501MB2664 Subject: [dpdk-dev] [PATCH v7 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: Mon, 12 Feb 2018 20:52:02 -0000 This series fixes failsafe race between control commands to the asynchronic plug-out\in processes. V7(matan): improve commit logs. return back emty line. return back description wrongly removed. 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 | 6 ++ drivers/net/failsafe/failsafe_flow.c | 20 ++++- drivers/net/failsafe/failsafe_ops.c | 149 ++++++++++++++++++++++++++------ drivers/net/failsafe/failsafe_private.h | 56 ++++++++++++ 6 files changed, 248 insertions(+), 37 deletions(-) -- 1.9.5