DPDK现在支持非PCI总线,所以它有点复杂。但是,仍然没有什么例子。下面是来自Ethtool的代码片段 代码语言:javascript 运行 AI代码解释 struct rte_pci_device *pci_dev; rte_eth_dev_info_get(port_id, &dev_info); if (dev_info.device) bus = rte_bus_find_by_device(dev_info.device); if (bus && !
NANL-C