From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id E61FB1B1B6 for ; Thu, 11 Jan 2018 05:05:47 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga006.fm.intel.com ([10.253.24.20]) by orsmga101.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 10 Jan 2018 20:05:46 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,343,1511856000"; d="scan'208";a="194041979" Received: from dpdk06.sh.intel.com ([10.67.110.196]) by fmsmga006.fm.intel.com with ESMTP; 10 Jan 2018 20:05:45 -0800 From: Jianfeng Tan To: dev@dpdk.org Cc: anatoly.burakov@intel.com, bruce.richardson@intel.com, konstantin.ananyev@intel.com, thomas@monjalon.net, Jianfeng Tan Date: Thu, 11 Jan 2018 04:07:30 +0000 Message-Id: <1515643654-129489-1-git-send-email-jianfeng.tan@intel.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1512067450-59203-1-git-send-email-jianfeng.tan@intel.com> References: <1512067450-59203-1-git-send-email-jianfeng.tan@intel.com> Subject: [dpdk-dev] [PATCH v2 0/4] generic channel for multi-process communication 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: Thu, 11 Jan 2018 04:05:48 -0000 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: secondary process add/del; Patch 3: add a syncrhonous way for the requests which need a immediate response. Patch 4: Rework vfio to use this generic communication channel. Jianfeng Tan (4): eal: add channel for multi-process communication eal: add and del secondary processes in the primary eal: add synchronous multi-process communication vfio: use the generic multi-process channel lib/librte_eal/common/eal_common_proc.c | 594 +++++++++++++++++++++++++ lib/librte_eal/common/eal_filesystem.h | 17 + lib/librte_eal/common/eal_private.h | 10 + lib/librte_eal/common/include/rte_eal.h | 138 ++++++ lib/librte_eal/linuxapp/eal/eal.c | 22 +- lib/librte_eal/linuxapp/eal/eal_vfio.c | 133 ++---- lib/librte_eal/linuxapp/eal/eal_vfio.h | 15 +- lib/librte_eal/linuxapp/eal/eal_vfio_mp_sync.c | 409 +++-------------- lib/librte_eal/rte_eal_version.map | 11 + 9 files changed, 872 insertions(+), 477 deletions(-) -- 2.7.4