From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-DB5-obe.outbound.protection.outlook.com (mail-eopbgr40057.outbound.protection.outlook.com [40.107.4.57]) by dpdk.org (Postfix) with ESMTP id 58F8C1B5F2 for ; Thu, 2 Nov 2017 16:42:43 +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=9opet5aTLpsLxbrlPe80JYZQ2lzUjvVQETBzHS/wwgE=; b=rkdhBhV+2ZCNnZmZN5efZ+JFi0A/SvTaDKA5QuMlUBGOWjS1sNMs77c1taTSFv1WgVLJUMTbl0WsEfVfGjv7ubiXQvm+Inc+B5/dJnVtTwguQq2EqILRWqD3JkP79eP+78RdxAF10/a4/c0WVn5+Ps0Y477GInEJs9M/TMreqfQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=matan@mellanox.com; Received: from mellanox.com (37.142.13.130) by VI1PR0502MB3664.eurprd05.prod.outlook.com (2603:10a6:803:f::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.178.6; Thu, 2 Nov 2017 15:42:41 +0000 From: Matan Azrad To: Adrien Mazarguil , Gaetan Rivet Cc: dev@dpdk.org Date: Thu, 2 Nov 2017 15:42:01 +0000 Message-Id: <1509637324-13525-1-git-send-email-matan@mellanox.com> X-Mailer: git-send-email 1.8.3.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [37.142.13.130] X-ClientProxiedBy: DB6PR0202CA0021.eurprd02.prod.outlook.com (2603:10a6:4:29::31) To VI1PR0502MB3664.eurprd05.prod.outlook.com (2603:10a6:803:f::23) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: a0932194-16e7-4acb-0184-08d522085a9d X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(48565401081)(4534020)(4602075)(4627115)(201703031133081)(201702281549075)(2017052603199); SRVR:VI1PR0502MB3664; X-Microsoft-Exchange-Diagnostics: 1; VI1PR0502MB3664; 3:refwJxphUhyeV8bTzgOXtQYZRkQVDhx/T5O8zqDy/ep2HIG5qrELvcFXsNrDeq4lXfnHcBL/pFTf3uVYD8PasL+L4Yp6zNavZx7DymBHSKuSq26f2P/4UNAT5kOeA/oeUvTNfG01vnh1+/jfdERRy4RfuzZ27r5jVr0k4bizyu8jYu3OPMdVClpZz57KxrzYFhP9y8Oyr+FrR/CZCO4zYBe3BOmxJ8E1Zj/IONG82h+sfG4YETX3Xf5gvHcbxe+u; 25:/ehSqE1n2RkhwHeTcAXUygz0QzTLuvBUKDPYKMLEt22EGN3KP3f/x0Fyjedf2M6VlHMmd4KQq8zp2rQKZ0r4yjyG34ni3+wKcF/KTupno92kIFy6mJb00Z9q1J/3lMY4GH3JYixdTRetRCRQfqzvhRwrMjYvFTTjL+tTtUiGWw5HxJj97AL7Nor6Qujd7reG54mRI/P+YmNEACOttjgozNibjQ3Z+F1U1S3b7myqHcbqhwg8aq2HzAJjNJTxWvM1U4fOJqt54SNP77qF3iPwbc4WW4YvyEB1/MPV/sRHsYk8sPmMFhuQu6EWvP/IRY6VxnOavGd1ASHGj2ANtc8KXw==; 31:rjyN9g2eoLu2biHHsIzaYv8/rRGIcM3nnHghYruUsCdTXPYupxFWLm8TyfH6nc/EMCIPmGMbtijRU70FCOrMAMT2dukO+O3/Vnwn6t/j11KHQzMRCi5I7k+FyNrigJiavMUPdfowTGO7U5eVNqmkEWOLFkvyiWoH1fwMogc4OJwA5ADu+yoXpCEG/kQ8n5gV7T9Nik6THZQkjuUIrp90VAlQz8/El87/IIVQCqLwUl4= X-MS-TrafficTypeDiagnostic: VI1PR0502MB3664: X-LD-Processed: a652971c-7d2e-4d9b-a6a4-d149256f461b,ExtAddr X-Microsoft-Exchange-Diagnostics: 1; VI1PR0502MB3664; 20:UBvEgUBj2Vf8SD7pd1AoblBtrEo848US5tVjMrMxf2TArKotXSLz0weYQoAigC0Zsn3z9y8tl0jXOYXJkT0bb2ufOfpRuP4Xl//HoPMLQgdLrCr2qqrME0R0vXV6mC3QrLJDYIaTGYlHLGtWT0zv8L0xUpl6nQE+A9DETJMmvap7NN0bh1GYErC8RAvN/ht/FS2+7s8uWxNQHa2+1DNUqTiFCQCoePGX2Nf7HRqHFF5gp3MxPAFy1mvAOc1jm3l4W5sDqC8xjhgKAdL5Y5GWPhOeidzseT9qFJtCWS4yKPQP4ACFdsMHp9hdTonZia96+lvz9DkNqbvfnZ/hfTrWg/yZy7k0L3UlSNnQ7uD2jatVxVsLENPtbdNBnG2otw7QJ+Cf0QHy2PAkLENGTpWVKb+CikFErUtSBDPdJs5r2ZdWv8o+i8phhsDXGTIDG71TacnpjCIHCvHrkKg5lhDjmyH5GfBJPOB2htDJKdA1BRSn7XCAk7UMmyDe7KwnhR6c; 4:AttDVqOL7DkJF8AJTAHwm/BXMW3e5Jiu4CFSC+UPxP4LjSbTg4jbnTvdlVwVYnd3T5cyMGy8Sj5dlMvHfBks+gtV6BABy5LikHRkBsrBwtPt4XtV908HcQkzlOyFnCmaZKiKXCbTPUxvc55F/HPwLyEA1wW1is2O9FKJkEPpQirRaWp7gQMKuNzi9HzE2R+VWYEV4AVuMf02RCRR8TIioPebd63/zd/shEn3zVbDCt9LtiE1ZJY939FDQUQcdEsecYbOWvkRzZryrfsR/hkO/3WaHrLsQkHdo2nqMppE+IE7gA6eLIvElDag3BZzUJJk X-Exchange-Antispam-Report-Test: UriScan:(278428928389397); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(10201501046)(93006095)(93001095)(3002001)(100000703101)(100105400095)(3231020)(6055026)(6041248)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123555025)(20161123562025)(20161123558100)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:VI1PR0502MB3664; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:VI1PR0502MB3664; X-Forefront-PRVS: 047999FF16 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(6009001)(376002)(346002)(39860400002)(199003)(189002)(8936002)(48376002)(50466002)(2906002)(81166006)(81156014)(8676002)(3846002)(6116002)(106356001)(69596002)(105586002)(33646002)(6666003)(4720700003)(50986999)(5660300001)(101416001)(5003940100001)(189998001)(7736002)(36756003)(53936002)(97736004)(25786009)(316002)(33026002)(16586007)(86362001)(47776003)(4326008)(66066001)(16526018)(50226002)(478600001)(68736007)(110136005)(55016002)(21086003)(305945005)(969003)(989001)(999001)(1009001)(1019001); DIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR0502MB3664; 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; VI1PR0502MB3664; 23:OZDMB5aRQmQi6aJfjYl5H4pL5ZRIfWo9gJQUjxp?= =?us-ascii?Q?et6ixTqVorY2SbwepAuoynBg2DrBTVa/JnWNlFLNZXHPfQKyU9WpFTj8N164?= =?us-ascii?Q?zr0A2OGFtlgZgCwLf8AvL2YR/y4c0JqGO14dejiEAw5FiqSUR5PHvaSmI33U?= =?us-ascii?Q?u2KN0hhx4oaZN8iSoK+rTY/wq4rGbXTC8ryALMt/5OVeOJVYaZa+x8lGRQlP?= =?us-ascii?Q?Ouh09OqH73m2h0zyq89uMUFqkjCcfPaBiO6NmHrX9wPQHw/OWiC3T5TeH9M2?= =?us-ascii?Q?2PwDr9ecjzj/XY7aTGQ0GTCyfZB/hSb+B7gH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VxYni0nKcNMUV8vhjrz4qiaqrJO4Sqm?= X-Microsoft-Exchange-Diagnostics: 1; VI1PR0502MB3664; 6:/DtgRh1cEP0P5Sv0EwgUbPnZLyDXD5GhfkQzTNFVQVO+YjpY5Bra1hWfAekiBTc6VUBwRTF3j9lZVPdhonIjsyiDU8laun2lTnNsfrNww+0ml0/HRtlMD78g3DTIhaKzAobTuzzHj/xwLTzFWcbTUIVsSzW3tPG0sZORhKvVvnt7FepE4j4kJUuScdkHLuYAJq9q2P9VnCnGbBGUWQybtVy/kP70hiNUY5iAnWW5zZfEz9Qoj39H4A/tcd0XuPS3t8aOHIRrCNT+5gdnw4PhtrJvRz/Nc+zDGAFIPeQu//8m1zXSoNhtd9pnOD4+c7GGskvuP2/G/eaIwGWud+dG8H2ROu8g0aDXi3FDXdfKXk8=; 5:NuXVPgUksRe7uOK1AS+3ld8vAu1j6PmUkm/CNS/QAXn+aMK7Eu2vYNuFHHS2bl/hib7+20xkHTvORsC7jLfAZRIm7uvpPeqXZpb7Sk644DqkzHUvPGLrXqGaSNdsglgizHtZ884JIH8gugYlD/fswEPaIWeWieT7eWVTI1ZIcvM=; 24:Wr2jJ5Tv8Yi7bfHU+ZzdK3Bg2ofdw3CN4idBpwGbHkrBEb19CzyvhRFwDow5caPC5qaLB3ki+8JBVy7FxYDUcmGmZBf48W+uK3ydaWpRVWU=; 7:rLdpxGap9gTM33MLXHvX+iUj62MZ/jIwUF1iZng+PTIsS8lD+5OzEDt/FkiemYujpYqmLV4zmGdarJUWOakg76WGW517JyuyNTuHVE4TnnGt9CjUzivcPs1kgwPr8PorCqjuvPLmHfMnVaI4PNvjkYSQb9DaOWcgyMHkGGzCuwulIDakCXCPzm800aMjcuoGWwDBrUkxFg0uzyc5Wua5BSF/eE1A/lcsJel333PkZHYIl2ZCkgnD48qfy4WkyTr0 SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Nov 2017 15:42:41.0302 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: a0932194-16e7-4acb-0184-08d522085a9d X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0502MB3664 Subject: [dpdk-dev] [PATCH 0/3] Fail-safe fix removal handling lack 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, 02 Nov 2017 15:42:43 -0000 There is time between the physical removal of the device until sub-device PMDs get a RMV interrupt. At this time DPDK PMDs and applications still don't know about the removal and may call sub-device control operation which should return an error. This series adjusts the -ENODEV error value to failsafe and mlx PMDs. Matan Azrad (3): net/failsafe: fix removal handling lack net/mlx4: adjust removal error net/mlx5: adjust removal error doc/guides/nics/fail_safe.rst | 7 +++++ doc/guides/prog_guide/env_abstraction_layer.rst | 3 ++ drivers/net/failsafe/failsafe_flow.c | 16 ++++++---- drivers/net/failsafe/failsafe_ops.c | 27 ++++++++++------- drivers/net/failsafe/failsafe_private.h | 8 +++++ drivers/net/mlx4/mlx4.h | 1 + drivers/net/mlx4/mlx4_ethdev.c | 38 +++++++++++++++++++++--- drivers/net/mlx4/mlx4_flow.c | 2 ++ drivers/net/mlx4/mlx4_intr.c | 5 +++- drivers/net/mlx4/mlx4_rxq.c | 1 + drivers/net/mlx4/mlx4_txq.c | 1 + drivers/net/mlx5/mlx5.h | 1 + drivers/net/mlx5/mlx5_ethdev.c | 39 ++++++++++++++++++++++--- drivers/net/mlx5/mlx5_flow.c | 2 ++ drivers/net/mlx5/mlx5_rss.c | 4 +++ drivers/net/mlx5/mlx5_rxq.c | 12 ++++++-- drivers/net/mlx5/mlx5_stats.c | 6 +++- drivers/net/mlx5/mlx5_txq.c | 2 ++ 18 files changed, 147 insertions(+), 28 deletions(-) -- 1.8.3.1