From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matan Azrad Subject: [PATCH v2 0/6] ethdev: port ownership Date: Sun, 7 Jan 2018 09:45:45 +0000 Message-ID: <1515318351-4756-1-git-send-email-matan@mellanox.com> References: <1511870281-15282-1-git-send-email-matan@mellanox.com> Mime-Version: 1.0 Content-Type: text/plain Cc: dev@dpdk.org, Neil Horman , Bruce Richardson , Konstantin Ananyev To: Thomas Monjalon , Gaetan Rivet , Jingjing Wu Return-path: Received: from EUR01-HE1-obe.outbound.protection.outlook.com (mail-he1eur01on0066.outbound.protection.outlook.com [104.47.0.66]) by dpdk.org (Postfix) with ESMTP id 5875A1B04C for ; Sun, 7 Jan 2018 10:46:26 +0100 (CET) In-Reply-To: <1511870281-15282-1-git-send-email-matan@mellanox.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Add ownership mechanism to DPDK Ethernet devices to avoid multiple management of a device by different DPDK entities. V2: Synchronize ethdev port creation. Synchronize port ownership mechanism. Rename owner remove API to rte_eth_dev_owner_unset. Remove "ethdev: free a port by a dedicated API" patch - passed to another series. Add "ethdev: fix port data reset timing" patch. Cahnge owner get API to return int value and to pass copy of the owner structure. Adjust testpmd to the improved owner get API. Adjust documentations. Points: 1. rte_eth_dev_owner_claim API was suggested as a blocked API to set owner, I didn't find use case for this. 2. Add comments for all APIs which are required ownership setting before the calling - still was not done, other suggestions? Matan Azrad (6): ethdev: fix port data reset timing ethdev: add port ownership ethdev: synchronize port allocation net/failsafe: free an eth port by a dedicated API net/failsafe: use ownership mechanism to own ports app/testpmd: adjust ethdev port ownership app/test-pmd/cmdline.c | 88 +++++------- app/test-pmd/cmdline_flow.c | 2 +- app/test-pmd/config.c | 37 ++--- app/test-pmd/parameters.c | 4 +- app/test-pmd/testpmd.c | 63 ++++++--- app/test-pmd/testpmd.h | 3 + config/common_base | 4 +- doc/guides/prog_guide/poll_mode_drv.rst | 14 +- drivers/net/failsafe/failsafe.c | 7 + drivers/net/failsafe/failsafe_eal.c | 10 ++ drivers/net/failsafe/failsafe_ether.c | 2 +- drivers/net/failsafe/failsafe_private.h | 2 + lib/librte_ether/rte_ethdev.c | 243 +++++++++++++++++++++++++++++--- lib/librte_ether/rte_ethdev.h | 89 ++++++++++++ lib/librte_ether/rte_ethdev_version.map | 12 ++ 15 files changed, 462 insertions(+), 118 deletions(-) -- 1.8.3.1