cleanup compat header inclusions
Subsystems (5)
PATCH 1/1 cleanup compat header inclusions
With symbols going though experimental/stable stages, we accumulated a lot of discrepancies about inclusion of the rte_compat.h header.
Some headers are including it where unneeded, while others rely on implicit inclusion.
Fix unneeded inclusions:
$ git grep -l include..rte_compat.h | xargs grep -LE '__rte_(internal|experimental)' | xargs sed -i -e '/#include..rte_compat.h/d'
Fix missing inclusion, by inserting rte_compat.h before the first inclusion of a DPDK header:
$ git grep -lE '__rte_(internal|experimental)' |
xargs grep -L include..rte_compat.h |
xargs sed -i -e \
'0,/#include..\(rte_\|.*pmd.h.$\)/{
s/\(#include..\(rte_\|.*pmd.h.$\)\)/#include <rte_compat.h>\n\1/
}'Fix missing inclusion, by inserting rte_compat.h after the last inclusion of a non DPDK header:
$ for file in $(git grep -lE '__rte_(internal|experimental)' |
xargs grep -L include..rte_compat.h); do
tac $file > $file.$$
sed -i -e \
'0,/#include../{
s/\(#include..*$\)/#include <rte_compat.h>\n\n\1/
}' $file.$$
tac $file.$$ > $file
rm $file.$$
doneFix missing inclusion, by inserting rte_compat.h after the header guard:
$ git grep -lE '__rte_(internal|experimental)' |
xargs grep -L include..rte_compat.h |
xargs sed -i -e \
'0,/#define/{
s/\(#define .*$\)/\1\n\n#include <rte_compat.h>/
}'And finally, exclude rte_compat.h itself.
$ git checkout lib/eal/include/rte_compat.h
At the end of all this, we have a clean tree:
$ git grep -lE '__rte_(internal|experimental)' | xargs grep -L include..rte_compat.h buildtools/check-symbols.sh devtools/checkpatches.sh doc/guides/contributing/abi_policy.rst doc/guides/rel_notes/release_20_11.rst lib/eal/include/rte_compat.h
--- drivers/baseband/acc/rte_acc_cfg.h | 1 + drivers/baseband/acc/rte_acc_common_cfg.h | 1 + drivers/baseband/fpga_5gnr_fec/rte_pmd_fpga_5gnr_fec.h | 2 ++ drivers/baseband/fpga_lte_fec/fpga_lte_fec.h | 2 ++ drivers/bus/dpaa/include/fsl_bman.h | 2 ++ drivers/bus/dpaa/include/fsl_qman.h | 1 + drivers/bus/dpaa/include/fsl_usd.h | 2 ++ drivers/bus/dpaa/include/netcfg.h | 2 ++ drivers/bus/dpaa/include/process.h | 1 + drivers/bus/fslmc/mc/fsl_dpci.h | 2 ++ drivers/bus/fslmc/mc/fsl_dpcon.h | 2 ++ drivers/bus/fslmc/portal/dpaa2_hw_dpio.h | 2 ++ drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 1 + drivers/bus/pci/rte_bus_pci.h | 1 + drivers/bus/vmbus/rte_bus_vmbus.h | 1 - drivers/common/cnxk/roc_platform.h | 1 + drivers/common/cpt/cpt_pmd_ops_helper.h | 2 ++ drivers/common/dpaax/dpaax_iova_table.h | 1 + drivers/common/iavf/iavf_prototype.h | 2 ++ drivers/common/idpf/base/idpf_controlq_api.h | 2 ++ drivers/common/mlx5/linux/mlx5_common_os.h | 1 + drivers/common/mlx5/linux/mlx5_nl.h | 1 + drivers/common/mlx5/mlx5_common.h | 1 + drivers/common/mlx5/mlx5_common_devx.h | 2 ++ drivers/common/mlx5/mlx5_common_mp.h | 1 + drivers/common/mlx5/mlx5_common_mr.h | 1 + drivers/common/mlx5/mlx5_common_utils.h | 1 + drivers/common/mlx5/mlx5_malloc.h | 2 ++ drivers/common/mlx5/windows/mlx5_common_os.h | 1 + drivers/common/octeontx/octeontx_mbox.h | 1 + drivers/common/sfc_efx/efsys.h | 1 + drivers/common/sfc_efx/sfc_efx.h | 2 ++ drivers/common/sfc_efx/sfc_efx_mcdi.h | 1 + drivers/crypto/cnxk/cn10k_cryptodev_ops.h | 1 + drivers/crypto/cnxk/cn9k_cryptodev_ops.h | 1 + drivers/crypto/dpaa2_sec/dpaa2_sec_event.h | 2 ++ drivers/crypto/dpaa_sec/dpaa_sec_event.h | 2 ++ drivers/crypto/octeontx/otx_cryptodev_ops.h | 1 + drivers/dma/dpaa2/rte_pmd_dpaa2_qdma.h | 2 ++ drivers/event/dlb2/rte_pmd_dlb2.h | 2 ++ drivers/mempool/dpaa2/dpaa2_hw_mempool.h | 2 ++ drivers/mempool/dpaa2/rte_dpaa2_mempool.h | 1 + drivers/net/bonding/rte_eth_bond_8023ad.c | 1 - drivers/net/cnxk/cnxk_ethdev.h | 1 + drivers/net/dpaa/dpaa_ethdev.h | 1 + drivers/net/dpaa2/dpaa2_ethdev.h | 1 + drivers/net/dpaa2/rte_pmd_dpaa2.h | 1 + drivers/net/iavf/rte_pmd_iavf.h | 1 + drivers/net/ice/ice_ethdev.h | 1 + drivers/net/mlx5/rte_pmd_mlx5.h | 2 ++ drivers/net/txgbe/rte_pmd_txgbe.h | 1 - lib/bbdev/rte_bbdev.h | 1 + lib/bbdev/rte_bbdev_op.h | 1 + lib/bpf/rte_bpf.h | 1 + lib/compressdev/rte_comp.h | 1 + lib/compressdev/rte_compressdev.h | 1 + lib/compressdev/rte_compressdev_pmd.h | 1 + lib/cryptodev/cryptodev_pmd.h | 1 + lib/cryptodev/rte_crypto_sym.h | 1 + lib/cryptodev/rte_cryptodev.h | 1 + lib/dmadev/rte_dmadev_pmd.h | 1 + lib/eal/arm/include/rte_io_64.h | 1 + lib/eal/arm/include/rte_prefetch_32.h | 1 + lib/eal/arm/include/rte_prefetch_64.h | 1 + lib/eal/freebsd/eal.c | 1 - lib/eal/freebsd/eal_dev.c | 1 - lib/eal/include/generic/rte_atomic.h | 1 + lib/eal/include/generic/rte_cycles.h | 1 - lib/eal/include/generic/rte_pause.h | 1 - lib/eal/include/rte_bitmap.h | 1 + lib/eal/include/rte_class.h | 1 + lib/eal/include/rte_eal_memconfig.h | 1 - lib/eal/include/rte_epoll.h | 1 - lib/eal/include/rte_fbarray.h | 1 - lib/eal/include/rte_lcore.h | 1 + lib/eal/include/rte_log.h | 1 - lib/eal/include/rte_malloc.h | 1 - lib/eal/include/rte_memory.h | 1 - lib/eal/include/rte_memzone.h | 1 - lib/eal/include/rte_pflock.h | 1 + lib/eal/include/rte_service.h | 1 + lib/eal/include/rte_service_component.h | 1 - lib/eal/loongarch/include/rte_prefetch.h | 1 + lib/eal/ppc/include/rte_atomic.h | 1 - lib/eal/ppc/include/rte_prefetch.h | 1 + lib/eal/riscv/include/rte_prefetch.h | 1 + lib/eal/x86/include/rte_io.h | 1 + lib/eal/x86/include/rte_prefetch.h | 1 + lib/ethdev/ethdev_driver.h | 1 + lib/ethdev/rte_flow.h | 1 + lib/ethdev/rte_tm.h | 1 + lib/eventdev/eventdev_pmd_pci.h | 1 + lib/eventdev/eventdev_pmd_vdev.h | 1 + lib/eventdev/rte_event_eth_rx_adapter.h | 1 + lib/eventdev/rte_event_eth_tx_adapter.h | 1 + lib/eventdev/rte_eventdev.h | 1 + lib/gpudev/gpudev_driver.h | 1 + lib/graph/rte_graph_worker.h | 1 + lib/hash/rte_hash.h | 1 - lib/hash/rte_thash.h | 1 + lib/hash/rte_thash_gfni.h | 1 + lib/hash/rte_thash_x86_gfni.h | 1 + lib/ip_frag/rte_ip_frag.h | 1 + lib/ipsec/rte_ipsec.h | 1 + lib/ipsec/rte_ipsec_sad.h | 1 - lib/kni/rte_kni.h | 1 + lib/lpm/rte_lpm.h | 1 + lib/lpm/rte_lpm_sve.h | 1 + lib/mbuf/rte_mbuf_core.h | 1 - lib/member/rte_member.h | 1 + lib/mempool/rte_mempool.h | 1 + lib/meter/rte_meter.h | 1 - lib/metrics/rte_metrics.h | 1 - lib/metrics/rte_metrics_telemetry.h | 1 + lib/net/rte_ip.h | 1 + lib/node/rte_node_eth_api.h | 1 + lib/pdump/rte_pdump.h | 1 + lib/power/rte_power.h | 1 + lib/power/rte_power_empty_poll.h | 1 + lib/power/rte_power_intel_uncore.h | 1 + lib/power/rte_power_pmd_mgmt.h | 1 + lib/rcu/rte_rcu_qsbr.h | 1 + lib/regexdev/rte_regexdev.h | 1 + lib/regexdev/rte_regexdev_driver.h | 1 + lib/reorder/rte_reorder.h | 1 + lib/sched/rte_pie.h | 1 + lib/security/rte_security_driver.h | 1 + lib/telemetry/rte_telemetry.h | 1 - lib/timer/rte_timer.h | 1 + lib/vhost/rte_vhost.h | 1 + 130 files changed, 128 insertions(+), 22 deletions(-)
drivers/baseband/acc/rte_acc_cfg.h +1 -0
@@ -18,6 +18,7 @@#include <stdint.h> #include <stdbool.h> +#include <rte_compat.h> #include "rte_acc_common_cfg.h" #ifdef __cplusplus
drivers/baseband/acc/rte_acc_common_cfg.h +1 -0
@@ -19,6 +19,7 @@#include <stdint.h> #include <stdbool.h> +#ifdef __cplusplusextern "C" {#endif
drivers/baseband/fpga_5gnr_fec/rte_pmd_fpga_5gnr_fec.h +2 -0
@@ -8,6 +8,8 @@#include <stdint.h> #include <stdbool.h> +#include <rte_compat.h> +/** * @file rte_pmd_fpga_5gnr_fec.h *
drivers/baseband/fpga_lte_fec/fpga_lte_fec.h +2 -0
@@ -8,6 +8,8 @@#include <stdint.h> #include <stdbool.h> +#include <rte_compat.h> +/** * @file fpga_lte_fec.h *
drivers/bus/dpaa/include/fsl_bman.h +2 -0
@@ -7,6 +7,8 @@ #ifndef __FSL_BMAN_H #define __FSL_BMAN_H +#include <rte_compat.h> + #ifdef __cplusplus extern "C" { #endif
drivers/bus/dpaa/include/fsl_qman.h +1 -0
@@ -13,6 +13,7 @@ extern "C" {#endif #include <dpaa_rbtree.h> +#include <rte_compat.h> #include <rte_eventdev.h> /* FQ lookups (turn this on for 64bit user-space) */
drivers/bus/dpaa/include/fsl_usd.h +2 -0
@@ -13,6 +13,8 @@#include <dpaa_list.h> #include <fsl_qman.h> +#include <rte_compat.h> +#ifdef __cplusplusextern "C" {#endif
drivers/bus/dpaa/include/netcfg.h +2 -0
@@ -10,6 +10,8 @@#include <fman.h> +#include <rte_compat.h> +/* Configuration information related to a specific ethernet port */ struct fm_eth_port_cfg {/**< A list of PCD FQ ranges, obtained from FMC configuration */
drivers/bus/dpaa/include/process.h +1 -0
@@ -10,6 +10,7 @@#define __PROCESS_H#include <compat.h> +#include <rte_compat.h> #include <rte_ethdev.h> /* The process device underlies process-wide user/kernel interactions, such as
drivers/bus/fslmc/mc/fsl_dpci.h +2 -0
@@ -9,6 +9,8 @@#include <fsl_dpopr.h> +#include <rte_compat.h> +/* Data Path Communication Interface API * Contains initialization APIs and runtime control APIs for DPCI */
drivers/bus/fslmc/mc/fsl_dpcon.h +2 -0
@@ -7,6 +7,8 @@#ifndef __FSL_DPCON_H#define __FSL_DPCON_H +#include <rte_compat.h> +/* Data Path Concentrator API * Contains initialization APIs and runtime control APIs for DPCON */
drivers/bus/fslmc/portal/dpaa2_hw_dpio.h +2 -0
@@ -11,6 +11,8 @@#include <mc/fsl_dpio.h> #include <mc/fsl_mc_sys.h> +#include <rte_compat.h> +struct dpaa2_io_portal_t {struct dpaa2_dpio_dev *dpio_dev;struct dpaa2_dpio_dev *ethrx_dpio_dev;
drivers/bus/fslmc/portal/dpaa2_hw_pvt.h +1 -0
@@ -8,6 +8,7 @@#ifndef _DPAA2_HW_PVT_H_#define _DPAA2_HW_PVT_H_ +#include <rte_compat.h> #include <rte_eventdev.h> #include <dpaax_iova_table.h>
drivers/bus/pci/rte_bus_pci.h +1 -0
@@ -22,6 +22,7 @@ extern "C" {#include <stdint.h> #include <inttypes.h> +#include <rte_compat.h> #include <rte_debug.h> #include <rte_interrupts.h> #include <rte_pci.h>
drivers/bus/vmbus/rte_bus_vmbus.h +0 -1
@@ -23,7 +23,6 @@ extern "C" {#include <stdint.h> #include <inttypes.h> -#include <rte_compat.h> #include <rte_uuid.h> #include <rte_debug.h> #include <rte_interrupts.h>
drivers/common/cnxk/roc_platform.h +1 -0
@@ -5,6 +5,7 @@#ifndef _ROC_PLATFORM_H_#define _ROC_PLATFORM_H_ +#include <rte_compat.h> #include <rte_alarm.h> #include <rte_bitmap.h> #include <bus_pci_driver.h>
drivers/common/cpt/cpt_pmd_ops_helper.h +2 -0
@@ -5,6 +5,8 @@#ifndef _CPT_PMD_OPS_HELPER_H_#define _CPT_PMD_OPS_HELPER_H_ +#include <rte_compat.h> +/* * This file defines the agreement between the common layer and the individual * crypto drivers for OCTEON TX series. Control path in otx* directory can
drivers/common/dpaax/dpaax_iova_table.h +1 -0
@@ -19,6 +19,7 @@#include <errno.h> #include <arpa/inet.h> +#include <rte_compat.h> #include <rte_eal.h> #include <rte_branch_prediction.h> #include <rte_memory.h>
drivers/common/iavf/iavf_prototype.h +2 -0
@@ -9,6 +9,8 @@#include "iavf_alloc.h" #include "virtchnl.h" +#include <rte_compat.h> +/* Prototypes for shared code functions that are not in * the standard function pointer structures. These are * mostly because they are needed even before the init
drivers/common/idpf/base/idpf_controlq_api.h +2 -0
@@ -9,6 +9,8 @@#include "idpf_mem.h" #else /* !__KERNEL__ */ #include "idpf_osdep.h" + +#include <rte_compat.h> #endif /* !__KERNEL__ */ struct idpf_hw ;
drivers/common/mlx5/linux/mlx5_common_os.h +1 -0
@@ -8,6 +8,7 @@#include <stdio.h> #include <malloc.h> +#include <rte_compat.h> #include <rte_pci.h> #include <bus_pci_driver.h> #include <rte_debug.h>
drivers/common/mlx5/linux/mlx5_nl.h +1 -0
@@ -7,6 +7,7 @@#include <linux/netlink.h> +#include <rte_compat.h> #include <rte_ether.h> #include "mlx5_common.h"
drivers/common/mlx5/mlx5_common.h +1 -0
@@ -7,6 +7,7 @@#include <stdio.h> +#include <rte_compat.h> #include <rte_pci.h> #include <bus_pci_driver.h> #include <rte_debug.h>
drivers/common/mlx5/mlx5_common_devx.h +2 -0
@@ -7,6 +7,8 @@#include "mlx5_devx_cmds.h" +#include <rte_compat.h> +/* The standard page size */ #define MLX5_LOG_PAGE_SIZE 12
drivers/common/mlx5/mlx5_common_mp.h +1 -0
@@ -7,6 +7,7 @@#define RTE_PMD_MLX5_COMMON_MP_H_ #include <mlx5_glue.h> +#include <rte_compat.h> #include <rte_eal.h> #include <rte_string_fns.h>
drivers/common/mlx5/mlx5_common_mr.h +1 -0
@@ -11,6 +11,7 @@#include <sys/queue.h> +#include <rte_compat.h> #include <rte_rwlock.h> #include <rte_bitmap.h> #include <rte_mbuf.h>
drivers/common/mlx5/mlx5_common_utils.h +1 -0
@@ -5,6 +5,7 @@#ifndef RTE_PMD_MLX5_COMMON_UTILS_H_ #define RTE_PMD_MLX5_COMMON_UTILS_H_ +#include <rte_compat.h> #include <rte_rwlock.h> #include "mlx5_common.h"
drivers/common/mlx5/mlx5_malloc.h +2 -0
@@ -5,6 +5,8 @@ #ifndef MLX5_MALLOC_H_ #define MLX5_MALLOC_H_ +#include <rte_compat.h> + #ifdef __cplusplus extern "C" { #endif
drivers/common/mlx5/windows/mlx5_common_os.h +1 -0
@@ -8,6 +8,7 @@#include <stdio.h> #include <sys/types.h> +#include <rte_compat.h> #include <rte_errno.h> #include <rte_interrupts.h>
drivers/common/octeontx/octeontx_mbox.h +1 -0
@@ -5,6 +5,7 @@#ifndef __OCTEONTX_MBOX_H__#define __OCTEONTX_MBOX_H__ +#include <rte_compat.h> #include <rte_common.h> #include <rte_spinlock.h>
drivers/common/sfc_efx/efsys.h +1 -0
@@ -12,6 +12,7 @@#include <stdbool.h> +#include <rte_compat.h> #include <rte_spinlock.h> #include <rte_byteorder.h> #include <rte_debug.h>
drivers/common/sfc_efx/sfc_efx.h +2 -0
@@ -15,6 +15,8 @@#include "efx.h" #include "efsys.h" +#include <rte_compat.h> +#ifdef __cplusplusextern "C" {#endif
drivers/common/sfc_efx/sfc_efx_mcdi.h +1 -0
@@ -12,6 +12,7 @@#include <stdint.h> +#include <rte_compat.h> #include <rte_spinlock.h> #include "efsys.h"
drivers/crypto/cnxk/cn10k_cryptodev_ops.h +1 -0
@@ -5,6 +5,7 @@#ifndef _CN10K_CRYPTODEV_OPS_H_#define _CN10K_CRYPTODEV_OPS_H_ +#include <rte_compat.h> #include <cryptodev_pmd.h> #include <rte_cryptodev.h> #include <rte_eventdev.h>
drivers/crypto/cnxk/cn9k_cryptodev_ops.h +1 -0
@@ -5,6 +5,7 @@#ifndef _CN9K_CRYPTODEV_OPS_H_#define _CN9K_CRYPTODEV_OPS_H_ +#include <rte_compat.h> #include <cryptodev_pmd.h> extern struct rte_cryptodev_ops cn9k_cpt_ops;
drivers/crypto/dpaa2_sec/dpaa2_sec_event.h +2 -0
@@ -6,6 +6,8 @@#ifndef _DPAA2_SEC_EVENT_H_#define _DPAA2_SEC_EVENT_H_ +#include <rte_compat.h> + __rte_internal int dpaa2_sec_eventq_attach(const struct rte_cryptodev *dev, int qp_id,
drivers/crypto/dpaa_sec/dpaa_sec_event.h +2 -0
@@ -6,6 +6,8 @@#ifndef _DPAA_SEC_EVENT_H_#define _DPAA_SEC_EVENT_H_ +#include <rte_compat.h> + __rte_internal int dpaa_sec_eventq_attach(const struct rte_cryptodev *dev, int qp_id,
drivers/crypto/octeontx/otx_cryptodev_ops.h +1 -0
@@ -5,6 +5,7 @@#ifndef _OTX_CRYPTODEV_OPS_H_#define _OTX_CRYPTODEV_OPS_H_ +#include <rte_compat.h> #include <cryptodev_pmd.h> #define OTX_CPT_MIN_HEADROOM_REQ (24)
drivers/dma/dpaa2/rte_pmd_dpaa2_qdma.h +2 -0
@@ -5,6 +5,8 @@#ifndef _RTE_PMD_DPAA2_QDMA_H_#define _RTE_PMD_DPAA2_QDMA_H_ +#include <rte_compat.h> +/** States if the source addresses is physical. */ #define RTE_DPAA2_QDMA_JOB_SRC_PHY (1ULL << 30)
drivers/event/dlb2/rte_pmd_dlb2.h +2 -0
@@ -17,6 +17,8 @@ extern "C" {#include <stdint.h> +#include <rte_compat.h> +/** * @warning * @b EXPERIMENTAL: this API may change, or be removed, without prior notice
drivers/mempool/dpaa2/dpaa2_hw_mempool.h +2 -0
@@ -8,6 +8,8 @@#ifndef _DPAA2_HW_DPBP_H_#define _DPAA2_HW_DPBP_H_ +#include <rte_compat.h> +#define DPAA2_MAX_BUF_POOLS 8 struct buf_pool_cfg {
drivers/mempool/dpaa2/rte_dpaa2_mempool.h +1 -0
@@ -16,6 +16,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_mempool.h> /**
drivers/net/bonding/rte_eth_bond_8023ad.c +0 -1
@@ -10,7 +10,6 @@#include <rte_malloc.h> #include <rte_errno.h> #include <rte_cycles.h> -#include <rte_compat.h> #include "eth_bond_private.h"
drivers/net/cnxk/cnxk_ethdev.h +1 -0
@@ -9,6 +9,7 @@#include <ethdev_driver.h> #include <ethdev_pci.h> +#include <rte_compat.h> #include <rte_kvargs.h> #include <rte_mbuf.h> #include <rte_mbuf_pool_ops.h>
drivers/net/dpaa/dpaa_ethdev.h +1 -0
@@ -10,6 +10,7 @@/* System headers */ #include <stdbool.h> #include <ethdev_driver.h> +#include <rte_compat.h> #include <rte_event_eth_rx_adapter.h> #include <fsl_usd.h>
drivers/net/dpaa2/dpaa2_ethdev.h +1 -0
@@ -8,6 +8,7 @@#ifndef _DPAA2_ETHDEV_H#define _DPAA2_ETHDEV_H +#include <rte_compat.h> #include <rte_event_eth_rx_adapter.h> #include <rte_pmd_dpaa2.h>
drivers/net/dpaa2/rte_pmd_dpaa2.h +1 -0
@@ -11,6 +11,7 @@* NXP dpaa2 PMD specific functions. */ +#include <rte_compat.h> #include <rte_flow.h> /**
drivers/net/iavf/rte_pmd_iavf.h +1 -0
@@ -15,6 +15,7 @@*/ #include <stdio.h> +#include <rte_compat.h> #include <rte_mbuf.h> #include <rte_mbuf_dyn.h>
drivers/net/ice/ice_ethdev.h +1 -0
@@ -5,6 +5,7 @@#ifndef _ICE_ETHDEV_H_#define _ICE_ETHDEV_H_ +#include <rte_compat.h> #include <rte_kvargs.h> #include <rte_time.h>
drivers/net/mlx5/rte_pmd_mlx5.h +2 -0
@@ -5,6 +5,8 @@#ifndef RTE_PMD_PRIVATE_MLX5_H_ #define RTE_PMD_PRIVATE_MLX5_H_ +#include <rte_compat.h> +/** * @file * MLX5 public header.
drivers/net/txgbe/rte_pmd_txgbe.h +0 -1
@@ -12,7 +12,6 @@#ifndef _PMD_TXGBE_H_#define _PMD_TXGBE_H_ -#include <rte_compat.h> #include <rte_ethdev.h> #include <rte_ether.h>
lib/bbdev/rte_bbdev.h +1 -0
@@ -27,6 +27,7 @@ extern "C" {#include <stdint.h> #include <stdbool.h> +#include <rte_compat.h> #include <rte_cpuflags.h> #include "rte_bbdev_op.h"
lib/bbdev/rte_bbdev_op.h +1 -0
@@ -17,6 +17,7 @@ extern "C" {#include <stdint.h> +#include <rte_compat.h> #include <rte_common.h> #include <rte_mbuf.h> #include <rte_memory.h>
lib/bpf/rte_bpf.h +1 -0
@@ -16,6 +16,7 @@* (https://www.kernel.org/doc/Documentation/networking/filter.txt). */ +#include <rte_compat.h> #include <rte_common.h> #include <rte_mbuf.h> #include <bpf_def.h>
lib/compressdev/rte_comp.h +1 -0
@@ -16,6 +16,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_mbuf.h> /**
lib/compressdev/rte_compressdev.h +1 -0
@@ -22,6 +22,7 @@ extern "C" {#endif +#include <rte_compat.h> #include "rte_comp.h" /**
lib/compressdev/rte_compressdev_pmd.h +1 -0
@@ -21,6 +21,7 @@ extern "C" {#include <dev_driver.h> +#include <rte_compat.h> #include "rte_compressdev.h" #include "rte_compressdev_internal.h"
lib/cryptodev/cryptodev_pmd.h +1 -0
@@ -20,6 +20,7 @@ extern "C" {#include <string.h> #include <dev_driver.h> +#include <rte_compat.h> #include <rte_malloc.h> #include <rte_log.h> #include <rte_common.h>
lib/cryptodev/rte_crypto_sym.h +1 -0
@@ -20,6 +20,7 @@ extern "C" {#include <string.h> +#include <rte_compat.h> #include <rte_mbuf.h> #include <rte_memory.h> #include <rte_mempool.h>
lib/cryptodev/rte_cryptodev.h +1 -0
@@ -18,6 +18,7 @@extern "C" {#endif +#include <rte_compat.h> #include "rte_kvargs.h" #include "rte_crypto.h" #include <rte_common.h>
lib/dmadev/rte_dmadev_pmd.h +1 -0
@@ -16,6 +16,7 @@#include <dev_driver.h> +#include <rte_compat.h> #include "rte_dmadev.h" #ifdef __cplusplus
lib/eal/arm/include/rte_io_64.h +1 -0
@@ -14,6 +14,7 @@ extern "C" {#define RTE_OVERRIDE_IO_H #include "generic/rte_io.h" +#include <rte_compat.h> #include "rte_atomic_64.h" static __rte_always_inline uint8_t
lib/eal/arm/include/rte_prefetch_32.h +1 -0
@@ -9,6 +9,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_common.h> #include "generic/rte_prefetch.h"
lib/eal/arm/include/rte_prefetch_64.h +1 -0
@@ -9,6 +9,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_common.h> #include "generic/rte_prefetch.h"
lib/eal/freebsd/eal.c +0 -1
@@ -21,7 +21,6 @@#include <sys/queue.h> #include <sys/stat.h> -#include <rte_compat.h> #include <rte_common.h> #include <rte_debug.h> #include <rte_memory.h>
lib/eal/freebsd/eal_dev.c +0 -1
@@ -3,7 +3,6 @@*/ #include <rte_log.h> -#include <rte_compat.h> #include <rte_dev.h> int
lib/eal/include/generic/rte_atomic.h +1 -0
@@ -13,6 +13,7 @@*/ #include <stdint.h> +#include <rte_compat.h> #include <rte_common.h> #ifdef __DOXYGEN__
lib/eal/include/generic/rte_cycles.h +0 -1
@@ -13,7 +13,6 @@*/ #include <stdint.h> -#include <rte_compat.h> #include <rte_debug.h> #include <rte_atomic.h>
lib/eal/include/generic/rte_pause.h +0 -1
@@ -17,7 +17,6 @@#include <assert.h> #include <rte_common.h> #include <rte_atomic.h> -#include <rte_compat.h> /** * Pause CPU execution for a short while
lib/eal/include/rte_bitmap.h +1 -0
@@ -36,6 +36,7 @@ extern "C" {***/ #include <string.h> +#include <rte_compat.h> #include <rte_common.h> #include <rte_config.h> #include <rte_debug.h>
lib/eal/include/rte_class.h +1 -0
@@ -22,6 +22,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_dev.h> /** Double linked list of classes */
lib/eal/include/rte_eal_memconfig.h +0 -1
@@ -7,7 +7,6 @@#include <stdbool.h> -#include <rte_compat.h> /** * @file
lib/eal/include/rte_epoll.h +0 -1
@@ -13,7 +13,6 @@#include <stdint.h> -#include <rte_compat.h> #ifdef __cplusplusextern "C" {
lib/eal/include/rte_fbarray.h +0 -1
@@ -36,7 +36,6 @@ extern "C" {#include <stdio.h> -#include <rte_compat.h> #include <rte_rwlock.h> #define RTE_FBARRAY_NAME_LEN 64
lib/eal/include/rte_lcore.h +1 -0
@@ -13,6 +13,7 @@*/ #include <stdio.h> +#include <rte_compat.h> #include <rte_config.h> #include <rte_per_lcore.h> #include <rte_eal.h>
lib/eal/include/rte_log.h +0 -1
@@ -24,7 +24,6 @@ extern "C" {#include <rte_common.h> #include <rte_config.h> -#include <rte_compat.h> /* SDK log type */ #define RTE_LOGTYPE_EAL 0/**< Log related to eal. */
lib/eal/include/rte_malloc.h +0 -1
@@ -13,7 +13,6 @@#include <stdio.h> #include <stddef.h> -#include <rte_compat.h> #include <rte_memory.h> #ifdef __cplusplus
lib/eal/include/rte_memory.h +0 -1
@@ -21,7 +21,6 @@ extern "C" {#include <rte_bitops.h> #include <rte_common.h> -#include <rte_compat.h> #include <rte_config.h> #include <rte_fbarray.h>
lib/eal/include/rte_memzone.h +0 -1
@@ -23,7 +23,6 @@*/ #include <stdio.h> -#include <rte_compat.h> #include <rte_memory.h> #include <rte_common.h>
lib/eal/include/rte_pflock.h +1 -0
@@ -31,6 +31,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_common.h> #include <rte_pause.h>
lib/eal/include/rte_service.h +1 -0
@@ -30,6 +30,7 @@ extern "C" {#include <stdio.h> #include <stdint.h> +#include <rte_compat.h> #include <rte_config.h> #include <rte_lcore.h>
lib/eal/include/rte_service_component.h +0 -1
@@ -14,7 +14,6 @@extern "C" {#endif -#include <rte_compat.h> #include <rte_service.h> /**
lib/eal/loongarch/include/rte_prefetch.h +1 -0
@@ -9,6 +9,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_common.h> #include "generic/rte_prefetch.h"
lib/eal/ppc/include/rte_atomic.h +0 -1
@@ -17,7 +17,6 @@ extern "C" {#endif #include <stdint.h> -#include <rte_compat.h> #include "generic/rte_atomic.h" #define rte_mb () asm volatile("sync" : : : "memory")
lib/eal/ppc/include/rte_prefetch.h +1 -0
@@ -10,6 +10,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_common.h> #include "generic/rte_prefetch.h"
lib/eal/riscv/include/rte_prefetch.h +1 -0
@@ -12,6 +12,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_common.h> #include "generic/rte_prefetch.h"
lib/eal/x86/include/rte_io.h +1 -0
@@ -9,6 +9,7 @@extern "C" {#endif +#include <rte_compat.h> #include "rte_cpuflags.h" #define RTE_NATIVE_WRITE32_WC
lib/eal/x86/include/rte_prefetch.h +1 -0
@@ -9,6 +9,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_common.h> #include "generic/rte_prefetch.h"
lib/ethdev/ethdev_driver.h +1 -0
@@ -20,6 +20,7 @@ extern "C" {*/ #include <dev_driver.h> +#include <rte_compat.h> #include <rte_ethdev.h> /**
lib/ethdev/rte_flow.h +1 -0
@@ -17,6 +17,7 @@#include <stddef.h> #include <stdint.h> +#include <rte_compat.h> #include <rte_common.h> #include <rte_ether.h> #include <rte_icmp.h>
lib/ethdev/rte_tm.h +1 -0
@@ -22,6 +22,7 @@#include <stdint.h> +#include <rte_compat.h> #include <rte_common.h> #include <rte_meter.h>
lib/eventdev/eventdev_pmd_pci.h +1 -0
@@ -19,6 +19,7 @@ extern "C" {#include <string.h> +#include <rte_compat.h> #include <rte_config.h> #include <rte_eal.h> #include <rte_lcore.h>
lib/eventdev/eventdev_pmd_vdev.h +1 -0
@@ -19,6 +19,7 @@ extern "C" {#include <string.h> +#include <rte_compat.h> #include <rte_config.h> #include <rte_debug.h> #include <rte_eal.h>
lib/eventdev/rte_event_eth_rx_adapter.h +1 -0
@@ -87,6 +87,7 @@ extern "C" {#include <stdint.h> +#include <rte_compat.h> #include <rte_service.h> #include "rte_eventdev.h"
lib/eventdev/rte_event_eth_tx_adapter.h +1 -0
@@ -79,6 +79,7 @@ extern "C" {#include <stdint.h> +#include <rte_compat.h> #include <rte_mbuf.h> #include "rte_eventdev.h"
lib/eventdev/rte_eventdev.h +1 -0
@@ -210,6 +210,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_common.h> #include <rte_errno.h> #include <rte_mbuf_pool_ops.h>
lib/gpudev/gpudev_driver.h +1 -0
@@ -16,6 +16,7 @@#include <dev_driver.h> +#include <rte_compat.h> #include "rte_gpudev.h" /* Flags indicate current state of device. */
lib/graph/rte_graph_worker.h +1 -0
@@ -16,6 +16,7 @@* process, enqueue and move streams of objects to the next nodes. */ +#include <rte_compat.h> #include <rte_common.h> #include <rte_cycles.h> #include <rte_prefetch.h>
lib/hash/rte_hash.h +0 -1
@@ -14,7 +14,6 @@#include <stdint.h> #include <stddef.h> -#include <rte_compat.h> #include <rte_rcu_qsbr.h> #ifdef __cplusplus
lib/hash/rte_thash.h +1 -0
@@ -20,6 +20,7 @@ extern "C" {#endif #include <stdint.h> +#include <rte_compat.h> #include <rte_byteorder.h> #include <rte_ip.h> #include <rte_common.h>
lib/hash/rte_thash_gfni.h +1 -0
@@ -9,6 +9,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_log.h> #ifdef RTE_ARCH_X86
lib/hash/rte_thash_x86_gfni.h +1 -0
@@ -12,6 +12,7 @@* using Galois Fields New Instructions. */ +#include <rte_compat.h> #include <rte_vect.h> #ifdef __cplusplus
lib/ip_frag/rte_ip_frag.h +1 -0
@@ -19,6 +19,7 @@ extern "C" {#include <stdint.h> #include <stdio.h> +#include <rte_compat.h> #include <rte_config.h> #include <rte_malloc.h> #include <rte_memory.h>
lib/ipsec/rte_ipsec.h +1 -0
@@ -14,6 +14,7 @@* processing (ESP/AH). */ +#include <rte_compat.h> #include <rte_ipsec_sa.h> #include <rte_mbuf.h>
lib/ipsec/rte_ipsec_sad.h +0 -1
@@ -8,7 +8,6 @@#include <stdint.h> -#include <rte_compat.h> /** * @file rte_ipsec_sad.h
lib/kni/rte_kni.h +1 -0
@@ -17,6 +17,7 @@* and burst transmit packets to KNI interfaces. */ +#include <rte_compat.h> #include <rte_pci.h> #include <rte_ether.h>
lib/lpm/rte_lpm.h +1 -0
@@ -13,6 +13,7 @@#include <errno.h> #include <stdint.h> +#include <rte_compat.h> #include <rte_branch_prediction.h> #include <rte_byteorder.h> #include <rte_common.h>
lib/lpm/rte_lpm_sve.h +1 -0
@@ -5,6 +5,7 @@#ifndef _RTE_LPM_SVE_H_#define _RTE_LPM_SVE_H_ +#include <rte_compat.h> #include <rte_vect.h> #ifdef __cplusplus
lib/mbuf/rte_mbuf_core.h +0 -1
@@ -18,7 +18,6 @@#include <stdint.h> -#include <rte_compat.h> #include <rte_byteorder.h> #ifdef __cplusplus
lib/member/rte_member.h +1 -0
@@ -65,6 +65,7 @@ extern "C" {#include <stdbool.h> #include <inttypes.h> +#include <rte_compat.h> #include <rte_common.h> /** The set ID type that stored internally in hash table based set summary. */
lib/mempool/rte_mempool.h +1 -0
@@ -37,6 +37,7 @@#include <stdint.h> #include <inttypes.h> +#include <rte_compat.h> #include <rte_config.h> #include <rte_spinlock.h> #include <rte_debug.h>
lib/meter/rte_meter.h +0 -1
@@ -23,7 +23,6 @@ extern "C" {#include <stdint.h> -#include "rte_compat.h" /* * Application Programmer's Interface (API)
lib/metrics/rte_metrics.h +0 -1
@@ -24,7 +24,6 @@#define _RTE_METRICS_H_#include <stdint.h> -#include <rte_compat.h> #ifdef __cplusplusextern "C" {
lib/metrics/rte_metrics_telemetry.h +1 -0
@@ -8,6 +8,7 @@#define json_t void *#endif +#include <rte_compat.h> #include "rte_metrics.h" #ifndef _RTE_METRICS_TELEMETRY_H_
lib/net/rte_ip.h +1 -0
@@ -28,6 +28,7 @@#include <netinet/ip6.h> #endif +#include <rte_compat.h> #include <rte_byteorder.h> #include <rte_mbuf.h>
lib/node/rte_node_eth_api.h +1 -0
@@ -21,6 +21,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_common.h> #include <rte_mempool.h>
lib/pdump/rte_pdump.h +1 -0
@@ -13,6 +13,7 @@*/ #include <stdint.h> +#include <rte_compat.h> #include <rte_bpf.h> #ifdef __cplusplus
lib/power/rte_power.h +1 -0
@@ -10,6 +10,7 @@* RTE Power Management */ +#include <rte_compat.h> #include <rte_common.h> #include <rte_log.h> #include <rte_power_guest_channel.h>
lib/power/rte_power_empty_poll.h +1 -0
@@ -12,6 +12,7 @@#include <stdint.h> #include <stdbool.h> +#include <rte_compat.h> #include <rte_common.h> #include <rte_string_fns.h> #include <rte_timer.h>
lib/power/rte_power_intel_uncore.h +1 -0
@@ -10,6 +10,7 @@* RTE Intel Uncore Frequency Management */ +#include <rte_compat.h> #include "rte_power.h" #ifdef __cplusplus
lib/power/rte_power_pmd_mgmt.h +1 -0
@@ -12,6 +12,7 @@#include <stdint.h> +#include <rte_compat.h> #include <rte_log.h> #include <rte_power.h>
lib/rcu/rte_rcu_qsbr.h +1 -0
@@ -33,6 +33,7 @@ extern "C" {#include <stdbool.h> #include <stdio.h> #include <stdint.h> +#include <rte_compat.h> #include <rte_common.h> #include <rte_debug.h> #include <rte_atomic.h>
lib/regexdev/rte_regexdev.h +1 -0
@@ -198,6 +198,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_common.h> #include <rte_dev.h> #include <rte_mbuf.h>
lib/regexdev/rte_regexdev_driver.h +1 -0
@@ -14,6 +14,7 @@* RegEx lib. */ +#include <rte_compat.h> #include "rte_regexdev.h" #ifdef __cplusplus
lib/reorder/rte_reorder.h +1 -0
@@ -15,6 +15,7 @@* */ +#include <rte_compat.h> #include <rte_mbuf.h> #include <rte_mbuf_dyn.h>
lib/sched/rte_pie.h +1 -0
@@ -16,6 +16,7 @@ extern "C" {#include <stdint.h> +#include <rte_compat.h> #include <rte_random.h> #include <rte_debug.h> #include <rte_cycles.h>
lib/security/rte_security_driver.h +1 -0
@@ -17,6 +17,7 @@extern "C" {#endif +#include <rte_compat.h> #include "rte_security.h" /**
lib/telemetry/rte_telemetry.h +0 -1
@@ -4,7 +4,6 @@#include <stdint.h> -#include <rte_compat.h> #ifndef _RTE_TELEMETRY_H_#define _RTE_TELEMETRY_H_
lib/timer/rte_timer.h +1 -0
@@ -36,6 +36,7 @@#include <stdio.h> #include <stdint.h> +#include <rte_compat.h> #include <rte_common.h> #include <rte_spinlock.h>
lib/vhost/rte_vhost.h +1 -0
@@ -14,6 +14,7 @@#include <stdint.h> #include <sys/eventfd.h> +#include <rte_compat.h> #include <rte_memory.h> #include <rte_mempool.h>
Signature · 1 line
2.37.3
Quoted 53 lines · David Marchand
With symbols going though experimental/stable stages, we accumulated a lot of discrepancies about inclusion of the
rte_compat.hheader.Some headers are including it where unneeded, while others rely on implicit inclusion.
Fix unneeded inclusions:
$ git grep -l include..rte_compat.h | xargs grep -LE '__rte_(internal|experimental)' | xargs sed -i -e '/#include..rte_compat.h/d'Fix missing inclusion, by inserting
rte_compat.hbefore the first inclusion of a DPDK header:$ git grep -lE '__rte_(internal|experimental)' | xargs grep -L include..rte_compat.h | xargs sed -i -e \ '0,/#include..\(rte_\|.*pmd.h.$\)/{ s/\(#include..\(rte_\|.*pmd.h.$\)\)/#include <rte_compat.h>\n\1/ }'Fix missing inclusion, by inserting
rte_compat.hafter the last inclusion of a non DPDK header:$ for file in $(git grep -lE '__rte_(internal|experimental)' | xargs grep -L include..rte_compat.h); do tac $file > $file.$$ sed -i -e \ '0,/#include../{ s/\(#include..*$\)/#include <rte_compat.h>\n\n\1/ }' $file.$$ tac $file.$$ > $file rm $file.$$ doneFix missing inclusion, by inserting
rte_compat.hafter the header guard:$ git grep -lE '__rte_(internal|experimental)' | xargs grep -L include..rte_compat.h | xargs sed -i -e \ '0,/#define/{ s/\(#define .*$\)/\1\n\n#include <rte_compat.h>/ }'And finally, exclude
rte_compat.hitself.$ git checkout lib/eal/include/rte_compat.hAt the end of all this, we have a clean tree:
$ git grep -lE '__rte_(internal|experimental)' | xargs grep -L include..rte_compat.h buildtools/check-symbols.sh devtools/checkpatches.sh doc/guides/contributing/abi_policy.rst doc/guides/rel_notes/release_20_11.rst lib/eal/include/rte_compat.h
Quoted 2 lines
Signed-off-by David Marchand <[email protected]>---
Very nice work, thanks!
drivers/baseband/acc/rte_acc_common_cfg.h line 25
Quoted 12 lines · David Marchand
drivers/baseband/acc/rte_acc_common_cfg.h +1
-0@@ -19,6 +19,7 @@#include <stdint.h> #include <stdbool.h> +#ifdef __cplusplusextern "C" {#endif
o_O
This hunk is strange and it is not generated with the commands I listed in the commitlog.
This is probably a pebcak on my side when I refreshed the patch after rc2..
v2 on the way.
Signature · 1 line
David Marchand
PATCH v2 1/1 cleanup compat header inclusions
In reply to David MarchandWith symbols going though experimental/stable stages, we accumulated a lot of discrepancies about inclusion of the rte_compat.h header.
Some headers are including it where unneeded, while others rely on implicit inclusion.
Fix unneeded inclusions:
$ git grep -l include..rte_compat.h | xargs grep -LE '__rte_(internal|experimental)' | xargs sed -i -e '/#include..rte_compat.h/d'
Fix missing inclusion, by inserting rte_compat.h before the first inclusion of a DPDK header:
$ git grep -lE '__rte_(internal|experimental)' |
xargs grep -L include..rte_compat.h |
xargs sed -i -e \
'0,/#include..\(rte_\|.*pmd.h.$\)/{
s/\(#include..\(rte_\|.*pmd.h.$\)\)/#include <rte_compat.h>\n\1/
}'Fix missing inclusion, by inserting rte_compat.h after the last inclusion of a non DPDK header:
$ for file in $(git grep -lE '__rte_(internal|experimental)' |
xargs grep -L include..rte_compat.h); do
tac $file > $file.$$
sed -i -e \
'0,/#include../{
s/\(#include..*$\)/#include <rte_compat.h>\n\n\1/
}' $file.$$
tac $file.$$ > $file
rm $file.$$
doneFix missing inclusion, by inserting rte_compat.h after the header guard:
$ git grep -lE '__rte_(internal|experimental)' |
xargs grep -L include..rte_compat.h |
xargs sed -i -e \
'0,/#define/{
s/\(#define .*$\)/\1\n\n#include <rte_compat.h>/
}'And finally, exclude rte_compat.h itself.
$ git checkout lib/eal/include/rte_compat.h
At the end of all this, we have a clean tree:
$ git grep -lE '__rte_(internal|experimental)' | xargs grep -L include..rte_compat.h buildtools/check-symbols.sh devtools/checkpatches.sh doc/guides/contributing/abi_policy.rst doc/guides/rel_notes/release_20_11.rst lib/eal/include/rte_compat.h
---
Changes since v1:
- dropped unrelated empty line change in
drivers/baseband/acc/rte_acc_common_cfg.h,
--- drivers/baseband/acc/rte_acc_cfg.h | 1 + drivers/baseband/fpga_5gnr_fec/rte_pmd_fpga_5gnr_fec.h | 2 ++ drivers/baseband/fpga_lte_fec/fpga_lte_fec.h | 2 ++ drivers/bus/dpaa/include/fsl_bman.h | 2 ++ drivers/bus/dpaa/include/fsl_qman.h | 1 + drivers/bus/dpaa/include/fsl_usd.h | 2 ++ drivers/bus/dpaa/include/netcfg.h | 2 ++ drivers/bus/dpaa/include/process.h | 1 + drivers/bus/fslmc/mc/fsl_dpci.h | 2 ++ drivers/bus/fslmc/mc/fsl_dpcon.h | 2 ++ drivers/bus/fslmc/portal/dpaa2_hw_dpio.h | 2 ++ drivers/bus/fslmc/portal/dpaa2_hw_pvt.h | 1 + drivers/bus/pci/rte_bus_pci.h | 1 + drivers/bus/vmbus/rte_bus_vmbus.h | 1 - drivers/common/cnxk/roc_platform.h | 1 + drivers/common/cpt/cpt_pmd_ops_helper.h | 2 ++ drivers/common/dpaax/dpaax_iova_table.h | 1 + drivers/common/iavf/iavf_prototype.h | 2 ++ drivers/common/idpf/base/idpf_controlq_api.h | 2 ++ drivers/common/mlx5/linux/mlx5_common_os.h | 1 + drivers/common/mlx5/linux/mlx5_nl.h | 1 + drivers/common/mlx5/mlx5_common.h | 1 + drivers/common/mlx5/mlx5_common_devx.h | 2 ++ drivers/common/mlx5/mlx5_common_mp.h | 1 + drivers/common/mlx5/mlx5_common_mr.h | 1 + drivers/common/mlx5/mlx5_common_utils.h | 1 + drivers/common/mlx5/mlx5_malloc.h | 2 ++ drivers/common/mlx5/windows/mlx5_common_os.h | 1 + drivers/common/octeontx/octeontx_mbox.h | 1 + drivers/common/sfc_efx/efsys.h | 1 + drivers/common/sfc_efx/sfc_efx.h | 2 ++ drivers/common/sfc_efx/sfc_efx_mcdi.h | 1 + drivers/crypto/cnxk/cn10k_cryptodev_ops.h | 1 + drivers/crypto/cnxk/cn9k_cryptodev_ops.h | 1 + drivers/crypto/dpaa2_sec/dpaa2_sec_event.h | 2 ++ drivers/crypto/dpaa_sec/dpaa_sec_event.h | 2 ++ drivers/crypto/octeontx/otx_cryptodev_ops.h | 1 + drivers/dma/dpaa2/rte_pmd_dpaa2_qdma.h | 2 ++ drivers/event/dlb2/rte_pmd_dlb2.h | 2 ++ drivers/mempool/dpaa2/dpaa2_hw_mempool.h | 2 ++ drivers/mempool/dpaa2/rte_dpaa2_mempool.h | 1 + drivers/net/bonding/rte_eth_bond_8023ad.c | 1 - drivers/net/cnxk/cnxk_ethdev.h | 1 + drivers/net/dpaa/dpaa_ethdev.h | 1 + drivers/net/dpaa2/dpaa2_ethdev.h | 1 + drivers/net/dpaa2/rte_pmd_dpaa2.h | 1 + drivers/net/iavf/rte_pmd_iavf.h | 1 + drivers/net/ice/ice_ethdev.h | 1 + drivers/net/mlx5/rte_pmd_mlx5.h | 2 ++ drivers/net/txgbe/rte_pmd_txgbe.h | 1 - lib/bbdev/rte_bbdev.h | 1 + lib/bbdev/rte_bbdev_op.h | 1 + lib/bpf/rte_bpf.h | 1 + lib/compressdev/rte_comp.h | 1 + lib/compressdev/rte_compressdev.h | 1 + lib/compressdev/rte_compressdev_pmd.h | 1 + lib/cryptodev/cryptodev_pmd.h | 1 + lib/cryptodev/rte_crypto_sym.h | 1 + lib/cryptodev/rte_cryptodev.h | 1 + lib/dmadev/rte_dmadev_pmd.h | 1 + lib/eal/arm/include/rte_io_64.h | 1 + lib/eal/arm/include/rte_prefetch_32.h | 1 + lib/eal/arm/include/rte_prefetch_64.h | 1 + lib/eal/freebsd/eal.c | 1 - lib/eal/freebsd/eal_dev.c | 1 - lib/eal/include/generic/rte_atomic.h | 1 + lib/eal/include/generic/rte_cycles.h | 1 - lib/eal/include/generic/rte_pause.h | 1 - lib/eal/include/rte_bitmap.h | 1 + lib/eal/include/rte_class.h | 1 + lib/eal/include/rte_eal_memconfig.h | 1 - lib/eal/include/rte_epoll.h | 1 - lib/eal/include/rte_fbarray.h | 1 - lib/eal/include/rte_lcore.h | 1 + lib/eal/include/rte_log.h | 1 - lib/eal/include/rte_malloc.h | 1 - lib/eal/include/rte_memory.h | 1 - lib/eal/include/rte_memzone.h | 1 - lib/eal/include/rte_pflock.h | 1 + lib/eal/include/rte_service.h | 1 + lib/eal/include/rte_service_component.h | 1 - lib/eal/loongarch/include/rte_prefetch.h | 1 + lib/eal/ppc/include/rte_atomic.h | 1 - lib/eal/ppc/include/rte_prefetch.h | 1 + lib/eal/riscv/include/rte_prefetch.h | 1 + lib/eal/x86/include/rte_io.h | 1 + lib/eal/x86/include/rte_prefetch.h | 1 + lib/ethdev/ethdev_driver.h | 1 + lib/ethdev/rte_flow.h | 1 + lib/ethdev/rte_tm.h | 1 + lib/eventdev/eventdev_pmd_pci.h | 1 + lib/eventdev/eventdev_pmd_vdev.h | 1 + lib/eventdev/rte_event_eth_rx_adapter.h | 1 + lib/eventdev/rte_event_eth_tx_adapter.h | 1 + lib/eventdev/rte_eventdev.h | 1 + lib/gpudev/gpudev_driver.h | 1 + lib/graph/rte_graph_worker.h | 1 + lib/hash/rte_hash.h | 1 - lib/hash/rte_thash.h | 1 + lib/hash/rte_thash_gfni.h | 1 + lib/hash/rte_thash_x86_gfni.h | 1 + lib/ip_frag/rte_ip_frag.h | 1 + lib/ipsec/rte_ipsec.h | 1 + lib/ipsec/rte_ipsec_sad.h | 1 - lib/kni/rte_kni.h | 1 + lib/lpm/rte_lpm.h | 1 + lib/lpm/rte_lpm_sve.h | 1 + lib/mbuf/rte_mbuf_core.h | 1 - lib/member/rte_member.h | 1 + lib/mempool/rte_mempool.h | 1 + lib/meter/rte_meter.h | 1 - lib/metrics/rte_metrics.h | 1 - lib/metrics/rte_metrics_telemetry.h | 1 + lib/net/rte_ip.h | 1 + lib/node/rte_node_eth_api.h | 1 + lib/pdump/rte_pdump.h | 1 + lib/power/rte_power.h | 1 + lib/power/rte_power_empty_poll.h | 1 + lib/power/rte_power_intel_uncore.h | 1 + lib/power/rte_power_pmd_mgmt.h | 1 + lib/rcu/rte_rcu_qsbr.h | 1 + lib/regexdev/rte_regexdev.h | 1 + lib/regexdev/rte_regexdev_driver.h | 1 + lib/reorder/rte_reorder.h | 1 + lib/sched/rte_pie.h | 1 + lib/security/rte_security_driver.h | 1 + lib/telemetry/rte_telemetry.h | 1 - lib/timer/rte_timer.h | 1 + lib/vhost/rte_vhost.h | 1 + 129 files changed, 127 insertions(+), 22 deletions(-)
drivers/baseband/acc/rte_acc_cfg.h +1 -0
@@ -18,6 +18,7 @@#include <stdint.h> #include <stdbool.h> +#include <rte_compat.h> #include "rte_acc_common_cfg.h" #ifdef __cplusplus
drivers/baseband/fpga_5gnr_fec/rte_pmd_fpga_5gnr_fec.h +2 -0
@@ -8,6 +8,8 @@#include <stdint.h> #include <stdbool.h> +#include <rte_compat.h> +/** * @file rte_pmd_fpga_5gnr_fec.h *
drivers/baseband/fpga_lte_fec/fpga_lte_fec.h +2 -0
@@ -8,6 +8,8 @@#include <stdint.h> #include <stdbool.h> +#include <rte_compat.h> +/** * @file fpga_lte_fec.h *
drivers/bus/dpaa/include/fsl_bman.h +2 -0
@@ -7,6 +7,8 @@ #ifndef __FSL_BMAN_H #define __FSL_BMAN_H +#include <rte_compat.h> + #ifdef __cplusplus extern "C" { #endif
drivers/bus/dpaa/include/fsl_qman.h +1 -0
@@ -13,6 +13,7 @@ extern "C" {#endif #include <dpaa_rbtree.h> +#include <rte_compat.h> #include <rte_eventdev.h> /* FQ lookups (turn this on for 64bit user-space) */
drivers/bus/dpaa/include/fsl_usd.h +2 -0
@@ -13,6 +13,8 @@#include <dpaa_list.h> #include <fsl_qman.h> +#include <rte_compat.h> +#ifdef __cplusplusextern "C" {#endif
drivers/bus/dpaa/include/netcfg.h +2 -0
@@ -10,6 +10,8 @@#include <fman.h> +#include <rte_compat.h> +/* Configuration information related to a specific ethernet port */ struct fm_eth_port_cfg {/**< A list of PCD FQ ranges, obtained from FMC configuration */
drivers/bus/dpaa/include/process.h +1 -0
@@ -10,6 +10,7 @@#define __PROCESS_H#include <compat.h> +#include <rte_compat.h> #include <rte_ethdev.h> /* The process device underlies process-wide user/kernel interactions, such as
drivers/bus/fslmc/mc/fsl_dpci.h +2 -0
@@ -9,6 +9,8 @@#include <fsl_dpopr.h> +#include <rte_compat.h> +/* Data Path Communication Interface API * Contains initialization APIs and runtime control APIs for DPCI */
drivers/bus/fslmc/mc/fsl_dpcon.h +2 -0
@@ -7,6 +7,8 @@#ifndef __FSL_DPCON_H#define __FSL_DPCON_H +#include <rte_compat.h> +/* Data Path Concentrator API * Contains initialization APIs and runtime control APIs for DPCON */
drivers/bus/fslmc/portal/dpaa2_hw_dpio.h +2 -0
@@ -11,6 +11,8 @@#include <mc/fsl_dpio.h> #include <mc/fsl_mc_sys.h> +#include <rte_compat.h> +struct dpaa2_io_portal_t {struct dpaa2_dpio_dev *dpio_dev;struct dpaa2_dpio_dev *ethrx_dpio_dev;
drivers/bus/fslmc/portal/dpaa2_hw_pvt.h +1 -0
@@ -8,6 +8,7 @@#ifndef _DPAA2_HW_PVT_H_#define _DPAA2_HW_PVT_H_ +#include <rte_compat.h> #include <rte_eventdev.h> #include <dpaax_iova_table.h>
drivers/bus/pci/rte_bus_pci.h +1 -0
@@ -22,6 +22,7 @@ extern "C" {#include <stdint.h> #include <inttypes.h> +#include <rte_compat.h> #include <rte_debug.h> #include <rte_interrupts.h> #include <rte_pci.h>
drivers/bus/vmbus/rte_bus_vmbus.h +0 -1
@@ -23,7 +23,6 @@ extern "C" {#include <stdint.h> #include <inttypes.h> -#include <rte_compat.h> #include <rte_uuid.h> #include <rte_debug.h> #include <rte_interrupts.h>
drivers/common/cnxk/roc_platform.h +1 -0
@@ -5,6 +5,7 @@#ifndef _ROC_PLATFORM_H_#define _ROC_PLATFORM_H_ +#include <rte_compat.h> #include <rte_alarm.h> #include <rte_bitmap.h> #include <bus_pci_driver.h>
drivers/common/cpt/cpt_pmd_ops_helper.h +2 -0
@@ -5,6 +5,8 @@#ifndef _CPT_PMD_OPS_HELPER_H_#define _CPT_PMD_OPS_HELPER_H_ +#include <rte_compat.h> +/* * This file defines the agreement between the common layer and the individual * crypto drivers for OCTEON TX series. Control path in otx* directory can
drivers/common/dpaax/dpaax_iova_table.h +1 -0
@@ -19,6 +19,7 @@#include <errno.h> #include <arpa/inet.h> +#include <rte_compat.h> #include <rte_eal.h> #include <rte_branch_prediction.h> #include <rte_memory.h>
drivers/common/iavf/iavf_prototype.h +2 -0
@@ -9,6 +9,8 @@#include "iavf_alloc.h" #include "virtchnl.h" +#include <rte_compat.h> +/* Prototypes for shared code functions that are not in * the standard function pointer structures. These are * mostly because they are needed even before the init
drivers/common/idpf/base/idpf_controlq_api.h +2 -0
@@ -9,6 +9,8 @@#include "idpf_mem.h" #else /* !__KERNEL__ */ #include "idpf_osdep.h" + +#include <rte_compat.h> #endif /* !__KERNEL__ */ struct idpf_hw ;
drivers/common/mlx5/linux/mlx5_common_os.h +1 -0
@@ -8,6 +8,7 @@#include <stdio.h> #include <malloc.h> +#include <rte_compat.h> #include <rte_pci.h> #include <bus_pci_driver.h> #include <rte_debug.h>
drivers/common/mlx5/linux/mlx5_nl.h +1 -0
@@ -7,6 +7,7 @@#include <linux/netlink.h> +#include <rte_compat.h> #include <rte_ether.h> #include "mlx5_common.h"
drivers/common/mlx5/mlx5_common.h +1 -0
@@ -7,6 +7,7 @@#include <stdio.h> +#include <rte_compat.h> #include <rte_pci.h> #include <bus_pci_driver.h> #include <rte_debug.h>
drivers/common/mlx5/mlx5_common_devx.h +2 -0
@@ -7,6 +7,8 @@#include "mlx5_devx_cmds.h" +#include <rte_compat.h> +/* The standard page size */ #define MLX5_LOG_PAGE_SIZE 12
drivers/common/mlx5/mlx5_common_mp.h +1 -0
@@ -7,6 +7,7 @@#define RTE_PMD_MLX5_COMMON_MP_H_ #include <mlx5_glue.h> +#include <rte_compat.h> #include <rte_eal.h> #include <rte_string_fns.h>
drivers/common/mlx5/mlx5_common_mr.h +1 -0
@@ -11,6 +11,7 @@#include <sys/queue.h> +#include <rte_compat.h> #include <rte_rwlock.h> #include <rte_bitmap.h> #include <rte_mbuf.h>
drivers/common/mlx5/mlx5_common_utils.h +1 -0
@@ -5,6 +5,7 @@#ifndef RTE_PMD_MLX5_COMMON_UTILS_H_ #define RTE_PMD_MLX5_COMMON_UTILS_H_ +#include <rte_compat.h> #include <rte_rwlock.h> #include "mlx5_common.h"
drivers/common/mlx5/mlx5_malloc.h +2 -0
@@ -5,6 +5,8 @@ #ifndef MLX5_MALLOC_H_ #define MLX5_MALLOC_H_ +#include <rte_compat.h> + #ifdef __cplusplus extern "C" { #endif
drivers/common/mlx5/windows/mlx5_common_os.h +1 -0
@@ -8,6 +8,7 @@#include <stdio.h> #include <sys/types.h> +#include <rte_compat.h> #include <rte_errno.h> #include <rte_interrupts.h>
drivers/common/octeontx/octeontx_mbox.h +1 -0
@@ -5,6 +5,7 @@#ifndef __OCTEONTX_MBOX_H__#define __OCTEONTX_MBOX_H__ +#include <rte_compat.h> #include <rte_common.h> #include <rte_spinlock.h>
drivers/common/sfc_efx/efsys.h +1 -0
@@ -12,6 +12,7 @@#include <stdbool.h> +#include <rte_compat.h> #include <rte_spinlock.h> #include <rte_byteorder.h> #include <rte_debug.h>
drivers/common/sfc_efx/sfc_efx.h +2 -0
@@ -15,6 +15,8 @@#include "efx.h" #include "efsys.h" +#include <rte_compat.h> +#ifdef __cplusplusextern "C" {#endif
drivers/common/sfc_efx/sfc_efx_mcdi.h +1 -0
@@ -12,6 +12,7 @@#include <stdint.h> +#include <rte_compat.h> #include <rte_spinlock.h> #include "efsys.h"
drivers/crypto/cnxk/cn10k_cryptodev_ops.h +1 -0
@@ -5,6 +5,7 @@#ifndef _CN10K_CRYPTODEV_OPS_H_#define _CN10K_CRYPTODEV_OPS_H_ +#include <rte_compat.h> #include <cryptodev_pmd.h> #include <rte_cryptodev.h> #include <rte_eventdev.h>
drivers/crypto/cnxk/cn9k_cryptodev_ops.h +1 -0
@@ -5,6 +5,7 @@#ifndef _CN9K_CRYPTODEV_OPS_H_#define _CN9K_CRYPTODEV_OPS_H_ +#include <rte_compat.h> #include <cryptodev_pmd.h> extern struct rte_cryptodev_ops cn9k_cpt_ops;
drivers/crypto/dpaa2_sec/dpaa2_sec_event.h +2 -0
@@ -6,6 +6,8 @@#ifndef _DPAA2_SEC_EVENT_H_#define _DPAA2_SEC_EVENT_H_ +#include <rte_compat.h> + __rte_internal int dpaa2_sec_eventq_attach(const struct rte_cryptodev *dev, int qp_id,
drivers/crypto/dpaa_sec/dpaa_sec_event.h +2 -0
@@ -6,6 +6,8 @@#ifndef _DPAA_SEC_EVENT_H_#define _DPAA_SEC_EVENT_H_ +#include <rte_compat.h> + __rte_internal int dpaa_sec_eventq_attach(const struct rte_cryptodev *dev, int qp_id,
drivers/crypto/octeontx/otx_cryptodev_ops.h +1 -0
@@ -5,6 +5,7 @@#ifndef _OTX_CRYPTODEV_OPS_H_#define _OTX_CRYPTODEV_OPS_H_ +#include <rte_compat.h> #include <cryptodev_pmd.h> #define OTX_CPT_MIN_HEADROOM_REQ (24)
drivers/dma/dpaa2/rte_pmd_dpaa2_qdma.h +2 -0
@@ -5,6 +5,8 @@#ifndef _RTE_PMD_DPAA2_QDMA_H_#define _RTE_PMD_DPAA2_QDMA_H_ +#include <rte_compat.h> +/** States if the source addresses is physical. */ #define RTE_DPAA2_QDMA_JOB_SRC_PHY (1ULL << 30)
drivers/event/dlb2/rte_pmd_dlb2.h +2 -0
@@ -17,6 +17,8 @@ extern "C" {#include <stdint.h> +#include <rte_compat.h> +/** * @warning * @b EXPERIMENTAL: this API may change, or be removed, without prior notice
drivers/mempool/dpaa2/dpaa2_hw_mempool.h +2 -0
@@ -8,6 +8,8 @@#ifndef _DPAA2_HW_DPBP_H_#define _DPAA2_HW_DPBP_H_ +#include <rte_compat.h> +#define DPAA2_MAX_BUF_POOLS 8 struct buf_pool_cfg {
drivers/mempool/dpaa2/rte_dpaa2_mempool.h +1 -0
@@ -16,6 +16,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_mempool.h> /**
drivers/net/bonding/rte_eth_bond_8023ad.c +0 -1
@@ -10,7 +10,6 @@#include <rte_malloc.h> #include <rte_errno.h> #include <rte_cycles.h> -#include <rte_compat.h> #include "eth_bond_private.h"
drivers/net/cnxk/cnxk_ethdev.h +1 -0
@@ -9,6 +9,7 @@#include <ethdev_driver.h> #include <ethdev_pci.h> +#include <rte_compat.h> #include <rte_kvargs.h> #include <rte_mbuf.h> #include <rte_mbuf_pool_ops.h>
drivers/net/dpaa/dpaa_ethdev.h +1 -0
@@ -10,6 +10,7 @@/* System headers */ #include <stdbool.h> #include <ethdev_driver.h> +#include <rte_compat.h> #include <rte_event_eth_rx_adapter.h> #include <fsl_usd.h>
drivers/net/dpaa2/dpaa2_ethdev.h +1 -0
@@ -8,6 +8,7 @@#ifndef _DPAA2_ETHDEV_H#define _DPAA2_ETHDEV_H +#include <rte_compat.h> #include <rte_event_eth_rx_adapter.h> #include <rte_pmd_dpaa2.h>
drivers/net/dpaa2/rte_pmd_dpaa2.h +1 -0
@@ -11,6 +11,7 @@* NXP dpaa2 PMD specific functions. */ +#include <rte_compat.h> #include <rte_flow.h> /**
drivers/net/iavf/rte_pmd_iavf.h +1 -0
@@ -15,6 +15,7 @@*/ #include <stdio.h> +#include <rte_compat.h> #include <rte_mbuf.h> #include <rte_mbuf_dyn.h>
drivers/net/ice/ice_ethdev.h +1 -0
@@ -5,6 +5,7 @@#ifndef _ICE_ETHDEV_H_#define _ICE_ETHDEV_H_ +#include <rte_compat.h> #include <rte_kvargs.h> #include <rte_time.h>
drivers/net/mlx5/rte_pmd_mlx5.h +2 -0
@@ -5,6 +5,8 @@#ifndef RTE_PMD_PRIVATE_MLX5_H_ #define RTE_PMD_PRIVATE_MLX5_H_ +#include <rte_compat.h> +/** * @file * MLX5 public header.
drivers/net/txgbe/rte_pmd_txgbe.h +0 -1
@@ -12,7 +12,6 @@#ifndef _PMD_TXGBE_H_#define _PMD_TXGBE_H_ -#include <rte_compat.h> #include <rte_ethdev.h> #include <rte_ether.h>
lib/bbdev/rte_bbdev.h +1 -0
@@ -27,6 +27,7 @@ extern "C" {#include <stdint.h> #include <stdbool.h> +#include <rte_compat.h> #include <rte_cpuflags.h> #include "rte_bbdev_op.h"
lib/bbdev/rte_bbdev_op.h +1 -0
@@ -17,6 +17,7 @@ extern "C" {#include <stdint.h> +#include <rte_compat.h> #include <rte_common.h> #include <rte_mbuf.h> #include <rte_memory.h>
lib/bpf/rte_bpf.h +1 -0
@@ -16,6 +16,7 @@* (https://www.kernel.org/doc/Documentation/networking/filter.txt). */ +#include <rte_compat.h> #include <rte_common.h> #include <rte_mbuf.h> #include <bpf_def.h>
lib/compressdev/rte_comp.h +1 -0
@@ -16,6 +16,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_mbuf.h> /**
lib/compressdev/rte_compressdev.h +1 -0
@@ -22,6 +22,7 @@ extern "C" {#endif +#include <rte_compat.h> #include "rte_comp.h" /**
lib/compressdev/rte_compressdev_pmd.h +1 -0
@@ -21,6 +21,7 @@ extern "C" {#include <dev_driver.h> +#include <rte_compat.h> #include "rte_compressdev.h" #include "rte_compressdev_internal.h"
lib/cryptodev/cryptodev_pmd.h +1 -0
@@ -20,6 +20,7 @@ extern "C" {#include <string.h> #include <dev_driver.h> +#include <rte_compat.h> #include <rte_malloc.h> #include <rte_log.h> #include <rte_common.h>
lib/cryptodev/rte_crypto_sym.h +1 -0
@@ -20,6 +20,7 @@ extern "C" {#include <string.h> +#include <rte_compat.h> #include <rte_mbuf.h> #include <rte_memory.h> #include <rte_mempool.h>
lib/cryptodev/rte_cryptodev.h +1 -0
@@ -18,6 +18,7 @@extern "C" {#endif +#include <rte_compat.h> #include "rte_kvargs.h" #include "rte_crypto.h" #include <rte_common.h>
lib/dmadev/rte_dmadev_pmd.h +1 -0
@@ -16,6 +16,7 @@#include <dev_driver.h> +#include <rte_compat.h> #include "rte_dmadev.h" #ifdef __cplusplus
lib/eal/arm/include/rte_io_64.h +1 -0
@@ -14,6 +14,7 @@ extern "C" {#define RTE_OVERRIDE_IO_H #include "generic/rte_io.h" +#include <rte_compat.h> #include "rte_atomic_64.h" static __rte_always_inline uint8_t
lib/eal/arm/include/rte_prefetch_32.h +1 -0
@@ -9,6 +9,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_common.h> #include "generic/rte_prefetch.h"
lib/eal/arm/include/rte_prefetch_64.h +1 -0
@@ -9,6 +9,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_common.h> #include "generic/rte_prefetch.h"
lib/eal/freebsd/eal.c +0 -1
@@ -21,7 +21,6 @@#include <sys/queue.h> #include <sys/stat.h> -#include <rte_compat.h> #include <rte_common.h> #include <rte_debug.h> #include <rte_memory.h>
lib/eal/freebsd/eal_dev.c +0 -1
@@ -3,7 +3,6 @@*/ #include <rte_log.h> -#include <rte_compat.h> #include <rte_dev.h> int
lib/eal/include/generic/rte_atomic.h +1 -0
@@ -13,6 +13,7 @@*/ #include <stdint.h> +#include <rte_compat.h> #include <rte_common.h> #ifdef __DOXYGEN__
lib/eal/include/generic/rte_cycles.h +0 -1
@@ -13,7 +13,6 @@*/ #include <stdint.h> -#include <rte_compat.h> #include <rte_debug.h> #include <rte_atomic.h>
lib/eal/include/generic/rte_pause.h +0 -1
@@ -17,7 +17,6 @@#include <assert.h> #include <rte_common.h> #include <rte_atomic.h> -#include <rte_compat.h> /** * Pause CPU execution for a short while
lib/eal/include/rte_bitmap.h +1 -0
@@ -36,6 +36,7 @@ extern "C" {***/ #include <string.h> +#include <rte_compat.h> #include <rte_common.h> #include <rte_config.h> #include <rte_debug.h>
lib/eal/include/rte_class.h +1 -0
@@ -22,6 +22,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_dev.h> /** Double linked list of classes */
lib/eal/include/rte_eal_memconfig.h +0 -1
@@ -7,7 +7,6 @@#include <stdbool.h> -#include <rte_compat.h> /** * @file
lib/eal/include/rte_epoll.h +0 -1
@@ -13,7 +13,6 @@#include <stdint.h> -#include <rte_compat.h> #ifdef __cplusplusextern "C" {
lib/eal/include/rte_fbarray.h +0 -1
@@ -36,7 +36,6 @@ extern "C" {#include <stdio.h> -#include <rte_compat.h> #include <rte_rwlock.h> #define RTE_FBARRAY_NAME_LEN 64
lib/eal/include/rte_lcore.h +1 -0
@@ -13,6 +13,7 @@*/ #include <stdio.h> +#include <rte_compat.h> #include <rte_config.h> #include <rte_per_lcore.h> #include <rte_eal.h>
lib/eal/include/rte_log.h +0 -1
@@ -24,7 +24,6 @@ extern "C" {#include <rte_common.h> #include <rte_config.h> -#include <rte_compat.h> /* SDK log type */ #define RTE_LOGTYPE_EAL 0/**< Log related to eal. */
lib/eal/include/rte_malloc.h +0 -1
@@ -13,7 +13,6 @@#include <stdio.h> #include <stddef.h> -#include <rte_compat.h> #include <rte_memory.h> #ifdef __cplusplus
lib/eal/include/rte_memory.h +0 -1
@@ -21,7 +21,6 @@ extern "C" {#include <rte_bitops.h> #include <rte_common.h> -#include <rte_compat.h> #include <rte_config.h> #include <rte_fbarray.h>
lib/eal/include/rte_memzone.h +0 -1
@@ -23,7 +23,6 @@*/ #include <stdio.h> -#include <rte_compat.h> #include <rte_memory.h> #include <rte_common.h>
lib/eal/include/rte_pflock.h +1 -0
@@ -31,6 +31,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_common.h> #include <rte_pause.h>
lib/eal/include/rte_service.h +1 -0
@@ -30,6 +30,7 @@ extern "C" {#include <stdio.h> #include <stdint.h> +#include <rte_compat.h> #include <rte_config.h> #include <rte_lcore.h>
lib/eal/include/rte_service_component.h +0 -1
@@ -14,7 +14,6 @@extern "C" {#endif -#include <rte_compat.h> #include <rte_service.h> /**
lib/eal/loongarch/include/rte_prefetch.h +1 -0
@@ -9,6 +9,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_common.h> #include "generic/rte_prefetch.h"
lib/eal/ppc/include/rte_atomic.h +0 -1
@@ -17,7 +17,6 @@ extern "C" {#endif #include <stdint.h> -#include <rte_compat.h> #include "generic/rte_atomic.h" #define rte_mb () asm volatile("sync" : : : "memory")
lib/eal/ppc/include/rte_prefetch.h +1 -0
@@ -10,6 +10,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_common.h> #include "generic/rte_prefetch.h"
lib/eal/riscv/include/rte_prefetch.h +1 -0
@@ -12,6 +12,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_common.h> #include "generic/rte_prefetch.h"
lib/eal/x86/include/rte_io.h +1 -0
@@ -9,6 +9,7 @@extern "C" {#endif +#include <rte_compat.h> #include "rte_cpuflags.h" #define RTE_NATIVE_WRITE32_WC
lib/eal/x86/include/rte_prefetch.h +1 -0
@@ -9,6 +9,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_common.h> #include "generic/rte_prefetch.h"
lib/ethdev/ethdev_driver.h +1 -0
@@ -20,6 +20,7 @@ extern "C" {*/ #include <dev_driver.h> +#include <rte_compat.h> #include <rte_ethdev.h> /**
lib/ethdev/rte_flow.h +1 -0
@@ -17,6 +17,7 @@#include <stddef.h> #include <stdint.h> +#include <rte_compat.h> #include <rte_common.h> #include <rte_ether.h> #include <rte_icmp.h>
lib/ethdev/rte_tm.h +1 -0
@@ -22,6 +22,7 @@#include <stdint.h> +#include <rte_compat.h> #include <rte_common.h> #include <rte_meter.h>
lib/eventdev/eventdev_pmd_pci.h +1 -0
@@ -19,6 +19,7 @@ extern "C" {#include <string.h> +#include <rte_compat.h> #include <rte_config.h> #include <rte_eal.h> #include <rte_lcore.h>
lib/eventdev/eventdev_pmd_vdev.h +1 -0
@@ -19,6 +19,7 @@ extern "C" {#include <string.h> +#include <rte_compat.h> #include <rte_config.h> #include <rte_debug.h> #include <rte_eal.h>
lib/eventdev/rte_event_eth_rx_adapter.h +1 -0
@@ -87,6 +87,7 @@ extern "C" {#include <stdint.h> +#include <rte_compat.h> #include <rte_service.h> #include "rte_eventdev.h"
lib/eventdev/rte_event_eth_tx_adapter.h +1 -0
@@ -79,6 +79,7 @@ extern "C" {#include <stdint.h> +#include <rte_compat.h> #include <rte_mbuf.h> #include "rte_eventdev.h"
lib/eventdev/rte_eventdev.h +1 -0
@@ -210,6 +210,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_common.h> #include <rte_errno.h> #include <rte_mbuf_pool_ops.h>
lib/gpudev/gpudev_driver.h +1 -0
@@ -16,6 +16,7 @@#include <dev_driver.h> +#include <rte_compat.h> #include "rte_gpudev.h" /* Flags indicate current state of device. */
lib/graph/rte_graph_worker.h +1 -0
@@ -16,6 +16,7 @@* process, enqueue and move streams of objects to the next nodes. */ +#include <rte_compat.h> #include <rte_common.h> #include <rte_cycles.h> #include <rte_prefetch.h>
lib/hash/rte_hash.h +0 -1
@@ -14,7 +14,6 @@#include <stdint.h> #include <stddef.h> -#include <rte_compat.h> #include <rte_rcu_qsbr.h> #ifdef __cplusplus
lib/hash/rte_thash.h +1 -0
@@ -20,6 +20,7 @@ extern "C" {#endif #include <stdint.h> +#include <rte_compat.h> #include <rte_byteorder.h> #include <rte_ip.h> #include <rte_common.h>
lib/hash/rte_thash_gfni.h +1 -0
@@ -9,6 +9,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_log.h> #ifdef RTE_ARCH_X86
lib/hash/rte_thash_x86_gfni.h +1 -0
@@ -12,6 +12,7 @@* using Galois Fields New Instructions. */ +#include <rte_compat.h> #include <rte_vect.h> #ifdef __cplusplus
lib/ip_frag/rte_ip_frag.h +1 -0
@@ -19,6 +19,7 @@ extern "C" {#include <stdint.h> #include <stdio.h> +#include <rte_compat.h> #include <rte_config.h> #include <rte_malloc.h> #include <rte_memory.h>
lib/ipsec/rte_ipsec.h +1 -0
@@ -14,6 +14,7 @@* processing (ESP/AH). */ +#include <rte_compat.h> #include <rte_ipsec_sa.h> #include <rte_mbuf.h>
lib/ipsec/rte_ipsec_sad.h +0 -1
@@ -8,7 +8,6 @@#include <stdint.h> -#include <rte_compat.h> /** * @file rte_ipsec_sad.h
lib/kni/rte_kni.h +1 -0
@@ -17,6 +17,7 @@* and burst transmit packets to KNI interfaces. */ +#include <rte_compat.h> #include <rte_pci.h> #include <rte_ether.h>
lib/lpm/rte_lpm.h +1 -0
@@ -13,6 +13,7 @@#include <errno.h> #include <stdint.h> +#include <rte_compat.h> #include <rte_branch_prediction.h> #include <rte_byteorder.h> #include <rte_common.h>
lib/lpm/rte_lpm_sve.h +1 -0
@@ -5,6 +5,7 @@#ifndef _RTE_LPM_SVE_H_#define _RTE_LPM_SVE_H_ +#include <rte_compat.h> #include <rte_vect.h> #ifdef __cplusplus
lib/mbuf/rte_mbuf_core.h +0 -1
@@ -18,7 +18,6 @@#include <stdint.h> -#include <rte_compat.h> #include <rte_byteorder.h> #ifdef __cplusplus
lib/member/rte_member.h +1 -0
@@ -65,6 +65,7 @@ extern "C" {#include <stdbool.h> #include <inttypes.h> +#include <rte_compat.h> #include <rte_common.h> /** The set ID type that stored internally in hash table based set summary. */
lib/mempool/rte_mempool.h +1 -0
@@ -37,6 +37,7 @@#include <stdint.h> #include <inttypes.h> +#include <rte_compat.h> #include <rte_config.h> #include <rte_spinlock.h> #include <rte_debug.h>
lib/meter/rte_meter.h +0 -1
@@ -23,7 +23,6 @@ extern "C" {#include <stdint.h> -#include "rte_compat.h" /* * Application Programmer's Interface (API)
lib/metrics/rte_metrics.h +0 -1
@@ -24,7 +24,6 @@#define _RTE_METRICS_H_#include <stdint.h> -#include <rte_compat.h> #ifdef __cplusplusextern "C" {
lib/metrics/rte_metrics_telemetry.h +1 -0
@@ -8,6 +8,7 @@#define json_t void *#endif +#include <rte_compat.h> #include "rte_metrics.h" #ifndef _RTE_METRICS_TELEMETRY_H_
lib/net/rte_ip.h +1 -0
@@ -28,6 +28,7 @@#include <netinet/ip6.h> #endif +#include <rte_compat.h> #include <rte_byteorder.h> #include <rte_mbuf.h>
lib/node/rte_node_eth_api.h +1 -0
@@ -21,6 +21,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_common.h> #include <rte_mempool.h>
lib/pdump/rte_pdump.h +1 -0
@@ -13,6 +13,7 @@*/ #include <stdint.h> +#include <rte_compat.h> #include <rte_bpf.h> #ifdef __cplusplus
lib/power/rte_power.h +1 -0
@@ -10,6 +10,7 @@* RTE Power Management */ +#include <rte_compat.h> #include <rte_common.h> #include <rte_log.h> #include <rte_power_guest_channel.h>
lib/power/rte_power_empty_poll.h +1 -0
@@ -12,6 +12,7 @@#include <stdint.h> #include <stdbool.h> +#include <rte_compat.h> #include <rte_common.h> #include <rte_string_fns.h> #include <rte_timer.h>
lib/power/rte_power_intel_uncore.h +1 -0
@@ -10,6 +10,7 @@* RTE Intel Uncore Frequency Management */ +#include <rte_compat.h> #include "rte_power.h" #ifdef __cplusplus
lib/power/rte_power_pmd_mgmt.h +1 -0
@@ -12,6 +12,7 @@#include <stdint.h> +#include <rte_compat.h> #include <rte_log.h> #include <rte_power.h>
lib/rcu/rte_rcu_qsbr.h +1 -0
@@ -33,6 +33,7 @@ extern "C" {#include <stdbool.h> #include <stdio.h> #include <stdint.h> +#include <rte_compat.h> #include <rte_common.h> #include <rte_debug.h> #include <rte_atomic.h>
lib/regexdev/rte_regexdev.h +1 -0
@@ -198,6 +198,7 @@extern "C" {#endif +#include <rte_compat.h> #include <rte_common.h> #include <rte_dev.h> #include <rte_mbuf.h>
lib/regexdev/rte_regexdev_driver.h +1 -0
@@ -14,6 +14,7 @@* RegEx lib. */ +#include <rte_compat.h> #include "rte_regexdev.h" #ifdef __cplusplus
lib/reorder/rte_reorder.h +1 -0
@@ -15,6 +15,7 @@* */ +#include <rte_compat.h> #include <rte_mbuf.h> #include <rte_mbuf_dyn.h>
lib/sched/rte_pie.h +1 -0
@@ -16,6 +16,7 @@ extern "C" {#include <stdint.h> +#include <rte_compat.h> #include <rte_random.h> #include <rte_debug.h> #include <rte_cycles.h>
lib/security/rte_security_driver.h +1 -0
@@ -17,6 +17,7 @@extern "C" {#endif +#include <rte_compat.h> #include "rte_security.h" /**
lib/telemetry/rte_telemetry.h +0 -1
@@ -4,7 +4,6 @@#include <stdint.h> -#include <rte_compat.h> #ifndef _RTE_TELEMETRY_H_#define _RTE_TELEMETRY_H_
lib/timer/rte_timer.h +1 -0
@@ -36,6 +36,7 @@#include <stdio.h> #include <stdint.h> +#include <rte_compat.h> #include <rte_common.h> #include <rte_spinlock.h>
lib/vhost/rte_vhost.h +1 -0
@@ -14,6 +14,7 @@#include <stdint.h> #include <sys/eventfd.h> +#include <rte_compat.h> #include <rte_memory.h> #include <rte_mempool.h>
Signature · 1 line
2.37.3
Quoted 53 lines · David Marchand
With symbols going though experimental/stable stages, we accumulated a lot of discrepancies about inclusion of the
rte_compat.hheader.Some headers are including it where unneeded, while others rely on implicit inclusion.
Fix unneeded inclusions:
$ git grep -l include..rte_compat.h | xargs grep -LE '__rte_(internal|experimental)' | xargs sed -i -e '/#include..rte_compat.h/d'Fix missing inclusion, by inserting
rte_compat.hbefore the first inclusion of a DPDK header:$ git grep -lE '__rte_(internal|experimental)' | xargs grep -L include..rte_compat.h | xargs sed -i -e \ '0,/#include..\(rte_\|.*pmd.h.$\)/{ s/\(#include..\(rte_\|.*pmd.h.$\)\)/#include <rte_compat.h>\n\1/ }'Fix missing inclusion, by inserting
rte_compat.hafter the last inclusion of a non DPDK header:$ for file in $(git grep -lE '__rte_(internal|experimental)' | xargs grep -L include..rte_compat.h); do tac $file > $file.$$ sed -i -e \ '0,/#include../{ s/\(#include..*$\)/#include <rte_compat.h>\n\n\1/ }' $file.$$ tac $file.$$ > $file rm $file.$$ doneFix missing inclusion, by inserting
rte_compat.hafter the header guard:$ git grep -lE '__rte_(internal|experimental)' | xargs grep -L include..rte_compat.h | xargs sed -i -e \ '0,/#define/{ s/\(#define .*$\)/\1\n\n#include <rte_compat.h>/ }'And finally, exclude
rte_compat.hitself.$ git checkout lib/eal/include/rte_compat.hAt the end of all this, we have a clean tree:
$ git grep -lE '__rte_(internal|experimental)' | xargs grep -L include..rte_compat.h buildtools/check-symbols.sh devtools/checkpatches.sh doc/guides/contributing/abi_policy.rst doc/guides/rel_notes/release_20_11.rst lib/eal/include/rte_compat.h
Quoted 2 lines
Signed-off-by David Marchand <[email protected]>Acked-by Bruce Richardson <[email protected]>
David Marchand
AppliedQuoted 54 lines · Andrew Rybchenko
Quoted 53 lines · David Marchand
With symbols going though experimental/stable stages, we accumulated a lot of discrepancies about inclusion of the
rte_compat.hheader.Some headers are including it where unneeded, while others rely on implicit inclusion.
Fix unneeded inclusions:
$ git grep -l include..rte_compat.h | xargs grep -LE '__rte_(internal|experimental)' | xargs sed -i -e '/#include..rte_compat.h/d'Fix missing inclusion, by inserting
rte_compat.hbefore the first inclusion of a DPDK header:$ git grep -lE '__rte_(internal|experimental)' | xargs grep -L include..rte_compat.h | xargs sed -i -e \ '0,/#include..\(rte_\|.*pmd.h.$\)/{ s/\(#include..\(rte_\|.*pmd.h.$\)\)/#include <rte_compat.h>\n\1/ }'Fix missing inclusion, by inserting
rte_compat.hafter the last inclusion of a non DPDK header:$ for file in $(git grep -lE '__rte_(internal|experimental)' | xargs grep -L include..rte_compat.h); do tac $file > $file.$$ sed -i -e \ '0,/#include../{ s/\(#include..*$\)/#include <rte_compat.h>\n\n\1/ }' $file.$$ tac $file.$$ > $file rm $file.$$ doneFix missing inclusion, by inserting
rte_compat.hafter the header guard:$ git grep -lE '__rte_(internal|experimental)' | xargs grep -L include..rte_compat.h | xargs sed -i -e \ '0,/#define/{ s/\(#define .*$\)/\1\n\n#include <rte_compat.h>/ }'And finally, exclude
rte_compat.hitself.$ git checkout lib/eal/include/rte_compat.hAt the end of all this, we have a clean tree:
$ git grep -lE '__rte_(internal|experimental)' | xargs grep -L include..rte_compat.h buildtools/check-symbols.sh devtools/checkpatches.sh doc/guides/contributing/abi_policy.rst doc/guides/rel_notes/release_20_11.rst lib/eal/include/rte_compat.h
Quoted 3 lines
Quoted 2 lines
Signed-off-by David Marchand <[email protected]>Acked-by Bruce Richardson <[email protected]>Acked-by Andrew Rybchenko <[email protected]>
Applied, thanks.
Signature · 1 line
David Marchand