netdev-dpdk: Show interface status for dpdk0.
authorAlex Wang <alexw@nicira.com>
Thu, 21 Aug 2014 22:53:15 +0000 (15:53 -0700)
committerAlex Wang <alexw@nicira.com>
Wed, 3 Sep 2014 04:48:28 +0000 (21:48 -0700)
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>
lib/netdev-dpdk.c

index 2feec70..62e4cb9 100644 (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);