Commit 5e5e472f authored by Committed by Ethan Jackson
netdev-dpdk: Retry tx/rx queue setup until we don't get any failure.
It has been observed that some DPDK device (e.g intel xl710) report an high number of queues but make some of them available only for special functions (SRIOV). Therefore the queues will be counted in rte_eth_dev_info_get(), but rte_eth_tx_queue_setup() will fail. This commit works around the issue by retrying the device initialization with a smaller number of queues, if a queue fails to setup. Reported-by: Ian Stokes <email@example.com> Tested-by: Ian Stokes <firstname.lastname@example.org> Acked-by: Kevin Traynor <email@example.com> Signed-off-by: Daniele Di Proietto <firstname.lastname@example.org> Signed-off-by: Ethan Jackson <email@example.com>
Showing with 73 additions and 27 deletions