Re: [dpdk-dev] [PATCH] ethdev: don't look for devices if none were found

2016-12-07 Thread Thomas Monjalon
2016-11-19 13:10, Anatoly Burakov: > Aside from avoiding doing useless work, this also fixes a segfault > when calling rte_eth_dev_get_port_by_name() whenever no devices > were found yet, and therefore rte_eth_dev_data wasn't yet allocated. > > Fixes: 9c5b8d8b9feb ("ethdev: clean port id retrieval

[dpdk-dev] [PATCH] ethdev: don't look for devices if none were found

2016-11-19 Thread Anatoly Burakov
Aside from avoiding doing useless work, this also fixes a segfault when calling rte_eth_dev_get_port_by_name() whenever no devices were found yet, and therefore rte_eth_dev_data wasn't yet allocated. Fixes: 9c5b8d8b9feb ("ethdev: clean port id retrieval when attaching") Signed-off-by: Anatoly Bur