[dpdk-dev] vhost: fix missing dependency on librte_net

Message ID 1455796069-1260-1-git-send-email-viktorin@rehivetech.com (mailing list archive)
State Rejected, archived
Headers

Commit Message

Jan Viktorin Feb. 18, 2016, 11:47 a.m. UTC
  This patch fixes the following build regression:

lib/librte_vhost/vhost_rxtx.c: At top level:
lib/librte_vhost/vhost_rxtx.c:41:20: fatal error: rte_ip.h: No such file or directory
 #include <rte_ip.h>
                    ^
		    compilation terminated.

Fixes: d0cf91303d73 ("vhost: add Tx offload capabilities")

Signed-off-by: Jan Viktorin <viktorin@rehivetech.com>
---
 lib/librte_vhost/Makefile | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Panu Matilainen Feb. 18, 2016, 12:19 p.m. UTC | #1
On 02/18/2016 01:47 PM, Jan Viktorin wrote:
> This patch fixes the following build regression:
>
> lib/librte_vhost/vhost_rxtx.c: At top level:
> lib/librte_vhost/vhost_rxtx.c:41:20: fatal error: rte_ip.h: No such file or directory
>   #include <rte_ip.h>
>                      ^
> 		    compilation terminated.
>
> Fixes: d0cf91303d73 ("vhost: add Tx offload capabilities")
>
> Signed-off-by: Jan Viktorin <viktorin@rehivetech.com>
> ---
>   lib/librte_vhost/Makefile | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/lib/librte_vhost/Makefile b/lib/librte_vhost/Makefile
> index 035b569..ef9bbae 100644
> --- a/lib/librte_vhost/Makefile
> +++ b/lib/librte_vhost/Makefile
> @@ -65,5 +65,6 @@ SYMLINK-$(CONFIG_RTE_LIBRTE_VHOST)-include += rte_virtio_net.h
>   DEPDIRS-$(CONFIG_RTE_LIBRTE_VHOST) += lib/librte_eal
>   DEPDIRS-$(CONFIG_RTE_LIBRTE_VHOST) += lib/librte_ether
>   DEPDIRS-$(CONFIG_RTE_LIBRTE_VHOST) += lib/librte_mbuf
> +DEPDIRS-$(CONFIG_RTE_LIBRTE_VHOST) += lib/librte_net
>
>   include $(RTE_SDK)/mk/rte.lib.mk
>

I sent the same patch a few hours ago :)
http://dpdk.org/ml/archives/dev/2016-February/033427.html

	- Panu -
  

Patch

diff --git a/lib/librte_vhost/Makefile b/lib/librte_vhost/Makefile
index 035b569..ef9bbae 100644
--- a/lib/librte_vhost/Makefile
+++ b/lib/librte_vhost/Makefile
@@ -65,5 +65,6 @@  SYMLINK-$(CONFIG_RTE_LIBRTE_VHOST)-include += rte_virtio_net.h
 DEPDIRS-$(CONFIG_RTE_LIBRTE_VHOST) += lib/librte_eal
 DEPDIRS-$(CONFIG_RTE_LIBRTE_VHOST) += lib/librte_ether
 DEPDIRS-$(CONFIG_RTE_LIBRTE_VHOST) += lib/librte_mbuf
+DEPDIRS-$(CONFIG_RTE_LIBRTE_VHOST) += lib/librte_net
 
 include $(RTE_SDK)/mk/rte.lib.mk