]> git.proxmox.com Git - ovs.git/commit
netdev-dpdk: Remove uneeded call to rte_eth_dev_count().
authorKevin Traynor <ktraynor@redhat.com>
Mon, 27 Nov 2017 17:25:49 +0000 (17:25 +0000)
committerIan Stokes <ian.stokes@intel.com>
Fri, 8 Dec 2017 21:42:54 +0000 (21:42 +0000)
commit255b7bda98974c9732c435c3d500d50e20bd728e
tree7a626591fd4ecc4c31cdffa3e1d3eacaeed15343
parentb2e72a9c9d64b975c4049a9b1a391588668f2d36
netdev-dpdk: Remove uneeded call to rte_eth_dev_count().

The call to rte_eth_dev_count() was added as workaround
for rte_eth_dev_get_port_by_name() not handling cases
when there was no DPDK ports.

In versions of DPDK >= 17.02 rte_eth_dev_get_port_by_name()
does handle this case (DPDK commit f9ae888b1e19).
rte_eth_dev_count() is no longer needed so remove it.

Acked-by: Ciara Loftus <ciara.loftus@intel.com>
Signed-off-by: Kevin Traynor <ktraynor@redhat.com>
Signed-off-by: Ian Stokes <ian.stokes@intel.com>
lib/netdev-dpdk.c