X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Fethdev%2Fethdev_private.h;h=cc91025e8d9bb4cb4278267aa1860d66b7d6f7db;hb=6e858b4d9244cf53505589673755ab18ac2a4a83;hp=9bb0879538d59737db43d9f42f058e581cbc3780;hpb=99a2dd955fba6e4cc23b77d590a033650ced9c45;p=dpdk.git diff --git a/lib/ethdev/ethdev_private.h b/lib/ethdev/ethdev_private.h index 9bb0879538..cc91025e8d 100644 --- a/lib/ethdev/ethdev_private.h +++ b/lib/ethdev/ethdev_private.h @@ -9,12 +9,8 @@ #include "rte_ethdev.h" -#ifdef __cplusplus -extern "C" { -#endif - /* - * Convert rte_eth_dev pointer to port id. + * 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); @@ -30,8 +26,11 @@ eth_find_device(const struct rte_eth_dev *_start, rte_eth_cmp_t cmp, /* Parse devargs value for representor parameter. */ int rte_eth_devargs_parse_representor_ports(char *str, void *data); -#ifdef __cplusplus -} -#endif +/* reset eth fast-path API to dummy values */ +void eth_dev_fp_ops_reset(struct rte_eth_fp_ops *fpo); + +/* setup eth fast-path API to ethdev values */ +void eth_dev_fp_ops_setup(struct rte_eth_fp_ops *fpo, + const struct rte_eth_dev *dev); #endif /* _ETH_PRIVATE_H_ */