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

Function i40e_dev_rx_init

dpdk/drivers/net/i40e/i40e_ethdev.c:6462–6487  ·  view source on GitHub ↗

Initialize VSI for RX */

Source from the content-addressed store, hash-verified

6460
6461/* Initialize VSI for RX */
6462static int
6463i40e_dev_rx_init(struct i40e_pf *pf)
6464{
6465 struct rte_eth_dev_data *data = pf->dev_data;
6466 int ret = I40E_SUCCESS;
6467 uint16_t i;
6468 struct i40e_rx_queue *rxq;
6469
6470 i40e_pf_config_rss(pf);
6471 for (i = 0; i < data->nb_rx_queues; i++) {
6472 rxq = data->rx_queues[i];
6473 if (!rxq || !rxq->q_set)
6474 continue;
6475
6476 ret = i40e_rx_queue_init(rxq);
6477 if (ret != I40E_SUCCESS) {
6478 PMD_DRV_LOG(ERR,
6479 "Failed to do RX queue initialization");
6480 break;
6481 }
6482 }
6483 if (ret == I40E_SUCCESS)
6484 i40e_set_rx_function(&rte_eth_devices[pf->dev_data->port_id]);
6485
6486 return ret;
6487}
6488
6489static int
6490i40e_dev_rxtx_init(struct i40e_pf *pf)

Callers 1

i40e_dev_rxtx_initFunction · 0.85

Calls 3

i40e_pf_config_rssFunction · 0.85
i40e_rx_queue_initFunction · 0.85
i40e_set_rx_functionFunction · 0.85

Tested by

no test coverage detected