From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matan Azrad Subject: [PATCH 0/3] Fail-safe fix removal handling lack Date: Thu, 2 Nov 2017 15:42:01 +0000 Message-ID: <1509637324-13525-1-git-send-email-matan@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain Cc: dev@dpdk.org To: Adrien Mazarguil , Gaetan Rivet 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) List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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