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

Function tap_dev_start

dpdk/drivers/net/tap/rte_eth_tap.c:883–905  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

881}
882
883static int
884tap_dev_start(struct rte_eth_dev *dev)
885{
886 int err, i;
887
888 if (rte_eal_process_type() == RTE_PROC_PRIMARY)
889 tap_mp_req_on_rxtx(dev);
890
891 err = tap_intr_handle_set(dev, 1);
892 if (err)
893 return err;
894
895 err = tap_link_set_up(dev);
896 if (err)
897 return err;
898
899 for (i = 0; i < dev->data->nb_tx_queues; i++)
900 dev->data->tx_queue_state[i] = RTE_ETH_QUEUE_STATE_STARTED;
901 for (i = 0; i < dev->data->nb_rx_queues; i++)
902 dev->data->rx_queue_state[i] = RTE_ETH_QUEUE_STATE_STARTED;
903
904 return err;
905}
906
907static int
908tap_mp_req_start_rxtx(const struct rte_mp_msg *request, __rte_unused const void *peer)

Callers

nothing calls this directly

Calls 4

rte_eal_process_typeFunction · 0.85
tap_mp_req_on_rxtxFunction · 0.85
tap_intr_handle_setFunction · 0.85
tap_link_set_upFunction · 0.85

Tested by

no test coverage detected