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: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/387653
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
Dariusz Stojaczyk 2017-11-15 14:52:32 +01:00 committed by Ben Walker
parent 3c293a883c
commit c138dfe229
4 changed files with 4 additions and 1 deletions

View File

@ -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>

View File

@ -38,6 +38,7 @@
#include <linux/virtio_ring.h>
#include <rte_config.h>
#include <rte_memory.h>
#include <rte_mempool.h>

View File

@ -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"

View File

@ -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>