| 1638 | } |
| 1639 | |
| 1640 | static inline int |
| 1641 | get_socketid_by_vid(int vid) |
| 1642 | { |
| 1643 | int i; |
| 1644 | char ifname[PATH_MAX]; |
| 1645 | rte_vhost_get_ifname(vid, ifname, sizeof(ifname)); |
| 1646 | |
| 1647 | for (i = 0; i < nb_sockets; i++) { |
| 1648 | char *file = socket_files + i * PATH_MAX; |
| 1649 | if (strcmp(file, ifname) == 0) |
| 1650 | return i; |
| 1651 | } |
| 1652 | |
| 1653 | return -1; |
| 1654 | } |
| 1655 | |
| 1656 | static int |
| 1657 | init_vhost_queue_ops(int vid) |
no test coverage detected