From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Coquelin Subject: Re: [PATCH v5 3/5] vhost: add apis for datapath configuration Date: Tue, 3 Apr 2018 10:07:35 +0200 Message-ID: References: <1517614137-62926-1-git-send-email-zhihong.wang@intel.com> <20180402114656.17090-1-zhihong.wang@intel.com> <20180402114656.17090-4-zhihong.wang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Cc: jianfeng.tan@intel.com, tiwei.bie@intel.com, yliu@fridaylinux.org, cunming.liang@intel.com, xiao.w.wang@intel.com, dan.daly@intel.com To: Zhihong Wang , dev@dpdk.org Return-path: Received: from mx1.redhat.com (mx3-rdu2.redhat.com [66.187.233.73]) by dpdk.org (Postfix) with ESMTP id B2B901B662 for ; Tue, 3 Apr 2018 10:07:39 +0200 (CEST) In-Reply-To: <20180402114656.17090-4-zhihong.wang@intel.com> Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 04/02/2018 01:46 PM, Zhihong Wang wrote: > This patch adds APIs for datapath configuration. > > The did of the vhost-user socket can be set to identify the backend device, > in this case each vhost-user socket can have only 1 connection. The did is > set to -1 by default when the software datapath is used. > > Signed-off-by: Zhihong Wang > --- > Changes in v5: > > 1. Rename APIs for better description. > > 2. Improve sanity check. > > --- > Changes in v4: > > 1. Remove the "engine" concept in the lib. > > lib/librte_vhost/rte_vhost.h | 46 +++++++++++++++++++++++++++++ > lib/librte_vhost/rte_vhost_version.map | 4 +++ > lib/librte_vhost/socket.c | 53 ++++++++++++++++++++++++++++++++++ > lib/librte_vhost/vhost.c | 36 +++++++++++++++++++++++ > lib/librte_vhost/vhost.h | 10 +++++++ > 5 files changed, 149 insertions(+) Reviewed-by: Maxime Coquelin Thanks, Maxime