8386f7501cb74f2d586ad76a3c2b8aca2434bf53
[deb_dpdk.git] / debian / patches / testpmd-link-virtio.patch
1 Description: app/testpmd: link with virtio PMD when using shared libraries
2  testpmd is often used inside a VM to test the OVS PVP scenario.
3  This commit makes testpmd to link to virtio PMD when DPDK is built as
4  shared libraries too.
5 Origin: http://dpdk.org/dev/patchwork/patch/31459/
6 Forwarded: yes
7 Author: Timothy Redaelli <tredaelli@redhat.com>
8 Last-Update: 2017-11-17
9 --- a/app/test-pmd/Makefile
10 +++ b/app/test-pmd/Makefile
11 @@ -91,6 +91,10 @@ ifeq ($(CONFIG_RTE_LIBRTE_PMD_SOFTNIC),y)
12  LDLIBS += -lrte_pmd_softnic
13  endif
14  
15 +ifeq ($(CONFIG_RTE_LIBRTE_VIRTIO_PMD),y)
16 +LDLIBS += -lrte_pmd_virtio
17 +endif
18 +
19  endif
20  
21  CFLAGS_cmdline.o := -D_GNU_SOURCE