Commit c138dfe2 authored by Dariusz Stojaczyk's avatar Dariusz Stojaczyk Committed by Ben Walker
Browse files

dpdk: include rte_config.h where necessary



DPDK 17.11 removed all rte_config.h includes
from rte_*.h headers, meaning we should either
use gcc param -include rte_config.h (just
like DPDK does), or include this file before
each other rte_*.h include. Since we're using
the latter approach in many places already,
I decided to follow it.

While here, also removed rte_vdev.h dependency
from rte_virtio/virtio_user.c. It's not used
anyway.

Change-Id: I865ee9f828211c03a60fd0446f7a418d5dddd140
Signed-off-by: default avatarDariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/387653


Tested-by: default avatarSPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
parent 3c293a88
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -35,6 +35,7 @@

#include <linux/virtio_scsi.h>

#include <rte_config.h>
#include <rte_memcpy.h>
#include <rte_string_fns.h>
#include <rte_memzone.h>
+1 −0
Original line number Diff line number Diff line
@@ -38,6 +38,7 @@

#include <linux/virtio_ring.h>

#include <rte_config.h>
#include <rte_memory.h>
#include <rte_mempool.h>

+1 −1
Original line number Diff line number Diff line
@@ -37,8 +37,8 @@

#include <linux/virtio_scsi.h>

#include <rte_config.h>
#include <rte_malloc.h>
#include <rte_vdev.h>
#include <rte_alarm.h>

#include "virtio_dev.h"
+1 −0
Original line number Diff line number Diff line
@@ -44,6 +44,7 @@
#include <linux/virtio_ring.h>
#include <sys/eventfd.h>

#include <rte_config.h>
#include <rte_memory.h>
#include <rte_mempool.h>