Backport patch to link testpmd with virtio pmd 75/9475/1
authorLuca Boccassi <luca.boccassi@gmail.com>
Fri, 17 Nov 2017 16:53:24 +0000 (16:53 +0000)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 17 Nov 2017 16:57:40 +0000 (16:57 +0000)
Change-Id: I06b7d54ca198ba82a326691391491542ae2eb3af
Signed-off-by: Luca Boccassi <luca.boccassi@gmail.com>
debian/patches/series
debian/patches/testpmd-link-virtio.patch [new file with mode: 0644]

index 5722b39..5034d58 100644 (file)
@@ -1 +1,2 @@
 fix-vhost-user-socket-permission.patch
+testpmd-link-virtio.patch
diff --git a/debian/patches/testpmd-link-virtio.patch b/debian/patches/testpmd-link-virtio.patch
new file mode 100644 (file)
index 0000000..8386f75
--- /dev/null
@@ -0,0 +1,21 @@
+Description: app/testpmd: link with virtio PMD when using shared libraries
+ 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.
+Origin: http://dpdk.org/dev/patchwork/patch/31459/
+Forwarded: yes
+Author: Timothy Redaelli <tredaelli@redhat.com>
+Last-Update: 2017-11-17
+--- a/app/test-pmd/Makefile
++++ b/app/test-pmd/Makefile
+@@ -91,6 +91,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