From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-HE1-obe.outbound.protection.outlook.com (mail-eopbgr10055.outbound.protection.outlook.com [40.107.1.55]) by dpdk.org (Postfix) with ESMTP id 113281B80A for ; Thu, 8 Feb 2018 17:34: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=8hUb9UUR6krEXHT/FyYPoHVN0Rl8oeeAW23vXlyU1xQ=; b=CfUH69ymyNE4AyhZvIzlCkOBlSlv2f2JwVpmfZFYAtdDgQ9xK8qzLyi42ZowAfiB20pKpd29hWPrUN/dzDGcxSyu3YRNHJLov1h/s/QEmp8uRsrc+FvSEwIkmtxzofxbFqECEuz+AOP4ph0GOxdPlNKmur/5JBDPwRPzQtc8AAY= 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.464.11; Thu, 8 Feb 2018 16:34:28 +0000 From: Matan Azrad To: Gaetan Rivet Cc: dev@dpdk.org Date: Thu, 8 Feb 2018 16:34:10 +0000 Message-Id: <1518107653-15466-1-git-send-email-matan@mellanox.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1518092427-4333-1-git-send-email-matan@mellanox.com> References: <1518092427-4333-1-git-send-email-matan@mellanox.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: HE1PR0102CA0023.eurprd01.prod.exchangelabs.com (2603:10a6:7:14::36) 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: 72ab70f3-512c-47f0-76a9-08d56f11d333 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(48565401081)(5600026)(4604075)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603307)(7153060)(7193020); SRVR:DB6PR0501MB2664; X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2664; 3:ZNzBmsQRXI1Q6IXobUZ4tgqjvINvZnhQzeA2aUMJtsyTu6zwBj/jxHgSvY6eV49HjZZlfP5Mt745IQVJ05ZkYjxoy06/ffE3LL3/5CluDa/xccG1ZwYRX4P6Z6DPJgwJ/fL0DHCeW4LRwQbtTE+7HmBGRQWRdwV+aFLkyfZGd4/LiUCuKMSwJRsY91gdPO22qnSzKjqI5nv9KwgnbhvOWzJ30aocQ3Pw4XQMXRIlGIgccJ9tU8i+ha9ZDQB63BFs; 25:2HiYUlyjhlQ6Ic5Prb3/cGFg/B8Wc0DWP4Zyy4Vz5Bir/jYCF5PJSGNblpOqTzF0g/UZRylkDyQoA2rSabG0Cn8xOyfLNuJARC7fXrrZk7hcGYPEg1/ZT9vztYyvQg+uUt5EQ9q1M9TyoJY8ExColSrx58DmazHT3t4x647Deglubi7ETL7fwlOJt4XDIt7rvwJrBcikpLAfybsqArJXE8Ec+4LV9M/TimdUsw4hRWKsjmKQITHBFpgzVjH1jqq8HmlYHyvV/gVXqBWEFkLWSYn4fMmTzvhN8IiNR/snZlwWgDdN3fPLvYBEj+JM+VYpzgjtju3mScaWVsz9nIGYwg==; 31:zjggCy/0epn7KwEbmqi9lIZB6WmB/mQpB8KOkT9wC0y5G9wIQbTnciZBq/KN06kp7f1ZcV9ZISXOagidmDbPN8hZLWzaSo8nKQ4I1NVMXXqZSGT06gqY+EU+fbrgwm9FScuI3NJgrsTJ4M6RFjafw+fAS9JYGUdQvwdiREwvq6kqCI7hrDhixNggTEAoWiRGkqI+1SMmlQFMiljwhFx5Ff1mj1scjyinxpKDtSifu2g= X-MS-TrafficTypeDiagnostic: DB6PR0501MB2664: X-Microsoft-Exchange-Diagnostics: 1; DB6PR0501MB2664; 20:p3k6WRqG//J+zwyuvs+FEQAquWLr8OxJUD+gPsMWbIIxh5OA9e4VXnesKdM57oRYwurxK5SxoN8/OUD7bob1YL2604DAEPLFJIj0wCWWnzrJUAG4l/Eu5hoc7i/R5X+qqGuEVd7mpDgKXjM3NnG20Wj11Xs+Txcqduu1NkJdT40Y0znpIG+e6ZxccaHJxH7JeLdzJP4/IqgzTDYbJI7OZt5J1saswTKwHXLruf5TNqPXbfy2aFEdYqmLMszVTSJNPH3vUqtpBEHkIx+0snRH9pVlFM72NgscwuasthI6Uiy+Sns818LVDkuhCUKpEgV9M8wx5Jesg5nYl3ZwF3oSxeAb3rk617k5oMr6YammfkIiJiagApXA3P/Jll9dLpmeXXMWf+2pogKIyY1K6JqfmZjueJmgl6QoUPQvUi8A8XTi5Z9ZcAubbs/iNM84tw92lvTd0FWmU5Mgu7QwQueCPeEmWJuIl17NTnUb1T40kJLY44VG7YfdMotmXN/WVBEd; 4:VUnEaPxvka6ByNiv4dEj/bY6E68O6O0vAVfvD9KJzDg/ydu6E8Yj7fkx9nSTEqQl5RkV+3DAKetRqG9+HV/Hw7NX+adZPrIuVujhuXykcqNzeAK76uCiuIlYSnWi+SVyELwQwGSF+l7S0OJTzLdNeqs+qtf/vggkicBZamlLT+Qtv3AZhxKb6v/f4PTWQBS7oygVwMNOHWT0+g7QgG6MZ9dOheQYeVMlAkiPvRCXsxiNa/+5K3Hu04uPDLxKIT5cuSybTKLKDnK/FNhDnl26ig== 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)(3231101)(2400082)(944501161)(3002001)(10201501046)(93006095)(93001095)(6055026)(6041288)(20161123564045)(20161123560045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:DB6PR0501MB2664; BCL:0; PCL:0; RULEID:; SRVR:DB6PR0501MB2664; X-Forefront-PRVS: 0577AD41D6 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(366004)(396003)(39380400002)(376002)(346002)(39860400002)(189003)(199004)(316002)(6916009)(2950100002)(105586002)(3846002)(6116002)(4720700003)(6666003)(478600001)(25786009)(47776003)(5660300001)(2906002)(106356001)(16526019)(16586007)(66066001)(186003)(33026002)(81156014)(50226002)(21086003)(86362001)(36756003)(69596002)(26005)(8936002)(50466002)(48376002)(386003)(305945005)(81166006)(97736004)(55016002)(51416003)(52116002)(53936002)(68736007)(7736002)(7696005)(76176011)(4326008); 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:OkOx9w/tGH0arNmop+i6a2/UavMBHc9bOInunsj?= =?us-ascii?Q?2/KuhcKyXfpqAfxL9S8jVGxVdDiu35HKziHhYJ5US0BfEFCVTePO+1quAp6z?= =?us-ascii?Q?3FrNivl4ocPnFsdXasxT8Ujy8+MpDlGik7Tbrae2cO38M68itiaJzK2zZk0Z?= =?us-ascii?Q?zEnOl034JkTynXNpwj3LpGfFPXywl8m+u5zyYNJ/yXKVavaXR1K3iSBsxG0x?= =?us-ascii?Q?enAyBWsJSR08moNB2nimwcqo8ajaHfcxligIvuHSqpwPgBHOaKKU+jo/A2xV?= =?us-ascii?Q?PYAljlNedAWMWeoo3/iRQ1bpHG7PQD636CKHC1md1VWZA5bGa94nxlItdpIS?= =?us-ascii?Q?INBlBtKDV7Y3q/ICDpjbZxVWXJBCgivR4UEJdSWo+geAqFuuEsDX/dSLf99t?= =?us-ascii?Q?pFhfBHk5tls12fK/E8Xr+QeYEV0c2DlXloHatowz0HXtTv7z/Rv7qcBs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WG2VThNRiZQPtMbmmtQs/IMxHHnhLclyQ+PmJc3G+k7ln1bW5ANE3IHi+aJ5OreNQegCo3JQAyIwyUcWqgLY75PzztV3RHvI7vYSpbCkRCGFGQiwJyy0oIxa5G2E1DfPhQMVvO2dH7T2Eg7gka/tsdljka+y/Y9SJSwMciknzUP3tqax0p9Lddhpyo0W3qx3ENHssNmQui+s59ExQBh/5A6J3gQvpK8GYDtY3cI=; 5:d4I7pgQPwmKAyeCrs2sX4Lp0JbVT/yLifh/jv0EYHoH76qz/ktV/B/AGpwl4JhDU1HZWosqkEbBlnkIQ18Nr6yJ8P8qxr6b2MeYHYi2qPaZLNv3obeEKmr88iRsA8qnfeQFW26cbRgDKy8QhunTH+JtXv2q1wK0wqCrukMETrDA=; 24:TocPTS+92vwMrz+uO7dU2z0iHQHKVw5FKS8/FlvCB5e+vxA+lm1P4eNhlK8XigzNJI6V+3IfWFqx5Dv4RQsO+7AUmyWWl4rO/B0DzFBEhiQ=; 7:8kvR4V6/FP0bRs46S0joy4cwJmrI27b6kncAm8QwwIMQEpfNjegpvokBxiTJH22hcl8bjqKePjhVji5be04v2l1b/8fO/r74A0Lzb/vTQBGcFQYcjTFeS8geFMT8DJZLXdPtSud1y14HJc57n5fW4RJkLEE0tnj4YleiS7vnhYQBJB3B8ecc6gP4vFg9qYlRSchXhFOo13Ytv3E0NzZklad1fMwgypSapXgakGAAA+Jm0TFK4Ea6PfktRNYMMIk/ SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Feb 2018 16:34:28.4410 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 72ab70f3-512c-47f0-76a9-08d56f11d333 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 v5 0/3] failsafe: fix calling device during RMV events 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, 08 Feb 2018 16:34:31 -0000 This series trys to mitigate failsafe race between control commands to the asynchronic plug-out\in processes. A full fix is required and will be sent later. 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 calling device during RMV events drivers/net/failsafe/failsafe.c | 20 +++++++++---------- drivers/net/failsafe/failsafe_eal.c | 2 +- drivers/net/failsafe/failsafe_ether.c | 4 +++- drivers/net/failsafe/failsafe_ops.c | 28 ++++++++++++++++++--------- drivers/net/failsafe/failsafe_private.h | 34 ++++++++++++++++++++++++++------- 5 files changed, 59 insertions(+), 29 deletions(-) -- 1.8.3.1