From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Coquelin Subject: Re: [PATCH 4/7] vhost: fold common message handlers Date: Wed, 24 Aug 2016 10:01:25 +0200 Message-ID: <2267ccd6-e695-eae6-1f95-58e1269da965@redhat.com> References: <1471510123-4984-1-git-send-email-yuanhan.liu@linux.intel.com> <1471510123-4984-5-git-send-email-yuanhan.liu@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit To: Yuanhan Liu , dev@dpdk.org Return-path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 66E5D2B82 for ; Wed, 24 Aug 2016 10:01:28 +0200 (CEST) In-Reply-To: <1471510123-4984-5-git-send-email-yuanhan.liu@linux.intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 08/18/2016 10:48 AM, Yuanhan Liu wrote: > Due to history reason (that we have 2 vhost implementations), some > messages are handled in two calls: vhost specific implementation > handles it first and then invoke the common one to do another handling. > > We have one implementation only now, we could write one method for > each message. Here fold those common handles to corresponding vhost > user handler. > > Signed-off-by: Yuanhan Liu > --- > lib/librte_vhost/vhost_user.c | 115 ++++++++++++------------------------------ > 1 file changed, 31 insertions(+), 84 deletions(-) > Reviewed-by: Maxime Coquelin Thanks, Maxime