vhost: do not include net specific headers

Include it internally, at vhost.h.

Signed-off-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
This commit is contained in:
Yuanhan Liu 2017-04-01 15:22:51 +08:00
parent f53cf83980
commit aca49772f6
4 changed files with 13 additions and 4 deletions

View File

@ -305,6 +305,13 @@ API Changes
* ``VIRTIO_TXQ`` * ``VIRTIO_TXQ``
* ``VIRTIO_QNUM`` * ``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 ABI Changes
----------- -----------

View File

@ -36,6 +36,8 @@
#include <sys/queue.h> #include <sys/queue.h>
#include <rte_ether.h>
/* Macros for printing using RTE_LOG */ /* Macros for printing using RTE_LOG */
#define RTE_LOGTYPE_VHOST_CONFIG RTE_LOGTYPE_USER1 #define RTE_LOGTYPE_VHOST_CONFIG RTE_LOGTYPE_USER1
#define RTE_LOGTYPE_VHOST_DATA RTE_LOGTYPE_USER2 #define RTE_LOGTYPE_VHOST_DATA RTE_LOGTYPE_USER2

View File

@ -42,14 +42,10 @@
#include <stdint.h> #include <stdint.h>
#include <linux/vhost.h> #include <linux/vhost.h>
#include <linux/virtio_ring.h> #include <linux/virtio_ring.h>
#include <linux/virtio_net.h>
#include <sys/eventfd.h> #include <sys/eventfd.h>
#include <sys/socket.h>
#include <linux/if.h>
#include <rte_memory.h> #include <rte_memory.h>
#include <rte_mempool.h> #include <rte_mempool.h>
#include <rte_ether.h>
#define RTE_VHOST_USER_CLIENT (1ULL << 0) #define RTE_VHOST_USER_CLIENT (1ULL << 0)
#define RTE_VHOST_USER_NO_RECONNECT (1ULL << 1) #define RTE_VHOST_USER_NO_RECONNECT (1ULL << 1)

View File

@ -39,8 +39,12 @@
#include <sys/queue.h> #include <sys/queue.h>
#include <unistd.h> #include <unistd.h>
#include <linux/vhost.h> #include <linux/vhost.h>
#include <linux/virtio_net.h>
#include <sys/socket.h>
#include <linux/if.h>
#include <rte_log.h> #include <rte_log.h>
#include <rte_ether.h>
#include "rte_virtio_net.h" #include "rte_virtio_net.h"