bus: move IOVA definition from header
iova enum definition does not need to be defined as part of the bus API. Move it to rte_eal.h. With this step, rte_eal.h does not depend on rte_bus.h and rte_dev.h. Fix existing code that was relying on these implicit inclusions. Signed-off-by: David Marchand <david.marchand@redhat.com> Acked-by: Bruce Richardson <bruce.richardson@intel.com>
This commit is contained in:
parent
84aaf06d81
commit
770ebc060e
@ -5,6 +5,8 @@
|
||||
#ifndef _COMP_PERF_OPS_
|
||||
#define _COMP_PERF_OPS_
|
||||
|
||||
#include <rte_dev.h>
|
||||
|
||||
#define MAX_LIST 32
|
||||
#define MIN_COMPRESSED_BUF_SIZE 8
|
||||
#define EXPANSE_RATIO 1.1
|
||||
|
@ -26,6 +26,7 @@
|
||||
#include <rte_memcpy.h>
|
||||
#include <rte_memzone.h>
|
||||
#include <rte_launch.h>
|
||||
#include <rte_bus.h>
|
||||
#include <rte_eal.h>
|
||||
#include <rte_per_lcore.h>
|
||||
#include <rte_lcore.h>
|
||||
|
@ -32,6 +32,7 @@
|
||||
#include <rte_memory.h>
|
||||
#include <rte_memcpy.h>
|
||||
#include <rte_launch.h>
|
||||
#include <rte_bus.h>
|
||||
#include <rte_eal.h>
|
||||
#include <rte_alarm.h>
|
||||
#include <rte_per_lcore.h>
|
||||
|
@ -4,6 +4,7 @@
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include <rte_dev.h>
|
||||
#include <rte_common.h>
|
||||
#include <rte_malloc.h>
|
||||
|
||||
|
@ -3,6 +3,7 @@
|
||||
* Copyright 2017 Mellanox Technologies, Ltd
|
||||
*/
|
||||
|
||||
#include <rte_bus.h>
|
||||
#include <rte_string_fns.h>
|
||||
#include <rte_malloc.h>
|
||||
|
||||
|
@ -8,6 +8,8 @@
|
||||
#include <cmdline_parse_num.h>
|
||||
#include <cmdline_parse_string.h>
|
||||
#include <cmdline.h>
|
||||
|
||||
#include <rte_bus.h>
|
||||
#include <rte_ethdev.h>
|
||||
|
||||
/**********************************************************/
|
||||
|
@ -8,6 +8,7 @@
|
||||
|
||||
#include <rte_string_fns.h>
|
||||
#include <rte_malloc.h>
|
||||
#include <rte_dev.h>
|
||||
#include <rte_eal.h>
|
||||
#include <rte_memzone.h>
|
||||
|
||||
|
@ -7,6 +7,7 @@
|
||||
#include <rte_string_fns.h>
|
||||
#include <rte_malloc.h>
|
||||
#include <rte_kvargs.h>
|
||||
#include <rte_dev.h>
|
||||
#include <rte_eal.h>
|
||||
|
||||
#include "rte_compressdev_internal.h"
|
||||
|
@ -4,6 +4,8 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <sys/queue.h>
|
||||
|
||||
#include <rte_dev.h>
|
||||
#include <rte_errno.h>
|
||||
#include <rte_string_fns.h>
|
||||
#include <rte_malloc.h>
|
||||
|
@ -5,6 +5,7 @@
|
||||
#ifndef EAL_THREAD_H
|
||||
#define EAL_THREAD_H
|
||||
|
||||
#include <rte_common.h>
|
||||
#include <rte_lcore.h>
|
||||
|
||||
/**
|
||||
|
@ -4,6 +4,7 @@
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
|
||||
#include <rte_bus.h>
|
||||
#include <rte_eal.h>
|
||||
#include <rte_errno.h>
|
||||
#include <rte_alarm.h>
|
||||
|
@ -20,27 +20,13 @@ extern "C" {
|
||||
|
||||
#include <stdio.h>
|
||||
|
||||
#include <rte_log.h>
|
||||
#include <rte_dev.h>
|
||||
#include <rte_eal.h>
|
||||
#include <rte_log.h>
|
||||
|
||||
/** Double linked list of buses */
|
||||
RTE_TAILQ_HEAD(rte_bus_list, rte_bus);
|
||||
|
||||
|
||||
/**
|
||||
* IOVA mapping mode.
|
||||
*
|
||||
* IOVA mapping mode is iommu programming mode of a device.
|
||||
* That device (for example: IOMMU backed DMA device) based
|
||||
* on rte_iova_mode will generate physical or virtual address.
|
||||
*
|
||||
*/
|
||||
enum rte_iova_mode {
|
||||
RTE_IOVA_DC = 0, /* Don't care mode */
|
||||
RTE_IOVA_PA = (1 << 0), /* DMA using physical address */
|
||||
RTE_IOVA_VA = (1 << 1) /* DMA using virtual address */
|
||||
};
|
||||
|
||||
/**
|
||||
* Bus specific scan for devices attached on the bus.
|
||||
* For each bus object, the scan would be responsible for finding devices and
|
||||
|
@ -17,7 +17,6 @@
|
||||
#include <rte_config.h>
|
||||
#include <rte_compat.h>
|
||||
#include <rte_per_lcore.h>
|
||||
#include <rte_bus.h>
|
||||
#include <rte_uuid.h>
|
||||
|
||||
#include <rte_pci_dev_feature_defs.h>
|
||||
@ -458,6 +457,20 @@ static inline int rte_gettid(void)
|
||||
__rte_internal
|
||||
uint64_t rte_eal_get_baseaddr(void);
|
||||
|
||||
/**
|
||||
* IOVA mapping mode.
|
||||
*
|
||||
* IOVA mapping mode is iommu programming mode of a device.
|
||||
* That device (for example: IOMMU backed DMA device) based
|
||||
* on rte_iova_mode will generate physical or virtual address.
|
||||
*
|
||||
*/
|
||||
enum rte_iova_mode {
|
||||
RTE_IOVA_DC = 0, /* Don't care mode */
|
||||
RTE_IOVA_PA = (1 << 0), /* DMA using physical address */
|
||||
RTE_IOVA_VA = (1 << 1) /* DMA using virtual address */
|
||||
};
|
||||
|
||||
/**
|
||||
* Get the iova mode
|
||||
*
|
||||
|
@ -11,6 +11,8 @@
|
||||
* API for lcore and socket manipulation
|
||||
*
|
||||
*/
|
||||
#include <stdio.h>
|
||||
|
||||
#include <rte_config.h>
|
||||
#include <rte_per_lcore.h>
|
||||
#include <rte_eal.h>
|
||||
|
@ -10,6 +10,7 @@
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include <rte_debug.h>
|
||||
#include <rte_bus.h>
|
||||
#include <rte_eal.h>
|
||||
#include <eal_memcfg.h>
|
||||
#include <rte_errno.h>
|
||||
|
@ -11,6 +11,7 @@
|
||||
#include <string.h>
|
||||
#include <sys/queue.h>
|
||||
|
||||
#include <rte_bus.h>
|
||||
#include <rte_log.h>
|
||||
#include <rte_interrupts.h>
|
||||
#include <rte_memcpy.h>
|
||||
|
@ -11,6 +11,7 @@
|
||||
#include <time.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include <rte_bus.h>
|
||||
#include <rte_common.h>
|
||||
#include <rte_cycles.h>
|
||||
#include <rte_dev.h>
|
||||
|
Loading…
Reference in New Issue
Block a user