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

Function rte_vhost_get_vring_num

dpdk/lib/vhost/vhost.c:907–916  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

905}
906
907uint16_t
908rte_vhost_get_vring_num(int vid)
909{
910 struct virtio_net *dev = get_device(vid);
911
912 if (dev == NULL)
913 return 0;
914
915 return dev->nr_vring;
916}
917
918int
919rte_vhost_get_ifname(int vid, char *buf, size_t len)

Callers 15

new_deviceFunction · 0.85
nfp_vdpa_startFunction · 0.85
nfp_vdpa_notify_relayFunction · 0.85
mlx5_vdpa_virtqs_prepareFunction · 0.85
vdpa_ifcvf_startFunction · 0.85
vdpa_enable_vfio_intrFunction · 0.85
vdpa_disable_vfio_intrFunction · 0.85
notify_relayFunction · 0.85
m_ifcvf_startFunction · 0.85
vring_relayFunction · 0.85

Calls 1

get_deviceFunction · 0.85

Tested by

no test coverage detected