projects
/
cascardo
/
ovs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
5abf65d
)
netdev-dpdk: Show interface status for dpdk0.
author
Alex Wang
<alexw@nicira.com>
Thu, 21 Aug 2014 22:53:15 +0000
(15:53 -0700)
committer
Alex 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
patch
|
blob
|
history
diff --git
a/lib/netdev-dpdk.c
b/lib/netdev-dpdk.c
index
2feec70
..
62e4cb9
100644
(file)
--- a/
lib/netdev-dpdk.c
+++ b/
lib/netdev-dpdk.c
@@
-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);