2
0
mirror of https://github.com/openvswitch/ovs synced 2025-08-31 06:15:47 +00:00

netdev-dpdk: Show interface status for dpdk0.

This commit fixes a bug which prevents the display of interface
status for dpdk0.

Found by inspection.

Signed-off-by: Alex Wang <alexw@nicira.com>
Acked-by: Pravin B Shelar <pshelar@nicira.com>
This commit is contained in:
Alex Wang
2014-08-21 15:53:15 -07:00
parent 5abf65d060
commit e0a801c7fd

View File

@@ -1119,7 +1119,7 @@ netdev_dpdk_get_status(const struct netdev *netdev_, struct smap *args)
struct netdev_dpdk *dev = netdev_dpdk_cast(netdev_);
struct rte_eth_dev_info dev_info;
if (dev->port_id <= 0)
if (dev->port_id < 0)
return ENODEV;
ovs_mutex_lock(&dev->mutex);