MCPcopy Create free account
hub / github.com/F-Stack/f-stack / find_vhost_dev

Function find_vhost_dev

dpdk/examples/vhost/main.c:923–935  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

921}
922
923static __rte_always_inline struct vhost_dev *
924find_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

Callers 3

link_vmdqFunction · 0.85
virtio_tx_localFunction · 0.85
find_local_destFunction · 0.85

Calls 1

rte_is_same_ether_addrFunction · 0.85

Tested by

no test coverage detected