The private headers are compiled internally with a C compiler.
Thus extern "C" declaration is useless in such files.
Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
25 files changed:
* RTE ACL SSE/AVX related header.
*/
* RTE ACL SSE/AVX related header.
*/
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*
* Takes 2 SIMD registers containing N transitions each (tr0, tr1).
/*
* Takes 2 SIMD registers containing N transitions each (tr0, tr1).
-#ifdef __cplusplus
-}
-#endif
-
#endif /* _RTE_ACL_VECT_H_ */
#endif /* _RTE_ACL_VECT_H_ */
* destructed (finish of build phase).
*/
* destructed (finish of build phase).
*/
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <rte_acl_osdep.h>
#include <setjmp.h>
#include <rte_acl_osdep.h>
#include <setjmp.h>
void *tb_alloc(struct tb_mem_pool *pool, size_t size);
void tb_free_pool(struct tb_mem_pool *pool);
void *tb_alloc(struct tb_mem_pool *pool, size_t size);
void tb_free_pool(struct tb_mem_pool *pool);
-#ifdef __cplusplus
-}
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*
* The instruction encodings.
*/
/*
* The instruction encodings.
*/
*/
#define EBPF_FUNC_MAX_ARGS (EBPF_REG_6 - EBPF_REG_1)
*/
#define EBPF_FUNC_MAX_ARGS (EBPF_REG_6 - EBPF_REG_1)
-#ifdef __cplusplus
-}
-#endif
-
#endif /* RTE_BPF_DEF_H_ */
#endif /* RTE_BPF_DEF_H_ */
#include <rte_bpf.h>
#include <sys/mman.h>
#include <rte_bpf.h>
#include <sys/mman.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#define MAX_BPF_STACK_SIZE 0x200
struct rte_bpf {
#define MAX_BPF_STACK_SIZE 0x200
struct rte_bpf {
-#ifdef __cplusplus
-}
-#endif
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <string.h>
#include <rte_config.h>
#include <string.h>
#include <rte_config.h>
sess->sess_private_data[driver_id] = private_data;
}
sess->sess_private_data[driver_id] = private_data;
}
-#ifdef __cplusplus
-}
-#endif
-
#endif /* _CRYPTODEV_PMD_H_ */
#endif /* _CRYPTODEV_PMD_H_ */
* one-at-a-time to workers, with dynamic load balancing.
*/
* one-at-a-time to workers, with dynamic load balancing.
*/
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#define NO_FLAGS 0
#define RTE_DISTRIB_PREFIX "DT_"
#define NO_FLAGS 0
#define RTE_DISTRIB_PREFIX "DT_"
uint16_t *data_ptr,
uint16_t *output_ptr);
uint16_t *data_ptr,
uint16_t *output_ptr);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* _DIST_PRIV_H_ */
#endif /* _DIST_PRIV_H_ */
char name[RTE_HEAP_NAME_MAX_LEN];
} __rte_cache_aligned;
char name[RTE_HEAP_NAME_MAX_LEN];
} __rte_cache_aligned;
-#ifdef __cplusplus
-extern "C" {
-#endif
-
static inline unsigned
malloc_get_numa_socket(void)
{
static inline unsigned
malloc_get_numa_socket(void)
{
int
rte_eal_malloc_heap_init(void);
int
rte_eal_malloc_heap_init(void);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* MALLOC_HEAP_H_ */
#endif /* MALLOC_HEAP_H_ */
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/**< @internal Declaration of the hairpin peer queue information structure. */
struct rte_hairpin_peer_info;
/**< @internal Declaration of the hairpin peer queue information structure. */
struct rte_hairpin_peer_info;
uint16_t queue_id; /**< Queue assigned to if match. */
};
uint16_t queue_id; /**< Queue assigned to if match. */
};
-#ifdef __cplusplus
-}
-#endif
-
#endif /* _RTE_ETHDEV_DRIVER_H_ */
#endif /* _RTE_ETHDEV_DRIVER_H_ */
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/*
* Convert rte_eth_dev pointer to port id.
* NULL will be translated to RTE_MAX_ETHPORTS.
/*
* Convert rte_eth_dev pointer to port id.
* NULL will be translated to RTE_MAX_ETHPORTS.
/* Parse devargs value for representor parameter. */
int rte_eth_devargs_parse_representor_ports(char *str, void *data);
/* Parse devargs value for representor parameter. */
int rte_eth_devargs_parse_representor_ports(char *str, void *data);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* _ETH_PRIVATE_H_ */
#endif /* _ETH_PRIVATE_H_ */
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <string.h>
#include <rte_common.h>
#include <string.h>
#include <rte_common.h>
int
rte_event_pmd_release(struct rte_eventdev *eventdev);
int
rte_event_pmd_release(struct rte_eventdev *eventdev);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* _RTE_EVENTDEV_PMD_H_ */
#endif /* _RTE_EVENTDEV_PMD_H_ */
-
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <string.h>
#include <rte_config.h>
#include <string.h>
#include <rte_config.h>
-#ifdef __cplusplus
-}
-#endif
-
#endif /* _RTE_EVENTDEV_PMD_PCI_H_ */
#endif /* _RTE_EVENTDEV_PMD_PCI_H_ */
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <string.h>
#include <rte_config.h>
#include <string.h>
#include <rte_config.h>
-#ifdef __cplusplus
-}
-#endif
-
#endif /* _RTE_EVENTDEV_PMD_VDEV_H_ */
#endif /* _RTE_EVENTDEV_PMD_VDEV_H_ */
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#define DIR24_8_TBL24_NUM_ENT (1 << 24)
#define DIR24_8_TBL8_GRP_NUM_ENT 256U
#define DIR24_8_EXT_ENT 1
#define DIR24_8_TBL24_NUM_ENT (1 << 24)
#define DIR24_8_TBL8_GRP_NUM_ENT 256U
#define DIR24_8_EXT_ENT 1
dir24_8_modify(struct rte_fib *fib, uint32_t ip, uint8_t depth,
uint64_t next_hop, int op);
dir24_8_modify(struct rte_fib *fib, uint32_t ip, uint8_t depth,
uint64_t next_hop, int op);
-#ifdef __cplusplus
-}
-#endif
-
#include <rte_prefetch.h>
#include <rte_branch_prediction.h>
#include <rte_prefetch.h>
#include <rte_branch_prediction.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/* @internal Total number of tbl24 entries. */
#define TRIE_TBL24_NUM_ENT (1 << 24)
/* Maximum depth value possible for IPv6 LPM. */
/* @internal Total number of tbl24 entries. */
#define TRIE_TBL24_NUM_ENT (1 << 24)
/* Maximum depth value possible for IPv6 LPM. */
trie_modify(struct rte_fib6 *fib, const uint8_t ip[RTE_FIB6_IPV6_ADDR_SIZE],
uint8_t depth, uint64_t next_hop, int op);
trie_modify(struct rte_fib6 *fib, const uint8_t ip[RTE_FIB6_IPV6_ADDR_SIZE],
uint8_t depth, uint64_t next_hop, int op);
-
-#ifdef __cplusplus
-}
-#endif
-
#ifndef __INCLUDE_ETHDEV_RX_PRIV_H__
#define __INCLUDE_ETHDEV_RX_PRIV_H__
#ifndef __INCLUDE_ETHDEV_RX_PRIV_H__
#define __INCLUDE_ETHDEV_RX_PRIV_H__
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <rte_common.h>
struct ethdev_rx_node_elem;
#include <rte_common.h>
struct ethdev_rx_node_elem;
*/
struct rte_node_register *ethdev_rx_node_get(void);
*/
struct rte_node_register *ethdev_rx_node_get(void);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* __INCLUDE_ETHDEV_RX_PRIV_H__ */
#endif /* __INCLUDE_ETHDEV_RX_PRIV_H__ */
#ifndef __INCLUDE_ETHDEV_TX_PRIV_H__
#define __INCLUDE_ETHDEV_TX_PRIV_H__
#ifndef __INCLUDE_ETHDEV_TX_PRIV_H__
#define __INCLUDE_ETHDEV_TX_PRIV_H__
-#ifdef __cplusplus
-extern "C" {
-#endif
-
struct ethdev_tx_node_ctx;
typedef struct ethdev_tx_node_ctx ethdev_tx_node_ctx_t;
struct ethdev_tx_node_ctx;
typedef struct ethdev_tx_node_ctx ethdev_tx_node_ctx_t;
*/
struct rte_node_register *ethdev_tx_node_get(void);
*/
struct rte_node_register *ethdev_tx_node_get(void);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* __INCLUDE_ETHDEV_TX_PRIV_H__ */
#endif /* __INCLUDE_ETHDEV_TX_PRIV_H__ */
#ifndef __INCLUDE_IP4_REWRITE_PRIV_H__
#define __INCLUDE_IP4_REWRITE_PRIV_H__
#ifndef __INCLUDE_IP4_REWRITE_PRIV_H__
#define __INCLUDE_IP4_REWRITE_PRIV_H__
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <rte_common.h>
#define RTE_GRAPH_IP4_REWRITE_MAX_NH 64
#include <rte_common.h>
#define RTE_GRAPH_IP4_REWRITE_MAX_NH 64
*/
int ip4_rewrite_set_next(uint16_t port_id, uint16_t next_index);
*/
int ip4_rewrite_set_next(uint16_t port_id, uint16_t next_index);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* __INCLUDE_IP4_REWRITE_PRIV_H__ */
#endif /* __INCLUDE_IP4_REWRITE_PRIV_H__ */
#ifndef __INCLUDE_PKT_CLS_PRIV_H__
#define __INCLUDE_PKT_CLS_PRIV_H__
#ifndef __INCLUDE_PKT_CLS_PRIV_H__
#define __INCLUDE_PKT_CLS_PRIV_H__
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <rte_common.h>
struct pkt_cls_node_ctx {
#include <rte_common.h>
struct pkt_cls_node_ctx {
-#ifdef __cplusplus
-}
-#endif
-
#endif /* __INCLUDE_PKT_CLS_PRIV_H__ */
#endif /* __INCLUDE_PKT_CLS_PRIV_H__ */
#ifndef _GUEST_CHANNEL_H
#define _GUEST_CHANNEL_H
#ifndef _GUEST_CHANNEL_H
#define _GUEST_CHANNEL_H
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/**
* Check if any Virtio-Serial VM end-points exist in path.
*
/**
* Check if any Virtio-Serial VM end-points exist in path.
*
size_t pkt_len,
unsigned int lcore_id);
size_t pkt_len,
unsigned int lcore_id);
-
-#ifdef __cplusplus
-}
-#endif
-
#include <rte_string_fns.h>
#include "rte_power.h"
#include <rte_string_fns.h>
#include "rte_power.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/**
* Check if ACPI power management is supported.
*
/**
* Check if ACPI power management is supported.
*
int power_acpi_get_capabilities(unsigned int lcore_id,
struct rte_power_core_capabilities *caps);
int power_acpi_get_capabilities(unsigned int lcore_id,
struct rte_power_core_capabilities *caps);
-#ifdef __cplusplus
-}
-#endif
-
#include <rte_string_fns.h>
#include "rte_power.h"
#include <rte_string_fns.h>
#include "rte_power.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/**
* Check if CPPC power management is supported.
*
/**
* Check if CPPC power management is supported.
*
int power_cppc_get_capabilities(unsigned int lcore_id,
struct rte_power_core_capabilities *caps);
int power_cppc_get_capabilities(unsigned int lcore_id,
struct rte_power_core_capabilities *caps);
-#ifdef __cplusplus
-}
-#endif
-
#endif /* _POWER_CPPC_CPUFREQ_H */
#endif /* _POWER_CPPC_CPUFREQ_H */
#include <rte_string_fns.h>
#include "rte_power.h"
#include <rte_string_fns.h>
#include "rte_power.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/**
* Check if KVM power management is supported.
*
/**
* Check if KVM power management is supported.
*
int power_kvm_vm_get_capabilities(unsigned int lcore_id,
struct rte_power_core_capabilities *caps);
int power_kvm_vm_get_capabilities(unsigned int lcore_id,
struct rte_power_core_capabilities *caps);
-#ifdef __cplusplus
-}
-#endif
#include <rte_string_fns.h>
#include "rte_power.h"
#include <rte_string_fns.h>
#include "rte_power.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
/**
* Check if pstate power management is supported.
*
/**
* Check if pstate power management is supported.
*
*/
int power_pstate_get_capabilities(unsigned int lcore_id,
struct rte_power_core_capabilities *caps);
*/
int power_pstate_get_capabilities(unsigned int lcore_id,
struct rte_power_core_capabilities *caps);
-#ifdef __cplusplus
-}
-#endif
* by the user of this library.
*/
* by the user of this library.
*/
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <rte_ring.h>
#include <rte_ring_elem.h>
#include <rte_ring.h>
#include <rte_ring_elem.h>
uint8_t elem[0]; /**< Pointer to user element */
} __attribute__((__may_alias__)) __rte_rcu_qsbr_dq_elem_t;
uint8_t elem[0]; /**< Pointer to user element */
} __attribute__((__may_alias__)) __rte_rcu_qsbr_dq_elem_t;
-#ifdef __cplusplus
-}
-#endif
-
#endif /* _RTE_RCU_QSBR_PVT_H_ */
#endif /* _RTE_RCU_QSBR_PVT_H_ */
#ifndef _STACK_PVT_H_
#define _STACK_PVT_H_
#ifndef _STACK_PVT_H_
#define _STACK_PVT_H_
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#include <rte_log.h>
extern int stack_logtype;
#include <rte_log.h>
extern int stack_logtype;
#define STACK_LOG_INFO(fmt, args...) \
STACK_LOG(INFO, fmt, ## args)
#define STACK_LOG_INFO(fmt, args...) \
STACK_LOG(INFO, fmt, ## args)
-
-#ifdef __cplusplus
-}
-#endif
-
#endif /* _STACK_PVT_H_ */
#endif /* _STACK_PVT_H_ */