X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Flibrte_ethdev%2Fethdev_private.h;h=905a45c33744127d3c570026070ee849ddfc3bd6;hb=cb440babbd45a80c059f8bc80e87c48d09086fd7;hp=e67cf68311064f2024867c469053c6a8a3ca655d;hpb=214ed1acd1256936bb74b26ea499f767e81404db;p=dpdk.git diff --git a/lib/librte_ethdev/ethdev_private.h b/lib/librte_ethdev/ethdev_private.h index e67cf68311..905a45c337 100644 --- a/lib/librte_ethdev/ethdev_private.h +++ b/lib/librte_ethdev/ethdev_private.h @@ -2,8 +2,8 @@ * Copyright(c) 2018 Gaëtan Rivet */ -#ifndef _RTE_ETH_PRIVATE_H_ -#define _RTE_ETH_PRIVATE_H_ +#ifndef _ETH_PRIVATE_H_ +#define _ETH_PRIVATE_H_ #include "rte_ethdev.h" @@ -25,8 +25,14 @@ 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. */ +typedef int (*rte_eth_devargs_callback_t)(char *str, void *data); +int rte_eth_devargs_parse_list(char *str, rte_eth_devargs_callback_t callback, + void *data); +int rte_eth_devargs_parse_representor_ports(char *str, void *data); + #ifdef __cplusplus } #endif -#endif /* _RTE_ETH_PRIVATE_H_ */ +#endif /* _ETH_PRIVATE_H_ */