This commit fixes a bug which prevents the display of interface status for dpdk0.
Found by inspection. Signed-off-by: Alex Wang <al...@nicira.com> --- lib/netdev-dpdk.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index 049ea5e..a4ed355 100644 --- a/lib/netdev-dpdk.c +++ b/lib/netdev-dpdk.c @@ -1127,7 +1127,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); -- 1.7.9.5 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev