| 61 | } |
| 62 | |
| 63 | static struct rte_eth_dev * |
| 64 | eth_dev_get(uint16_t port_id) |
| 65 | __rte_exclusive_locks_required(rte_mcfg_ethdev_get_lock()) |
| 66 | { |
| 67 | struct rte_eth_dev *eth_dev = &rte_eth_devices[port_id]; |
| 68 | |
| 69 | eth_dev->data = ð_dev_shared_data->data[port_id]; |
| 70 | |
| 71 | return eth_dev; |
| 72 | } |
| 73 | |
| 74 | struct rte_eth_dev * |
| 75 | rte_eth_dev_allocate(const char *name) |
no test coverage detected