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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user