Thx, applied to master

On Tue, Sep 2, 2014 at 7:27 PM, Pravin Shelar <pshe...@nicira.com> wrote:

> On Tue, Sep 2, 2014 at 6:44 PM, Alex Wang <al...@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 <al...@nicira.com>
> Looks good.
>
> Acked-by: Pravin B Shelar <pshe...@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
>
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to