32 int retval = rte_eal_cleanup();
34 SCLogError(
"EAL cleanup failed: %s", strerror(-retval));
45 int retval = rte_eth_dev_get_port_by_name(ldev->
dev, &port_id);
47 SCLogError(
"%s: failed get port id, error: %s", ldev->
dev, rte_strerror(-retval));
52 rte_eth_dev_close(port_id);
63 rte_mempool_free(ldev->dpdk_vars.pkt_mp);
75 const char *DPDKGetPortNameByPortID(uint16_t pid)
77 static char dev_name[RTE_ETH_NAME_MAX_LEN];
78 int32_t ret = rte_eth_dev_get_name_by_port(pid, dev_name);
80 FatalError(
"Port %d: Failed to obtain port name (err: %s)", pid, rte_strerror(-ret));