[dpdk-dev] net/vhost: remove include of numaif.h.

Message ID 20170227045411.20525-1-rami.rosen@intel.com (mailing list archive)
State Accepted, archived
Delegated to: Yuanhan Liu
Headers

Checks

Context Check Description
ci/checkpatch warning coding style issues
ci/Intel-compilation success Compilation OK

Commit Message

Rami Rosen Feb. 27, 2017, 4:54 a.m. UTC
  This patch revmoves include of the numaif.h header from rte_eth_vhost.c.
Commit 586e3 ("vhost: export numa node") moved
the invocation of get_mempolicy() from rte_eth_vhost.c to librte_vhost/virtio-net.c,
so there is no need to include the numaif.h header anymore in
drivers/net/vhost/rte_eth_vhost.c.

Signed-off-by: Rami Rosen <rami.rosen@intel.com>
---
 drivers/net/vhost/rte_eth_vhost.c | 3 ---
 1 file changed, 3 deletions(-)
  

Comments

Yuanhan Liu Feb. 28, 2017, 2:40 a.m. UTC | #1
On Sun, Feb 26, 2017 at 11:54:11PM -0500, Rami Rosen wrote:
> This patch revmoves include of the numaif.h header from rte_eth_vhost.c.
> Commit 586e3 ("vhost: export numa node") moved
> the invocation of get_mempolicy() from rte_eth_vhost.c to librte_vhost/virtio-net.c,
> so there is no need to include the numaif.h header anymore in
> drivers/net/vhost/rte_eth_vhost.c.

Applied to dpdk-next-virtio.

Thanks.

	--yliu
  

Patch

diff --git a/drivers/net/vhost/rte_eth_vhost.c b/drivers/net/vhost/rte_eth_vhost.c
index e98cffd..62ccb74 100644
--- a/drivers/net/vhost/rte_eth_vhost.c
+++ b/drivers/net/vhost/rte_eth_vhost.c
@@ -33,9 +33,6 @@ 
 #include <unistd.h>
 #include <pthread.h>
 #include <stdbool.h>
-#ifdef RTE_LIBRTE_VHOST_NUMA
-#include <numaif.h>
-#endif
 
 #include <rte_mbuf.h>
 #include <rte_ethdev.h>