[ovs-dev] [PATCH 1/2] netdev-dpdk: Show interface status for dpdk0.
Pravin Shelar
pshelar at nicira.com
Wed Sep 3 02:27:12 UTC 2014
On Tue, Sep 2, 2014 at 6:44 PM, Alex Wang <alexw at nicira.com> wrote:
> This commit fixes a bug which prevents the display of interface
> status for dpdk0.
>
> Found by inspection.
>
> Signed-off-by: Alex Wang <alexw at nicira.com>
Looks good.
Acked-by: Pravin B Shelar <pshelar at 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 at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
More information about the dev
mailing list