40 #define FUNC_PTR_OR_ERR_RET(func, retval) \
46 #define FUNC_PTR_OR_RET(func) \
52 #define PKTDEV_STARTED (1 << 1)
75 uint16_t max_pkts,
void *user_param);
431 #define pktdev_admin_state_up(_pid) pktdev_admin_state_set(_pid, true)
432 #define pktdev_admin_state_down(_pid) pktdev_admin_state_set(_pid, false)
struct lport_cfg lport_cfg_t
CNDP_API int pktdev_macaddr_get(uint16_t lport_id, struct ether_addr *mac_addr)
CNDP_API int pktdev_get_name_by_port(uint16_t lport_id, char *name, uint32_t len)
CNDP_API int pktdev_get_port_by_name(const char *name, uint16_t *lport_id)
CNDP_API struct cne_pktdev * pktdev_get(uint16_t lport_id)
CNDP_API int pktdev_close_all(void)
CNDP_API int pktdev_buf_alloc(int lport_id, pktmbuf_t **bufs, uint16_t nb_bufs)
CNDP_API int pktdev_set_admin_state_up(uint16_t lport_id)
CNDP_API int pktdev_set_mtu(uint16_t lport_id, uint16_t mtu)
CNDP_API int pktdev_close(uint16_t lport_id)
CNDP_API int pktdev_socket_id(uint16_t lport_id)
CNDP_API int pktdev_offloads_get(uint16_t lport_id, struct offloads *off)
CNDP_API int pktdev_start(uint16_t lport_id)
CNDP_API int pktdev_info_get(uint16_t lport_id, struct pktdev_info *dev_info)
CNDP_API const char * pktdev_port_name(uint16_t lport_id)
uint16_t(* cne_tx_callback_fn)(uint16_t lport_id, pktmbuf_t *pkts[], uint16_t nb_pkts, void *user_param)
CNDP_API int pktdev_portid(struct cne_pktdev *dev)
CNDP_API int pktdev_stats_get(uint16_t lport_id, lport_stats_t *stats)
CNDP_API int pktdev_admin_state_set(uint16_t lport_id, bool state)
CNDP_API int pktdev_stop(uint16_t lport_id)
CNDP_API int pktdev_is_valid_port(uint16_t lport_id)
CNDP_API void * pktdev_arg_get(uint16_t lport_id)
CNDP_API int pktdev_stats_reset(uint16_t lport_id)
CNDP_API void lport_cfg_dump(FILE *f, lport_cfg_t *c)
CNDP_API bool pktdev_admin_state(uint16_t lport_id)
CNDP_API int pktdev_set_admin_state_down(uint16_t lport_id)
CNDP_API int pktdev_get_mtu(uint16_t lport_id, uint16_t *mtu)
CNDP_API int pktdev_port_setup(lport_cfg_t *c)
uint16_t(* cne_rx_callback_fn)(uint16_t lport_id, pktmbuf_t *pkts[], uint16_t nb_pkts, uint16_t max_pkts, void *user_param)
CNDP_API uint16_t pktdev_port_count(void)