From mboxrd@z Thu Jan 1 00:00:00 1970 From: Yuanhan Liu Subject: [PATCH v4 13/22] vhost: do not include net specific headers Date: Sat, 1 Apr 2017 15:22:51 +0800 Message-ID: <1491031380-1499-14-git-send-email-yuanhan.liu@linux.intel.com> References: <1490705142-893-1-git-send-email-yuanhan.liu@linux.intel.com> <1491031380-1499-1-git-send-email-yuanhan.liu@linux.intel.com> Cc: Maxime Coquelin , Harris James R , Liu Changpeng , Yuanhan Liu To: dev@dpdk.org Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 1D9732C02 for ; Sat, 1 Apr 2017 09:25:53 +0200 (CEST) In-Reply-To: <1491031380-1499-1-git-send-email-yuanhan.liu@linux.intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Include it internally, at vhost.h. Signed-off-by: Yuanhan Liu Reviewed-by: Maxime Coquelin --- v2: - update release note --- doc/guides/rel_notes/release_17_05.rst | 7 +++++++ examples/vhost/main.h | 2 ++ lib/librte_vhost/rte_virtio_net.h | 4 ---- lib/librte_vhost/vhost.h | 4 ++++ 4 files changed, 13 insertions(+), 4 deletions(-) diff --git a/doc/guides/rel_notes/release_17_05.rst b/doc/guides/rel_notes/release_17_05.rst index 471a509..ebc28f5 100644 --- a/doc/guides/rel_notes/release_17_05.rst +++ b/doc/guides/rel_notes/release_17_05.rst @@ -217,6 +217,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 7a3d251..ddcd858 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 c6e11e9..9915751 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 84e379a..672098b 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" -- 1.9.0