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:
parent
3c293a883c
commit
c138dfe229
@ -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>
|
||||
|
@ -38,6 +38,7 @@
|
||||
|
||||
#include <linux/virtio_ring.h>
|
||||
|
||||
#include <rte_config.h>
|
||||
#include <rte_memory.h>
|
||||
#include <rte_mempool.h>
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user