Initialize VSI for RX */
| 6460 | |
| 6461 | /* Initialize VSI for RX */ |
| 6462 | static int |
| 6463 | i40e_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 | |
| 6489 | static int |
| 6490 | i40e_dev_rxtx_init(struct i40e_pf *pf) |
no test coverage detected