5 #ifndef __PKTDEV_DRIVER_H_
6 #define __PKTDEV_DRIVER_H_
16 #include <sys/queue.h>
55 #define PMD_REGISTER_DEV(nm, vdrv) \
56 CNE_INIT(vdrvinit_##vdrv) \
58 (vdrv).name = CNE_STR(nm); \
59 pktdev_register(&vdrv); \
71 CNDP_API
struct cne_pktdev *pktdev_allocated(
const char *name);
85 CNDP_API
struct cne_pktdev *pktdev_allocate(
const char *name,
const char *ifname);
98 CNDP_API
void _pktdev_reset(
struct cne_pktdev *dev);
struct lport_cfg lport_cfg_t
int() pktdev_remove_t(struct cne_pktdev *dev)
TAILQ_HEAD(pktdev_driver_list, pktdev_driver)
int() pktdev_probe_t(lport_cfg_t *cfg)
CNDP_API void pktdev_release_port(struct cne_pktdev *dev)
void pktdev_register(struct pktdev_driver *driver)
TAILQ_ENTRY(pktdev_driver) next