From mboxrd@z Thu Jan 1 00:00:00 1970 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) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0875640201A1; Wed, 21 Feb 2018 07:32:56 +0000 (UTC) Received: from [10.36.112.33] (ovpn-112-33.ams2.redhat.com [10.36.112.33]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 45F2EAFD78; Wed, 21 Feb 2018 07:32:55 +0000 (UTC) From: Maxime Coquelin To: Jianfeng Tan , dev@dpdk.org Cc: yliu@fridaylinux.org References: <1518580892-32656-1-git-send-email-jianfeng.tan@intel.com> <1518580892-32656-3-git-send-email-jianfeng.tan@intel.com> Message-ID: <26a5e450-469d-3908-4013-12dfe7584154@redhat.com> Date: Wed, 21 Feb 2018 08:32:53 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Wed, 21 Feb 2018 07:32:56 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Wed, 21 Feb 2018 07:32:56 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'maxime.coquelin@redhat.com' RCPT:'' Subject: Re: [dpdk-dev] [PATCH 2/4] vhost: avoid function call in data path 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: Wed, 21 Feb 2018 07:32:56 -0000 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