From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 333825588 for ; Fri, 29 Jul 2016 16:43:31 +0200 (CEST) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga101.fm.intel.com with ESMTP; 29 Jul 2016 07:43:30 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.28,440,1464678000"; d="scan'208";a="1031538223" Received: from gklab-246-021.igk.intel.com (HELO HANLANCREEK9755-232) ([10.217.246.21]) by fmsmga002.fm.intel.com with SMTP; 29 Jul 2016 07:43:28 -0700 Received: by HANLANCREEK9755-232 (sSMTP sendmail emulation); Fri, 29 Jul 2016 17:57:07 +0200 From: Marcin Kerlin To: dev@dpdk.org Cc: pablo.de.lara.guarch@intel.com, thomas.monjalon@6wind.com, Marcin Kerlin Date: Fri, 29 Jul 2016 17:56:57 +0200 Message-Id: <1469807819-7905-1-git-send-email-marcinx.kerlin@intel.com> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH 0/2] add ensure consistent device data in multiprocess mode X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 29 Jul 2016 14:43:31 -0000 This patch ensure not overwrite device data in the multiprocess application. 1)Changes in the library introduces continuity in device data rte_eth_dev_data[] common for to all processes. Functionality detach cleans data of detachable device and leaves space for other devices or for the next run app. 2)Changes in application testpmd allow secondary process to attach the mempool created by primary process rather than create new and in the case of quit or force quit to free devices of this process from shared array rte_eth_dev_data[]. Marcin Kerlin (2): lib/librte_ether: ensure not overwrite device data in multiprocess app app/testpmd: fix handling of multiprocess app/test-pmd/testpmd.c | 30 +++++++++++- app/test-pmd/testpmd.h | 1 + lib/librte_ether/rte_ethdev.c | 87 ++++++++++++++++++++++++++++++---- lib/librte_ether/rte_ethdev.h | 23 +++++++++ lib/librte_ether/rte_ether_version.map | 8 ++++ 5 files changed, 139 insertions(+), 10 deletions(-) -- 1.9.1