From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: Re: [PATCH v3 08/20] vhost: introduce new API to export numa node Date: Tue, 7 Jun 2016 20:45:44 +0800 Message-ID: <20160607124544.GJ10038@yliu-dev.sh.intel.com> References: <1463117111-27050-1-git-send-email-yuanhan.liu@linux.intel.com> <1465271530-27878-1-git-send-email-yuanhan.liu@linux.intel.com> <1465271530-27878-9-git-send-email-yuanhan.liu@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: dev@dpdk.org, huawei.xie@intel.com, Thomas Monjalon , Traynor Kevin , Rich Lane , Tetsuya Mukawa To: Panu Matilainen Return-path: Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by dpdk.org (Postfix) with ESMTP id 85765803B for ; Tue, 7 Jun 2016 14:44:48 +0200 (CEST) Content-Disposition: inline In-Reply-To: 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 Tue, Jun 07, 2016 at 02:42:58PM +0300, Panu Matilainen wrote: > On 06/07/2016 06:51 AM, Yuanhan Liu wrote: > >Introduce a new API rte_vhost_get_numa_node() to get the numa node > >from which the virtio_net struct is allocated. > > > >Signed-off-by: Yuanhan Liu > >Tested-by: Rich Lane > >Acked-by: Rich Lane > >--- > > drivers/net/vhost/rte_eth_vhost.c | 13 ++++--------- > > lib/librte_vhost/rte_vhost_version.map | 7 +++++++ > > lib/librte_vhost/rte_virtio_net.h | 12 ++++++++++++ > > lib/librte_vhost/virtio-net.c | 26 ++++++++++++++++++++++++++ > > 4 files changed, 49 insertions(+), 9 deletions(-) > > > [...] > >diff --git a/lib/librte_vhost/rte_vhost_version.map b/lib/librte_vhost/rte_vhost_version.map > >index 3d8709e..bf7b000 100644 > >--- a/lib/librte_vhost/rte_vhost_version.map > >+++ b/lib/librte_vhost/rte_vhost_version.map > >@@ -20,3 +20,10 @@ DPDK_2.1 { > > rte_vhost_driver_unregister; > > > > } DPDK_2.0; > >+ > >+DPDK_16.07 { > >+ global: > >+ > >+ rte_vhost_get_numa_node; > >+ > >+} DPDK_16.04; > > This fails to compile in shared library configuration: > > LD librte_vhost.so.3.1 > /usr/bin/ld: unable to find version dependency `DPDK_16.04' > collect2: error: ld returned 1 exit status > > Problem obviously being that DPDK_16.04 does not exist, the most recent > version symbol for librte_vhost is DPDK_2.1 so you need to inherit from that > instead. Panu, thanks for the catching, and will fix it. --yliu