[dpdk-dev] [PATCH v3 08/20] vhost: introduce new API to export numa node

Yuanhan Liu yuanhan.liu at linux.intel.com
Tue Jun 7 14:45:44 CEST 2016


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 <yuanhan.liu at linux.intel.com>
> >Tested-by: Rich Lane <rich.lane at bigswitch.com>
> >Acked-by: Rich Lane <rich.lane at bigswitch.com>
> >---
> > 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


More information about the dev mailing list