| 15 | static struct ndev_list ndev_list = TAILQ_HEAD_INITIALIZER(ndev_list); |
| 16 | |
| 17 | static struct nitrox_device * |
| 18 | ndev_allocate(struct rte_pci_device *pdev) |
| 19 | { |
| 20 | struct nitrox_device *ndev; |
| 21 | |
| 22 | ndev = rte_zmalloc_socket("nitrox device", sizeof(*ndev), |
| 23 | RTE_CACHE_LINE_SIZE, |
| 24 | pdev->device.numa_node); |
| 25 | if (!ndev) |
| 26 | return NULL; |
| 27 | |
| 28 | TAILQ_INSERT_TAIL(&ndev_list, ndev, next); |
| 29 | return ndev; |
| 30 | } |
| 31 | |
| 32 | static void |
| 33 | ndev_init(struct nitrox_device *ndev, struct rte_pci_device *pdev) |
no test coverage detected