From: Yuanhan Liu Date: Sat, 1 Apr 2017 07:22:51 +0000 (+0800) Subject: vhost: do not include net specific headers X-Git-Tag: spdx-start~3887 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=aca49772f6d3c9969fb5901683e8d06fbf86f98e;p=dpdk.git vhost: do not include net specific headers Include it internally, at vhost.h. Signed-off-by: Yuanhan Liu Reviewed-by: Maxime Coquelin --- diff --git a/doc/guides/rel_notes/release_17_05.rst b/doc/guides/rel_notes/release_17_05.rst index 4759ce8358..598b0471f5 100644 --- a/doc/guides/rel_notes/release_17_05.rst +++ b/doc/guides/rel_notes/release_17_05.rst @@ -305,6 +305,13 @@ API Changes * ``VIRTIO_TXQ`` * ``VIRTIO_QNUM`` + * Following net specific header files are removed in ``rte_virtio_net.h`` + + * ``linux/virtio_net.h`` + * ``sys/socket.h`` + * ``linux/if.h`` + * ``rte_ether.h`` + ABI Changes ----------- diff --git a/examples/vhost/main.h b/examples/vhost/main.h index 7a3d251fc3..ddcd858fe0 100644 --- a/examples/vhost/main.h +++ b/examples/vhost/main.h @@ -36,6 +36,8 @@ #include +#include + /* Macros for printing using RTE_LOG */ #define RTE_LOGTYPE_VHOST_CONFIG RTE_LOGTYPE_USER1 #define RTE_LOGTYPE_VHOST_DATA RTE_LOGTYPE_USER2 diff --git a/lib/librte_vhost/rte_virtio_net.h b/lib/librte_vhost/rte_virtio_net.h index 6e07de9f06..d8e125dcd0 100644 --- a/lib/librte_vhost/rte_virtio_net.h +++ b/lib/librte_vhost/rte_virtio_net.h @@ -42,14 +42,10 @@ #include #include #include -#include #include -#include -#include #include #include -#include #define RTE_VHOST_USER_CLIENT (1ULL << 0) #define RTE_VHOST_USER_NO_RECONNECT (1ULL << 1) diff --git a/lib/librte_vhost/vhost.h b/lib/librte_vhost/vhost.h index 84e379a48a..672098b338 100644 --- a/lib/librte_vhost/vhost.h +++ b/lib/librte_vhost/vhost.h @@ -39,8 +39,12 @@ #include #include #include +#include +#include +#include #include +#include #include "rte_virtio_net.h"