From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr0-f170.google.com (mail-wr0-f170.google.com [209.85.128.170]) by dpdk.org (Postfix) with ESMTP id 57C91F610 for ; Fri, 3 Mar 2017 16:40:35 +0100 (CET) Received: by mail-wr0-f170.google.com with SMTP id l37so76292245wrc.1 for ; Fri, 03 Mar 2017 07:40:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=6wind-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=ZmMgFHRpdq6eBkLzZ6lxn09cNvdjM/cAoEryUIdN4fQ=; b=oyuzSUTnKSimY6KnycotuXZFx+Z29YvLlg8/JoGSeu98UBH8wZbN+wTODsPhrihY/U igtuCfH82CH7512LLwUXGkSUnVlSs8OLkoCX6z8KDgBP+S/bxWOv4wcZQ0V7a/LsLTxu Ti1Wz4rcVSEYMyqynIQkn36tID5yguCXcdJckWJk7fUbWs8FfGU+zBx+Hh/PqWXqAElP D6smVXp0yW3gbVPT5WJuCLqL3feyJtXMgr98xJq7TFMOthbBYk79PsLPGRus7hN26kDT WuE6BqqD34+17MTHfZHG00mOtDfk9qCa0BkJB2bk74BeR5On+E2SecpAMyTW6BsKOdtB awEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=ZmMgFHRpdq6eBkLzZ6lxn09cNvdjM/cAoEryUIdN4fQ=; b=jbDL/woxMhEMnvrKYyzkN9/rmDHPZsLHQ9qD0lcdyJUuOQLjOl7xBagQ1eRyATIlP8 bphiNiYJLVjqO+XSRHcmxSMQj0/n7CQBxPPAv5CRjfRO82NuoodImL99xHTTQcnHy3F8 KRbgJr2EI7n2J7mOGLjfo8lD6kfwGBvLXcJ371IqGVdYK+6h42Fyf94alcyrsPtY+X21 yBCG7cncd/V9RHnjj8dL7qcWWopG+yEO2IFuCIUKlibyD2xkHnoFw0AGAj6wXWxHrIet 4qCQA4LTrV2xk8aqOhbIX7jFJ4tW/UV7EQehdFOcsSBqgXEyNyVkfkSYa8CG4XELnvcV nCdA== X-Gm-Message-State: AMke39kgR20K4x82eEPi7CURBkukKlMnL5v3diqBuDP+Y8AmenW5qwJBy3Z1zVYnoS8X3IXW X-Received: by 10.223.152.215 with SMTP id w81mr3604149wrb.151.1488555634986; Fri, 03 Mar 2017 07:40:34 -0800 (PST) Received: from bidouze.dev.6wind.com (host.78.145.23.62.rev.coltfrance.com. [62.23.145.78]) by smtp.gmail.com with ESMTPSA id i15sm3486899wmf.21.2017.03.03.07.40.34 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Mar 2017 07:40:34 -0800 (PST) From: Gaetan Rivet To: dev@dpdk.org Cc: Thomas Monjalon , Jingjing Wu , Adrien Mazarguil , Nelio Laranjeiro Date: Fri, 3 Mar 2017 16:40:18 +0100 Message-Id: X-Mailer: git-send-email 2.1.4 Subject: [dpdk-dev] [PATCH 0/5] add device removal event 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: Fri, 03 Mar 2017 15:40:35 -0000 This new event represents the sudden removal of a device from its bus. The underlying resources exposed by the bus are expected not to be available anymore. The application should thus be able to react and possibly clean up related resources that it reserved for the removed device. This event is different from the current hotplug API available in the DPDK for two reasons: 1. It is a reactive design: the application reacts to a device that has been removed instead of removing a device from its pool. 2. The event itself is going further than the current detaching of a device from a DPDK application. If the bus is a hardware one, it is expected of the underlying resources to not be available anymore. This series adds a new event type to ethdev and implements it in mlx4. Testpmd is also updated to report all asynchronous ethdev events including this one for testing purposes and as a practical usage example. This series depends on the series titled [PATCH 1/2] net/mlx4: split the definitions to the header file Gaetan Rivet (5): ethdev: introduce device removal event net/mlx4: device removal event support app/testpmd: generic event handler app/testpmd: request link status interrupt app/testpmd: request device removal interrupt app/test-pmd/parameters.c | 8 + app/test-pmd/testpmd.c | 103 ++++++++++ app/test-pmd/testpmd.h | 2 + doc/guides/nics/features/default.ini | 1 + doc/guides/nics/features/mlx4.ini | 1 + doc/guides/prog_guide/env_abstraction_layer.rst | 21 +- drivers/net/mlx4/mlx4.c | 258 ++++++++++++++++++++---- drivers/net/mlx4/mlx4.h | 1 + lib/librte_eal/common/include/rte_pci.h | 2 + lib/librte_ether/rte_ethdev.c | 13 +- lib/librte_ether/rte_ethdev.h | 9 +- 11 files changed, 375 insertions(+), 44 deletions(-) -- 2.1.4