]> git.proxmox.com Git - ovs.git/commitdiff
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 2feec70a25b07b3435fd41ac922e395a2d938fd0..62e4cb9b87b3269f7a2225ebf14e249561ebad96 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);