On 17/11/17 17:19, Timothy Redaelli wrote:
testpmd is often used inside a VM to test the OVS PVP scenario.
This commit makes testpmd to link to virtio PMD when DPDK is built as
shared libraries too.

Signed-off-by: Timothy Redaelli <tredae...@redhat.com>
---
  app/test-pmd/Makefile | 4 ++++
  1 file changed, 4 insertions(+)

diff --git a/app/test-pmd/Makefile b/app/test-pmd/Makefile
index 4993c9184..ffc370f0e 100644
--- a/app/test-pmd/Makefile
+++ b/app/test-pmd/Makefile
@@ -87,6 +87,10 @@ ifeq ($(CONFIG_RTE_LIBRTE_PMD_SOFTNIC),y)
  LDLIBS += -lrte_pmd_softnic
  endif
+ifeq ($(CONFIG_RTE_LIBRTE_VIRTIO_PMD),y)
+LDLIBS += -lrte_pmd_virtio
+endif
+
  endif
CFLAGS_cmdline.o := -D_GNU_SOURCE


Acked-by: Eelco Chaudron <echau...@redhat.com>

Reply via email to