From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jianfeng Tan Subject: [PATCH v3 0/3] generic channel for multi-process communication Date: Thu, 25 Jan 2018 04:16:20 +0000 Message-ID: <1516853783-108023-1-git-send-email-jianfeng.tan@intel.com> References: <1512067450-59203-1-git-send-email-jianfeng.tan@intel.com> Cc: anatoly.burakov@intel.com, bruce.richardson@intel.com, konstantin.ananyev@intel.com, thomas@monjalon.net, Jianfeng Tan To: dev@dpdk.org Return-path: Received: from mga03.intel.com (mga03.intel.com [134.134.136.65]) by dpdk.org (Postfix) with ESMTP id 66AF12D13 for ; Thu, 25 Jan 2018 05:14:34 +0100 (CET) In-Reply-To: <1512067450-59203-1-git-send-email-jianfeng.tan@intel.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" v2->v3: - Add pre-check for each APIs. - Remove the limitation of 8 secondary processes by: discard original register/unregister mechanism of secondary process, instead, primary discoveries secondary processes by looking up the folder for regex match. - Previous implementation use two sockets for msg and request, this version just uses one socket. And receive all kinds of messages in mp thread. v1->v2: (Address comments from Anatoly and Konstantin) - Use datagram unix socket to supersede stream unix socket + epoll. - Change the secondary add/del mechanism as now we use connection-less channel. - Add mp_mutex_action to sync action register/unregister/reference. - Limit max length of action name to 64B. - New APIs for synchronous communication: rte_eal_mp_request/rte_eal_mp_reply. - Formalize the errno handle. - Some other small issues. This patchset adds a generic channel for multi-process (primary/secondary) communication. Patch 1: addess the purpose and howto; Patch 2: add a syncrhonous way for the requests which need a immediate response. Patch 3: Rework vfio to use this generic communication channel. Jianfeng Tan (3): eal: add channel for multi-process communication eal: add synchronous multi-process communication vfio: use the generic multi-process channel doc/guides/rel_notes/release_18_02.rst | 15 + lib/librte_eal/common/eal_common_proc.c | 593 ++++++++++++++++++++++++- lib/librte_eal/common/eal_filesystem.h | 17 + lib/librte_eal/common/eal_private.h | 10 + lib/librte_eal/common/include/rte_eal.h | 131 ++++++ lib/librte_eal/linuxapp/eal/eal.c | 22 +- lib/librte_eal/linuxapp/eal/eal_vfio.c | 172 +++---- lib/librte_eal/linuxapp/eal/eal_vfio.h | 15 +- lib/librte_eal/linuxapp/eal/eal_vfio_mp_sync.c | 408 +++-------------- lib/librte_eal/rte_eal_version.map | 6 + 10 files changed, 915 insertions(+), 474 deletions(-) -- 2.7.4