From: Yuanhan Liu <yliu@fridaylinux.org>
To: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Cc: Thomas Monjalon <thomas@monjalon.net>, dpdk stable <stable@dpdk.org>
Subject: [dpdk-stable] patch 'lib: fix missing includes in exported headers' has been queued to LTS release 17.11.1
Date: Wed, 24 Jan 2018 23:33:03 +0800 [thread overview]
Message-ID: <1516808026-25523-115-git-send-email-yliu@fridaylinux.org> (raw)
In-Reply-To: <1516808026-25523-1-git-send-email-yliu@fridaylinux.org>
Hi,
FYI, your patch has been queued to LTS release 17.11.1
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 01/26/18. So please
shout if anyone has objections.
Thanks.
--yliu
---
>From 6a1caf307c517449be53b2ff4c16658616572ec5 Mon Sep 17 00:00:00 2001
From: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Date: Thu, 21 Dec 2017 14:00:04 +0100
Subject: [PATCH] lib: fix missing includes in exported headers
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[ upstream commit 0d440d081ca1b5cccbb3b991908842c70731e460 ]
Many exported headers rely on definitions found in rte_config.h without
including it, as shown by the following command:
grep -L '^#include <rte_config.h>' -- \
$(grep -Rl \
$(sed -n '/^#define \([^ ]\+\).*$/{s//\1/;H;};${x;s/\n//;s/\n/\\|/g;p;}' \
build/include/rte_config.h) \
-- build/include/)
We cannot assume external applications will include rte_config.h on their
own, neither directly nor through a -include parameter like DPDK does
internally.
This not only causes obvious compilation failures that can be reproduced
with check-includes.sh such as:
[...]/rte_memory.h:88:43: error: ‘RTE_CACHE_LINE_SIZE’ was not declared in
this scope
#define __rte_cache_aligned __rte_aligned(RTE_CACHE_LINE_SIZE)
^
It also results in less visible issues, for instance rte_hash_crc.h relying
on RTE_ARCH_X86_64's presence to provide dedicated inline functions.
This patch partially reverts the commit below and adds missing include
lines to the remaining files.
Fixes: f1a7a5c5f404 ("remove include of generated config header")
Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
---
drivers/net/avp/rte_avp_common.h | 1 +
lib/librte_cmdline/cmdline_cirbuf.h | 2 ++
lib/librte_cryptodev/rte_cryptodev.h | 1 +
lib/librte_cryptodev/rte_cryptodev_pmd.h | 1 +
lib/librte_eal/common/include/arch/x86/rte_atomic.h | 1 +
lib/librte_eal/common/include/arch/x86/rte_byteorder.h | 1 +
lib/librte_eal/common/include/arch/x86/rte_cycles.h | 1 +
lib/librte_eal/common/include/arch/x86/rte_memcpy.h | 1 +
lib/librte_eal/common/include/arch/x86/rte_vect.h | 1 +
lib/librte_eal/common/include/generic/rte_byteorder.h | 1 +
lib/librte_eal/common/include/rte_bitmap.h | 1 +
lib/librte_eal/common/include/rte_common.h | 2 ++
lib/librte_eal/common/include/rte_dev.h | 1 +
lib/librte_eal/common/include/rte_eal.h | 1 +
lib/librte_eal/common/include/rte_eal_memconfig.h | 1 +
lib/librte_eal/common/include/rte_keepalive.h | 1 +
lib/librte_eal/common/include/rte_lcore.h | 1 +
lib/librte_eal/common/include/rte_log.h | 1 +
lib/librte_eal/common/include/rte_memory.h | 1 +
lib/librte_eal/common/include/rte_service.h | 1 +
lib/librte_eal/linuxapp/eal/include/exec-env/rte_kni_common.h | 1 +
lib/librte_ether/rte_ethdev.h | 1 +
lib/librte_ether/rte_ethdev_pci.h | 1 +
lib/librte_ether/rte_ethdev_vdev.h | 1 +
lib/librte_eventdev/rte_eventdev.h | 1 +
lib/librte_eventdev/rte_eventdev_pmd.h | 1 +
lib/librte_eventdev/rte_eventdev_pmd_pci.h | 1 +
lib/librte_eventdev/rte_eventdev_pmd_vdev.h | 1 +
lib/librte_hash/rte_fbk_hash.h | 1 +
lib/librte_hash/rte_hash_crc.h | 1 +
lib/librte_hash/rte_jhash.h | 1 +
lib/librte_hash/rte_thash.h | 1 +
lib/librte_ip_frag/rte_ip_frag.h | 1 +
lib/librte_lpm/rte_lpm.h | 1 +
lib/librte_mbuf/rte_mbuf.h | 1 +
lib/librte_member/rte_member.h | 1 +
lib/librte_mempool/rte_mempool.h | 1 +
lib/librte_ring/rte_ring.h | 1 +
lib/librte_table/rte_lru.h | 1 +
lib/librte_table/rte_lru_x86.h | 2 ++
lib/librte_timer/rte_timer.h | 1 +
41 files changed, 44 insertions(+)
diff --git a/drivers/net/avp/rte_avp_common.h b/drivers/net/avp/rte_avp_common.h
index 54437e9..81dfe5e 100644
--- a/drivers/net/avp/rte_avp_common.h
+++ b/drivers/net/avp/rte_avp_common.h
@@ -63,6 +63,7 @@
#else
#include <stdint.h>
#include <rte_common.h>
+#include <rte_config.h>
#include <rte_memory.h>
#include <rte_ether.h>
#include <rte_atomic.h>
diff --git a/lib/librte_cmdline/cmdline_cirbuf.h b/lib/librte_cmdline/cmdline_cirbuf.h
index 6321dec..87407ef 100644
--- a/lib/librte_cmdline/cmdline_cirbuf.h
+++ b/lib/librte_cmdline/cmdline_cirbuf.h
@@ -61,6 +61,8 @@
#ifndef _CIRBUF_H_
#define _CIRBUF_H_
+#include <rte_config.h>
+
#ifdef __cplusplus
extern "C" {
#endif
diff --git a/lib/librte_cryptodev/rte_cryptodev.h b/lib/librte_cryptodev/rte_cryptodev.h
index dade554..ed92f98 100644
--- a/lib/librte_cryptodev/rte_cryptodev.h
+++ b/lib/librte_cryptodev/rte_cryptodev.h
@@ -49,6 +49,7 @@ extern "C" {
#include "rte_crypto.h"
#include "rte_dev.h"
#include <rte_common.h>
+#include <rte_config.h>
extern const char **rte_cyptodev_names;
diff --git a/lib/librte_cryptodev/rte_cryptodev_pmd.h b/lib/librte_cryptodev/rte_cryptodev_pmd.h
index 744405e..c3bf91c 100644
--- a/lib/librte_cryptodev/rte_cryptodev_pmd.h
+++ b/lib/librte_cryptodev/rte_cryptodev_pmd.h
@@ -46,6 +46,7 @@ extern "C" {
#include <string.h>
+#include <rte_config.h>
#include <rte_dev.h>
#include <rte_malloc.h>
#include <rte_mbuf.h>
diff --git a/lib/librte_eal/common/include/arch/x86/rte_atomic.h b/lib/librte_eal/common/include/arch/x86/rte_atomic.h
index 4eac666..ea665d5 100644
--- a/lib/librte_eal/common/include/arch/x86/rte_atomic.h
+++ b/lib/librte_eal/common/include/arch/x86/rte_atomic.h
@@ -40,6 +40,7 @@ extern "C" {
#include <stdint.h>
#include <rte_common.h>
+#include <rte_config.h>
#include <emmintrin.h>
#include "generic/rte_atomic.h"
diff --git a/lib/librte_eal/common/include/arch/x86/rte_byteorder.h b/lib/librte_eal/common/include/arch/x86/rte_byteorder.h
index 251f11b..126f29e 100644
--- a/lib/librte_eal/common/include/arch/x86/rte_byteorder.h
+++ b/lib/librte_eal/common/include/arch/x86/rte_byteorder.h
@@ -40,6 +40,7 @@ extern "C" {
#include <stdint.h>
#include <rte_common.h>
+#include <rte_config.h>
#include "generic/rte_byteorder.h"
#ifndef RTE_BYTE_ORDER
diff --git a/lib/librte_eal/common/include/arch/x86/rte_cycles.h b/lib/librte_eal/common/include/arch/x86/rte_cycles.h
index 1bb3e1d..b95bece 100644
--- a/lib/librte_eal/common/include/arch/x86/rte_cycles.h
+++ b/lib/librte_eal/common/include/arch/x86/rte_cycles.h
@@ -47,6 +47,7 @@ extern int rte_cycles_vmware_tsc_map;
#include <rte_branch_prediction.h>
#endif
#include <rte_common.h>
+#include <rte_config.h>
static inline uint64_t
rte_rdtsc(void)
diff --git a/lib/librte_eal/common/include/arch/x86/rte_memcpy.h b/lib/librte_eal/common/include/arch/x86/rte_memcpy.h
index 74c280c..596d777 100644
--- a/lib/librte_eal/common/include/arch/x86/rte_memcpy.h
+++ b/lib/librte_eal/common/include/arch/x86/rte_memcpy.h
@@ -45,6 +45,7 @@
#include <string.h>
#include <rte_vect.h>
#include <rte_common.h>
+#include <rte_config.h>
#ifdef __cplusplus
extern "C" {
diff --git a/lib/librte_eal/common/include/arch/x86/rte_vect.h b/lib/librte_eal/common/include/arch/x86/rte_vect.h
index 03fc991..893b812 100644
--- a/lib/librte_eal/common/include/arch/x86/rte_vect.h
+++ b/lib/librte_eal/common/include/arch/x86/rte_vect.h
@@ -41,6 +41,7 @@
*/
#include <stdint.h>
+#include <rte_config.h>
#include "generic/rte_vect.h"
#if (defined(__ICC) || (__GNUC__ == 4 && __GNUC_MINOR__ < 4))
diff --git a/lib/librte_eal/common/include/generic/rte_byteorder.h b/lib/librte_eal/common/include/generic/rte_byteorder.h
index e5e820d..29e70c9 100644
--- a/lib/librte_eal/common/include/generic/rte_byteorder.h
+++ b/lib/librte_eal/common/include/generic/rte_byteorder.h
@@ -51,6 +51,7 @@
#endif
#include <rte_common.h>
+#include <rte_config.h>
/*
* Compile-time endianness detection
diff --git a/lib/librte_eal/common/include/rte_bitmap.h b/lib/librte_eal/common/include/rte_bitmap.h
index 010d752..b9067e6 100644
--- a/lib/librte_eal/common/include/rte_bitmap.h
+++ b/lib/librte_eal/common/include/rte_bitmap.h
@@ -66,6 +66,7 @@ extern "C" {
#include <string.h>
#include <rte_common.h>
+#include <rte_config.h>
#include <rte_debug.h>
#include <rte_memory.h>
#include <rte_branch_prediction.h>
diff --git a/lib/librte_eal/common/include/rte_common.h b/lib/librte_eal/common/include/rte_common.h
index de853e1..f1d24b8 100644
--- a/lib/librte_eal/common/include/rte_common.h
+++ b/lib/librte_eal/common/include/rte_common.h
@@ -51,6 +51,8 @@ extern "C" {
#include <errno.h>
#include <limits.h>
+#include <rte_config.h>
+
#ifndef typeof
#define typeof __typeof__
#endif
diff --git a/lib/librte_eal/common/include/rte_dev.h b/lib/librte_eal/common/include/rte_dev.h
index 9342e0c..8088dcc 100644
--- a/lib/librte_eal/common/include/rte_dev.h
+++ b/lib/librte_eal/common/include/rte_dev.h
@@ -49,6 +49,7 @@ extern "C" {
#include <stdio.h>
#include <sys/queue.h>
+#include <rte_config.h>
#include <rte_log.h>
__attribute__((format(printf, 2, 0)))
diff --git a/lib/librte_eal/common/include/rte_eal.h b/lib/librte_eal/common/include/rte_eal.h
index 8e4e71c..78b0e00 100644
--- a/lib/librte_eal/common/include/rte_eal.h
+++ b/lib/librte_eal/common/include/rte_eal.h
@@ -43,6 +43,7 @@
#include <stdint.h>
#include <sched.h>
+#include <rte_config.h>
#include <rte_per_lcore.h>
#include <rte_bus.h>
diff --git a/lib/librte_eal/common/include/rte_eal_memconfig.h b/lib/librte_eal/common/include/rte_eal_memconfig.h
index b9eee70..c963b45 100644
--- a/lib/librte_eal/common/include/rte_eal_memconfig.h
+++ b/lib/librte_eal/common/include/rte_eal_memconfig.h
@@ -34,6 +34,7 @@
#ifndef _RTE_EAL_MEMCONFIG_H_
#define _RTE_EAL_MEMCONFIG_H_
+#include <rte_config.h>
#include <rte_tailq.h>
#include <rte_memory.h>
#include <rte_memzone.h>
diff --git a/lib/librte_eal/common/include/rte_keepalive.h b/lib/librte_eal/common/include/rte_keepalive.h
index 88ad8e4..e9f8f08 100644
--- a/lib/librte_eal/common/include/rte_keepalive.h
+++ b/lib/librte_eal/common/include/rte_keepalive.h
@@ -39,6 +39,7 @@
#ifndef _KEEPALIVE_H_
#define _KEEPALIVE_H_
+#include <rte_config.h>
#include <rte_memory.h>
#ifndef RTE_KEEPALIVE_MAXCORES
diff --git a/lib/librte_eal/common/include/rte_lcore.h b/lib/librte_eal/common/include/rte_lcore.h
index c89e6ba..3735da0 100644
--- a/lib/librte_eal/common/include/rte_lcore.h
+++ b/lib/librte_eal/common/include/rte_lcore.h
@@ -40,6 +40,7 @@
* API for lcore and socket manipulation
*
*/
+#include <rte_config.h>
#include <rte_per_lcore.h>
#include <rte_eal.h>
#include <rte_launch.h>
diff --git a/lib/librte_eal/common/include/rte_log.h b/lib/librte_eal/common/include/rte_log.h
index 6c2d356..0bb1068 100644
--- a/lib/librte_eal/common/include/rte_log.h
+++ b/lib/librte_eal/common/include/rte_log.h
@@ -51,6 +51,7 @@ extern "C" {
#include <stdarg.h>
#include <rte_common.h>
+#include <rte_config.h>
struct rte_log_dynamic_type;
diff --git a/lib/librte_eal/common/include/rte_memory.h b/lib/librte_eal/common/include/rte_memory.h
index 14aacea..80a8fc0 100644
--- a/lib/librte_eal/common/include/rte_memory.h
+++ b/lib/librte_eal/common/include/rte_memory.h
@@ -49,6 +49,7 @@ extern "C" {
#endif
#include <rte_common.h>
+#include <rte_config.h>
__extension__
enum rte_page_sizes {
diff --git a/lib/librte_eal/common/include/rte_service.h b/lib/librte_eal/common/include/rte_service.h
index 495b531..80b90fa 100644
--- a/lib/librte_eal/common/include/rte_service.h
+++ b/lib/librte_eal/common/include/rte_service.h
@@ -59,6 +59,7 @@ extern "C" {
#include <stdint.h>
#include <sys/queue.h>
+#include <rte_config.h>
#include <rte_lcore.h>
#define RTE_SERVICE_NAME_MAX 32
diff --git a/lib/librte_eal/linuxapp/eal/include/exec-env/rte_kni_common.h b/lib/librte_eal/linuxapp/eal/include/exec-env/rte_kni_common.h
index 2ac879f..794cd4f 100644
--- a/lib/librte_eal/linuxapp/eal/include/exec-env/rte_kni_common.h
+++ b/lib/librte_eal/linuxapp/eal/include/exec-env/rte_kni_common.h
@@ -64,6 +64,7 @@
#define RTE_STD_C11
#else
#include <rte_common.h>
+#include <rte_config.h>
#endif
/**
diff --git a/lib/librte_ether/rte_ethdev.h b/lib/librte_ether/rte_ethdev.h
index 96555a8..2cc2eed 100644
--- a/lib/librte_ether/rte_ethdev.h
+++ b/lib/librte_ether/rte_ethdev.h
@@ -181,6 +181,7 @@ extern "C" {
#include <rte_devargs.h>
#include <rte_errno.h>
#include <rte_common.h>
+#include <rte_config.h>
#include "rte_ether.h"
#include "rte_eth_ctrl.h"
diff --git a/lib/librte_ether/rte_ethdev_pci.h b/lib/librte_ether/rte_ethdev_pci.h
index 722075e..ad64a16 100644
--- a/lib/librte_ether/rte_ethdev_pci.h
+++ b/lib/librte_ether/rte_ethdev_pci.h
@@ -37,6 +37,7 @@
#include <rte_malloc.h>
#include <rte_pci.h>
#include <rte_bus_pci.h>
+#include <rte_config.h>
#include <rte_ethdev.h>
/**
diff --git a/lib/librte_ether/rte_ethdev_vdev.h b/lib/librte_ether/rte_ethdev_vdev.h
index ff92e6e..feb5a3e 100644
--- a/lib/librte_ether/rte_ethdev_vdev.h
+++ b/lib/librte_ether/rte_ethdev_vdev.h
@@ -34,6 +34,7 @@
#ifndef _RTE_ETHDEV_VDEV_H_
#define _RTE_ETHDEV_VDEV_H_
+#include <rte_config.h>
#include <rte_malloc.h>
#include <rte_bus_vdev.h>
#include <rte_ethdev.h>
diff --git a/lib/librte_eventdev/rte_eventdev.h b/lib/librte_eventdev/rte_eventdev.h
index f1949ff..9134b49 100644
--- a/lib/librte_eventdev/rte_eventdev.h
+++ b/lib/librte_eventdev/rte_eventdev.h
@@ -239,6 +239,7 @@ extern "C" {
#endif
#include <rte_common.h>
+#include <rte_config.h>
#include <rte_memory.h>
#include <rte_errno.h>
diff --git a/lib/librte_eventdev/rte_eventdev_pmd.h b/lib/librte_eventdev/rte_eventdev_pmd.h
index 7a206c5..b78423d 100644
--- a/lib/librte_eventdev/rte_eventdev_pmd.h
+++ b/lib/librte_eventdev/rte_eventdev_pmd.h
@@ -47,6 +47,7 @@ extern "C" {
#include <string.h>
#include <rte_common.h>
+#include <rte_config.h>
#include <rte_dev.h>
#include <rte_log.h>
#include <rte_malloc.h>
diff --git a/lib/librte_eventdev/rte_eventdev_pmd_pci.h b/lib/librte_eventdev/rte_eventdev_pmd_pci.h
index ade32b5..8da40be 100644
--- a/lib/librte_eventdev/rte_eventdev_pmd_pci.h
+++ b/lib/librte_eventdev/rte_eventdev_pmd_pci.h
@@ -47,6 +47,7 @@ extern "C" {
#include <string.h>
+#include <rte_config.h>
#include <rte_eal.h>
#include <rte_lcore.h>
#include <rte_pci.h>
diff --git a/lib/librte_eventdev/rte_eventdev_pmd_vdev.h b/lib/librte_eventdev/rte_eventdev_pmd_vdev.h
index 56232de..f77d59b 100644
--- a/lib/librte_eventdev/rte_eventdev_pmd_vdev.h
+++ b/lib/librte_eventdev/rte_eventdev_pmd_vdev.h
@@ -46,6 +46,7 @@ extern "C" {
#include <string.h>
+#include <rte_config.h>
#include <rte_debug.h>
#include <rte_eal.h>
#include <rte_bus_vdev.h>
diff --git a/lib/librte_hash/rte_fbk_hash.h b/lib/librte_hash/rte_fbk_hash.h
index c39c097..e0d42b4 100644
--- a/lib/librte_hash/rte_fbk_hash.h
+++ b/lib/librte_hash/rte_fbk_hash.h
@@ -54,6 +54,7 @@ extern "C" {
#include <string.h>
+#include <rte_config.h>
#ifndef RTE_FBK_HASH_FUNC_DEFAULT
#if defined(RTE_ARCH_X86) || defined(RTE_MACHINE_CPUFLAG_CRC32)
#include <rte_hash_crc.h>
diff --git a/lib/librte_hash/rte_hash_crc.h b/lib/librte_hash/rte_hash_crc.h
index 4f815ae..93188c2 100644
--- a/lib/librte_hash/rte_hash_crc.h
+++ b/lib/librte_hash/rte_hash_crc.h
@@ -45,6 +45,7 @@ extern "C" {
#endif
#include <stdint.h>
+#include <rte_config.h>
#include <rte_cpuflags.h>
#include <rte_branch_prediction.h>
#include <rte_common.h>
diff --git a/lib/librte_hash/rte_jhash.h b/lib/librte_hash/rte_jhash.h
index 3eca138..42c4568 100644
--- a/lib/librte_hash/rte_jhash.h
+++ b/lib/librte_hash/rte_jhash.h
@@ -48,6 +48,7 @@ extern "C" {
#include <string.h>
#include <limits.h>
+#include <rte_config.h>
#include <rte_log.h>
#include <rte_byteorder.h>
diff --git a/lib/librte_hash/rte_thash.h b/lib/librte_hash/rte_thash.h
index 4fa5e07..a6ddb7b 100644
--- a/lib/librte_hash/rte_thash.h
+++ b/lib/librte_hash/rte_thash.h
@@ -53,6 +53,7 @@ extern "C" {
#include <stdint.h>
#include <rte_byteorder.h>
+#include <rte_config.h>
#include <rte_ip.h>
#include <rte_common.h>
diff --git a/lib/librte_ip_frag/rte_ip_frag.h b/lib/librte_ip_frag/rte_ip_frag.h
index 9f8cede..0144164 100644
--- a/lib/librte_ip_frag/rte_ip_frag.h
+++ b/lib/librte_ip_frag/rte_ip_frag.h
@@ -48,6 +48,7 @@ extern "C" {
#include <stdint.h>
#include <stdio.h>
+#include <rte_config.h>
#include <rte_malloc.h>
#include <rte_memory.h>
#include <rte_ip.h>
diff --git a/lib/librte_lpm/rte_lpm.h b/lib/librte_lpm/rte_lpm.h
index 682865e..650c51d 100644
--- a/lib/librte_lpm/rte_lpm.h
+++ b/lib/librte_lpm/rte_lpm.h
@@ -45,6 +45,7 @@
#include <stdlib.h>
#include <rte_branch_prediction.h>
#include <rte_byteorder.h>
+#include <rte_config.h>
#include <rte_memory.h>
#include <rte_common.h>
#include <rte_vect.h>
diff --git a/lib/librte_mbuf/rte_mbuf.h b/lib/librte_mbuf/rte_mbuf.h
index ce8a05d..e5d7643 100644
--- a/lib/librte_mbuf/rte_mbuf.h
+++ b/lib/librte_mbuf/rte_mbuf.h
@@ -62,6 +62,7 @@
#include <stdint.h>
#include <rte_common.h>
+#include <rte_config.h>
#include <rte_mempool.h>
#include <rte_memory.h>
#include <rte_atomic.h>
diff --git a/lib/librte_member/rte_member.h b/lib/librte_member/rte_member.h
index fa08711..56dd3b3 100644
--- a/lib/librte_member/rte_member.h
+++ b/lib/librte_member/rte_member.h
@@ -81,6 +81,7 @@ extern "C" {
#include <stdint.h>
#include <rte_common.h>
+#include <rte_config.h>
/** The set ID type that stored internally in hash table based set summary. */
typedef uint16_t member_set_t;
diff --git a/lib/librte_mempool/rte_mempool.h b/lib/librte_mempool/rte_mempool.h
index 721227f..e21026a 100644
--- a/lib/librte_mempool/rte_mempool.h
+++ b/lib/librte_mempool/rte_mempool.h
@@ -69,6 +69,7 @@
#include <inttypes.h>
#include <sys/queue.h>
+#include <rte_config.h>
#include <rte_spinlock.h>
#include <rte_log.h>
#include <rte_debug.h>
diff --git a/lib/librte_ring/rte_ring.h b/lib/librte_ring/rte_ring.h
index e924438..7069d52 100644
--- a/lib/librte_ring/rte_ring.h
+++ b/lib/librte_ring/rte_ring.h
@@ -96,6 +96,7 @@ extern "C" {
#include <sys/queue.h>
#include <errno.h>
#include <rte_common.h>
+#include <rte_config.h>
#include <rte_memory.h>
#include <rte_lcore.h>
#include <rte_atomic.h>
diff --git a/lib/librte_table/rte_lru.h b/lib/librte_table/rte_lru.h
index 93258ef..a73b2ff 100644
--- a/lib/librte_table/rte_lru.h
+++ b/lib/librte_table/rte_lru.h
@@ -38,6 +38,7 @@
extern "C" {
#endif
+#include <rte_config.h>
#ifdef RTE_ARCH_X86_64
#include "rte_lru_x86.h"
#elif defined(RTE_ARCH_ARM64)
diff --git a/lib/librte_table/rte_lru_x86.h b/lib/librte_table/rte_lru_x86.h
index 10f513c..b4f6052 100644
--- a/lib/librte_table/rte_lru_x86.h
+++ b/lib/librte_table/rte_lru_x86.h
@@ -40,6 +40,8 @@ extern "C" {
#include <stdint.h>
+#include <rte_config.h>
+
#ifndef RTE_TABLE_HASH_LRU_STRATEGY
#define RTE_TABLE_HASH_LRU_STRATEGY 2
#endif
diff --git a/lib/librte_timer/rte_timer.h b/lib/librte_timer/rte_timer.h
index a276a73..3b50155 100644
--- a/lib/librte_timer/rte_timer.h
+++ b/lib/librte_timer/rte_timer.h
@@ -67,6 +67,7 @@
#include <stdint.h>
#include <stddef.h>
#include <rte_common.h>
+#include <rte_config.h>
#ifdef __cplusplus
extern "C" {
--
2.7.4
next prev parent reply other threads:[~2018-01-24 15:41 UTC|newest]
Thread overview: 161+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-24 15:31 [dpdk-stable] patch 'kni: fix build with kernel 4.15' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'app/testpmd: remove xenvirt again' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'mk: remove TILE-Gx machine type' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'bus/dpaa: fix build when assert enabled' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'app/testpmd: fix port id allocation' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'app/testpmd: fix crash of txonly with multiple segments' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'kni: fix build dependency' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'service: fix number mapped cores count' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'service: fix lcore role after delete' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'service: fix service core launch' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'bus/pci: fix interrupt handler type' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'memzone: fix leak on allocation error' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'malloc: protect stats with lock' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'malloc: fix end for bounded elements' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'vfio: fix enabled check on error' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'pmdinfogen: fix cross compilation for ARM big endian' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'lpm: fix ARM big endian build' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'bus/dpaa: " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'net/i40e: " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'net/ixgbe: " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'mempool/octeontx: fix improper memory barrier' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'mempool: fix first memory area notification' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'mempool/octeontx: fix memory area registration' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'app/testpmd: fix port configuration print' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'app/testpmd: fix flowgen forwarding offload flags' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'examples/l3fwd-power: fix Rx without interrupt' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'examples/l3fwd-power: fix frequency detection' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'timer: fix reset on service cores' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'net/mlx5: cleanup allocation of ethtool stats' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'net/bonding: fix bonding in 8023ad mode' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'net/nfp: fix MTU settings' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'net/nfp: fix jumbo " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'net/nfp: fix CRC strip check behaviour' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'net/thunderx: fix multi segment Tx function return' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'net/mlx5: fix Tx checksum offloads' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'net/mlx4: fix unnecessary include' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'net/szedata2: fix check of mmap return value' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'bus/fslmc: fix the cplusplus macro closure' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'drivers: change the deprecated memseg physaddr to IOVA' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'net/mlx4: revert workaround for broken Verbs' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'net/mlx5: fix flow type for allmulti rules' " Yuanhan Liu
2018-02-13 11:56 ` Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'net/mlx4: fix Tx packet drop application report' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'net/bonding: fix activated slave in 8023ad mode' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'net/qede: fix to enable LRO over tunnels' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'net/qede: fix to reject config with no Rx queue' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'net/sfc: stop periodic DMA if MAC stats upload fails' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'net/sfc: fix multicast address list copy memory leak' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'net/sfc: fix DMA memory leak after kvarg processing failure' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'ethdev: fix missing imissed counter in xstats' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'net/sfc: fix main MAC address handling' " Yuanhan Liu
2018-01-24 15:31 ` [dpdk-stable] patch 'net/mlx5: fix VLAN configuration after port stop' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/mlx5: fix Memory Region registration' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/mlx5: fix overflow of Memory Region cache' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/mlx5: fix RSS key configuration' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/mlx5: fix HW checksum offload for outer IP' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/mlx5: fix un-supported RSS hash fields use' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/i40e: fix VLAN offload setting' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/fm10k: fix logical port delete' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/ixgbe: fix wrong PBA setting' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/igb: fix Tx queue number assignment' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/i40e: fix VLAN offload setting issue' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/i40e: fix FDIR input set conflict' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/ixgbe: fix tunnel filter fail problem' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/i40e: add FDIR NVGRE parameter check' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/i40e: fix setting of MAC address on i40evf' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'vhost: fix crash' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'vhost: fix dequeue zero copy with virtio1' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/virtio: fix incorrect cast' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/virtio: fix vector Rx flushing' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/virtio: fix typo in LRO support' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'examples/vhost: fix sending ARP packet to self' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'event/octeontx: fix Rx adapter port id mapping' " Yuanhan Liu
2018-01-26 16:00 ` Yuanhan Liu
2018-01-29 8:56 ` Pavan Nikhilesh
2018-01-24 15:32 ` [dpdk-stable] patch 'net/sfc: fix label name to be consistent' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/sfc: do not hold management event queue lock while MCDI' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/sfc: fix incorrect bitwise ORing of L3/L4 packet types' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/ixgbe: fix parsing FDIR NVGRE issue' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/i40e: fix FDIR rule confiliction " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/i40e: exclude LLDP packet count' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/ixgbe: fix the failure of number of Tx queue check' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/i40e: fix VSI MAC filter on primary address change' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/mlx5: fix overwriting bit-fields in SW Rx queue' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/dpaa: fix uninitialized and unused variables' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/dpaa: fix the mbuf packet type if zero' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/dpaa: fix FW version code' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/bnxt: fix double increment of idx during Tx ring alloc' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/bnxt: parse checksum offload flags' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/bnxt: fix group info usage' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/bnxt: fix check for ether type' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/bnxt: fix duplicate filter pattern creation error' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/bnxt: fix duplicate pattern for 5tuple filter' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/bnxt: free the aggregation ring' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/bonding: fix setting slave MAC addresses' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'ethdev: fix link autonegotiation value' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/enic: fix L4 Rx ptype comparison' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/pcap: fix the NUMA id display in logs' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/failsafe: fix Rx safe check compiler hint' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/tap: remove unused kernel version definitions' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/mrvl: fix multiple probe' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/mrvl: fix HIF objects allocation' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/mrvl: fix oversize bpool handling' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/mrvl: fix shadow queue tail and size calculations' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/mrvl: keep shadow Txqs inside PMD Txq' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/ixgbe: fix max queue number for VF' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/i40e: fix setting MAC address of " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/i40e: fix port segmentation fault when restart' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/i40e: fix VF reset stats crash' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/mlx5: fix deadlock of link status alarm' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/mlx5: fix missing attribute size for drop action' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'net/mlx5: fix calculation of flow ID flag' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'vhost: fix error code check when creating thread' " Yuanhan Liu
2018-01-24 15:32 ` [dpdk-stable] patch 'examples/vhost: fix startup check' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'net/i40e: fix ISO C in exported header' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'flow_classify: " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'member: " Yuanhan Liu
2018-01-24 15:33 ` Yuanhan Liu [this message]
2018-01-24 15:33 ` [dpdk-stable] patch 'igb_uio: allow multi-process access' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'pdump: fix error check when creating/canceling thread' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'app/testpmd: fix invalid Rx queue number setting' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'app/testpmd: fix invalid Tx " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'app/procinfo: add compilation option in config' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'test: register test as failed if setup failed' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'test/table: fix uninitialized parameter' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'test/memzone: fix wrong test' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'test/memzone: fix NULL freeing' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'test/memzone: fix freeing test' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'mbuf: fix performance of freeing with non atomic refcnt' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'mempool/octeontx: fix natural alignment being optimized out' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'member: fix memory leak on error' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'eventdev: set error code in port link/unlink functions' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'test/eventdev: use CPU event type' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'event/sw: fix queue memory leak and multi-link bug' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'eventdev: fix doxygen comments' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'bus/pci: forbid IOVA mode if IOMMU address width too small' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'doc: fix lists of supported crypto algorithms' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'doc: fix format in OpenSSL installation guide' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'test/crypto: fix missing include' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'examples/ipsec-secgw: fix usage of incorrect port' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'security: fix device operation type' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'crypto: fix pedantic compilation' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'security: " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'security: fix enum start value' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'cryptodev: add missing CPU flag string' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'cryptodev: fix function prototype' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'examples/ipsec-secgw: fix corner case for SPI value' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'examples/ipsec-secgw: fix missing ingress flow attribute' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'net: fix ESP header byte ordering definition' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'examples/ipsec-secgw: fix SPI byte order in flow item' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'net/qede: replace config option with run-time arg' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'net/i40e: fix flag for MAC address write' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'net/i40e: fix packet type for X722' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'net/mlx5: fix IPv6 header fields' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'net/sfc: fix initialization of flow structure' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'net/sfc: fix flow RSS check in error handling' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'vhost: fix mbuf free' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'vhost: protect active rings from async ring changes' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'net/failsafe: fix invalid free' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'net/i40e: fix flow director Rx resource defect' " Yuanhan Liu
2018-01-24 15:33 ` [dpdk-stable] patch 'net/mlx5: fix memory region lookup' " Yuanhan Liu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1516808026-25523-115-git-send-email-yliu@fridaylinux.org \
--to=yliu@fridaylinux.org \
--cc=adrien.mazarguil@6wind.com \
--cc=stable@dpdk.org \
--cc=thomas@monjalon.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).