From: Maxime Coquelin Subject: Re: [PATCH 2/4] vhost: avoid function call in data path Date: Wed, 21 Feb 2018 08:32:53 +0100 Message-ID: <26a5e450-469d-3908-4013-12dfe7584154@redhat.com> References: <1518580892-32656-1-git-send-email-jianfeng.tan@intel.com> <1518580892-32656-3-git-send-email-jianfeng.tan@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Cc: yliu@fridaylinux.org To: Jianfeng Tan , 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 5F73F1B161 for ; Wed, 21 Feb 2018 08:32:56 +0100 (CET) In-Reply-To: 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 02/19/2018 09:48 PM, Maxime Coquelin wrote: > > > On 02/14/2018 05:01 AM, Jianfeng Tan wrote: >> Previously, get_device() is a function call. It's OK for slow path >> configuration, but takes some cycles for data path. >> >> To avoid that, we turn this function to inline type. >> >> Cc: maxime.coquelin@redhat.com >> Cc: yliu@fridaylinux.org >> >> Signed-off-by: Jianfeng Tan >> --- >>   lib/librte_vhost/vhost.c | 13 ------------- >>   lib/librte_vhost/vhost.h | 13 ++++++++++++- >>   2 files changed, 12 insertions(+), 14 deletions(-) > > Reviewed-by: Maxime Coquelin Applied to dpdk-next-virtio/master. Thanks, Maxime