| 921 | } |
| 922 | |
| 923 | static __rte_always_inline struct vhost_dev * |
| 924 | find_vhost_dev(struct rte_ether_addr *mac) |
| 925 | { |
| 926 | struct vhost_dev *vdev; |
| 927 | |
| 928 | TAILQ_FOREACH(vdev, &vhost_dev_list, global_vdev_entry) { |
| 929 | if (vdev->ready == DEVICE_RX && |
| 930 | rte_is_same_ether_addr(mac, &vdev->mac_address)) |
| 931 | return vdev; |
| 932 | } |
| 933 | |
| 934 | return NULL; |
| 935 | } |
| 936 | |
| 937 | /* |
| 938 | * This function learns the MAC address of the device and registers this along with a |
no test coverage detected