vhost: fix linkage of driver with library
authorTetsuya Mukawa <mukawa@igel.co.jp>
Tue, 26 Apr 2016 05:39:29 +0000 (14:39 +0900)
committerYuanhan Liu <yuanhan.liu@linux.intel.com>
Tue, 10 May 2016 17:57:10 +0000 (10:57 -0700)
commit8180554d82b311ec04c07e294e93d05078244272
treeb5a681961efe7e000e23c88af4667b89dbd6a94e
parentc6417ce61f83702fb1114572100f55a89deb8fa9
vhost: fix linkage of driver with library

Currently, vhost PMD doesn't have linkage for librte_vhost, even though
it depends on librte_vhost APIs. This causes a linkage error if below
conditions are fulfilled.

 - DPDK libraries are compiled as shared libraries.
 - DPDK application doesn't link librte_vhost.
 - Above application tries to link vhost PMD using '-d' DPDK option.

The patch adds linkage for librte_vhost to vhost PMD not to cause an
above error.

Fixes: ee584e9710b9 ("vhost: add driver on top of the library")

Signed-off-by: Tetsuya Mukawa <mukawa@igel.co.jp>
Acked-by: Panu Matilainen <pmatilai@redhat.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
drivers/net/vhost/Makefile