From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: [PATCH] mempool: fix mlx driver loading Date: Fri, 4 Dec 2015 18:07:23 +0100 Message-ID: <1449248843-12070-1-git-send-email-thomas.monjalon@6wind.com> To: dev@dpdk.org Return-path: Received: from mail-wm0-f49.google.com (mail-wm0-f49.google.com [74.125.82.49]) by dpdk.org (Postfix) with ESMTP id 8EFC38E9E for ; Fri, 4 Dec 2015 18:08:37 +0100 (CET) Received: by wmec201 with SMTP id c201so83565362wme.0 for ; Fri, 04 Dec 2015 09:08:37 -0800 (PST) Received: from localhost.localdomain (136-92-190-109.dsl.ovh.fr. [109.190.92.136]) by smtp.gmail.com with ESMTPSA id gl4sm12931539wjd.17.2015.12.04.09.08.36 for (version=TLSv1/SSLv3 cipher=OTHER); Fri, 04 Dec 2015 09:08:36 -0800 (PST) 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" The function rte_mempool_obj_iter used in mlx drivers was not exported. So the driver loading was failing: EAL: open shared lib librte_pmd_mlx4.so EAL: x86_64-native-linuxapp-gcc/lib/librte_pmd_mlx4.so: undefined symbol: rte_mempool_obj_iter Fixes: 9d41beed24b0 ("lib: provide initial versioning") Signed-off-by: Thomas Monjalon --- doc/guides/rel_notes/release_2_2.rst | 5 +++++ lib/librte_mempool/rte_mempool_version.map | 1 + 2 files changed, 6 insertions(+) diff --git a/doc/guides/rel_notes/release_2_2.rst b/doc/guides/rel_notes/release_2_2.rst index 511d7a0..551ff7d 100644 --- a/doc/guides/rel_notes/release_2_2.rst +++ b/doc/guides/rel_notes/release_2_2.rst @@ -197,6 +197,11 @@ Drivers Fixed the issue of not freeing memzone in the call to free the memory for adminq DMA. +* **mlx: Fixed driver loading.** + + The mlx drivers were unable to load when built as a shared library, + due to a missing symbol in mempool library. + * **vhost: Fixed Qemu shutdown.** Fixed issue with libvirt ``virsh destroy`` not killing the VM. diff --git a/lib/librte_mempool/rte_mempool_version.map b/lib/librte_mempool/rte_mempool_version.map index a9e6098..17151e0 100644 --- a/lib/librte_mempool/rte_mempool_version.map +++ b/lib/librte_mempool/rte_mempool_version.map @@ -9,6 +9,7 @@ DPDK_2.0 { rte_mempool_dump; rte_mempool_list_dump; rte_mempool_lookup; + rte_mempool_obj_iter; rte_mempool_walk; rte_mempool_xmem_create; rte_mempool_xmem_size; -- 2.5.2