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

Function vhost_attach_vdpa_device

dpdk/lib/vhost/vhost.c:781–790  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

779}
780
781void
782vhost_attach_vdpa_device(int vid, struct rte_vdpa_device *vdpa_dev)
783{
784 struct virtio_net *dev = get_device(vid);
785
786 if (dev == NULL)
787 return;
788
789 dev->vdpa_dev = vdpa_dev;
790}
791
792void
793vhost_set_ifname(int vid, const char *if_name, unsigned int if_len)

Callers 1

Calls 1

get_deviceFunction · 0.85

Tested by

no test coverage detected