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

Function dpaa_eth_dev_start

dpdk/drivers/net/dpaa/dpaa_ethdev.c:429–453  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427}
428
429static int dpaa_eth_dev_start(struct rte_eth_dev *dev)
430{
431 struct dpaa_if *dpaa_intf = dev->data->dev_private;
432 uint16_t i;
433
434 PMD_INIT_FUNC_TRACE();
435
436 if (!(default_q || fmc_q))
437 dpaa_write_fm_config_to_file();
438
439 /* Change tx callback to the real one */
440 if (dpaa_intf->cgr_tx)
441 dev->tx_pkt_burst = dpaa_eth_queue_tx_slow;
442 else
443 dev->tx_pkt_burst = dpaa_eth_queue_tx;
444
445 fman_if_enable_rx(dev->process_private);
446
447 for (i = 0; i < dev->data->nb_rx_queues; i++)
448 dev->data->rx_queue_state[i] = RTE_ETH_QUEUE_STATE_STARTED;
449 for (i = 0; i < dev->data->nb_tx_queues; i++)
450 dev->data->tx_queue_state[i] = RTE_ETH_QUEUE_STATE_STARTED;
451
452 return 0;
453}
454
455static int dpaa_eth_dev_stop(struct rte_eth_dev *dev)
456{

Callers 1

dpaa_link_upFunction · 0.85

Calls 2

fman_if_enable_rxFunction · 0.85

Tested by

no test coverage detected