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

Function queue_setup

dpdk/drivers/net/vhost/rte_eth_vhost.c:789–811  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

787}
788
789static void
790queue_setup(struct rte_eth_dev *eth_dev, struct pmd_internal *internal)
791{
792 struct vhost_queue *vq;
793 int i;
794
795 for (i = 0; i < eth_dev->data->nb_rx_queues; i++) {
796 vq = eth_dev->data->rx_queues[i];
797 if (!vq)
798 continue;
799 vq->vid = internal->vid;
800 vq->internal = internal;
801 vq->port = eth_dev->data->port_id;
802 }
803 for (i = 0; i < eth_dev->data->nb_tx_queues; i++) {
804 vq = eth_dev->data->tx_queues[i];
805 if (!vq)
806 continue;
807 vq->vid = internal->vid;
808 vq->internal = internal;
809 vq->port = eth_dev->data->port_id;
810 }
811}
812
813static int
814new_device(int vid)

Callers 2

new_deviceFunction · 0.85
eth_dev_startFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected