99a2dd955f
There is no reason for the DPDK libraries to all have 'librte_' prefix on the directory names. This prefix makes the directory names longer and also makes it awkward to add features referring to individual libraries in the build - should the lib names be specified with or without the prefix. Therefore, we can just remove the library prefix and use the library's unique name as the directory name, i.e. 'eal' rather than 'librte_eal' Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
38 lines
823 B
C
38 lines
823 B
C
/* SPDX-License-Identifier: BSD-3-Clause
|
|
* Copyright(c) 2018 Gaëtan Rivet
|
|
*/
|
|
|
|
#ifndef _ETH_PRIVATE_H_
|
|
#define _ETH_PRIVATE_H_
|
|
|
|
#include <rte_os_shim.h>
|
|
|
|
#include "rte_ethdev.h"
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
/*
|
|
* Convert rte_eth_dev pointer to port id.
|
|
* NULL will be translated to RTE_MAX_ETHPORTS.
|
|
*/
|
|
uint16_t eth_dev_to_id(const struct rte_eth_dev *dev);
|
|
|
|
/* Generic rte_eth_dev comparison function. */
|
|
typedef int (*rte_eth_cmp_t)(const struct rte_eth_dev *, const void *);
|
|
|
|
/* Generic rte_eth_dev iterator. */
|
|
struct rte_eth_dev *
|
|
eth_find_device(const struct rte_eth_dev *_start, rte_eth_cmp_t cmp,
|
|
const 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_ */
|