From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Coquelin Subject: Re: [PATCH v5 4/5] vhost: adapt vhost lib for selective datapath Date: Tue, 3 Apr 2018 10:05:49 +0200 Message-ID: References: <1517614137-62926-1-git-send-email-zhihong.wang@intel.com> <20180402114656.17090-1-zhihong.wang@intel.com> <20180402114656.17090-5-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 45C9E1B640 for ; Tue, 3 Apr 2018 10:05:55 +0200 (CEST) In-Reply-To: <20180402114656.17090-5-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 adapts vhost lib for selective datapath by calling device ops > at the corresponding stage. > > Signed-off-by: Zhihong Wang > --- > Changes in v5: > > 1. Improve sanity check. > > --- > Changes in v4: > > 1. Remove the "engine" concept in the lib. > > --- > Changes in v2: > > 1. Ensure negotiated capabilities are supported in vhost-user lib. > > 2. Configure the data path at the right time. > > lib/librte_vhost/rte_vhost.h | 27 ++++++++ > lib/librte_vhost/rte_vhost_version.map | 2 + > lib/librte_vhost/socket.c | 113 +++++++++++++++++++++++++++++++-- > lib/librte_vhost/vhost.c | 6 ++ > lib/librte_vhost/vhost.h | 2 + > lib/librte_vhost/vhost_user.c | 70 ++++++++++++++++++-- > 6 files changed, 211 insertions(+), 9 deletions(-) Reviewed-by: Maxime Coquelin Thanks, Maxime