On Fri, Apr 25, 2014 at 10:24 AM, Ben Pfaff <b...@nicira.com> wrote:
> The test added in this commit would have caught the bug fixed by commit
> 96be8de595150 (bridge: When ports disappear from a datapath, add them
> back.).  With that commit reverted, the new test fails.
>
> Signed-off-by: Ben Pfaff <b...@nicira.com>

> -    error = get_port_by_number(dp, port_no, &port);
> -    if (error) {
> -        return error;
> -    }
> -
>      hmap_remove(&dp->ports, &port->node);
>      seq_change(dp->port_seq);
>      if (netdev_is_pmd(port->netdev)) {
> @@ -876,7 +877,6 @@ do_del_port(struct dp_netdev *dp, odp_port_t port_no)
>      }
>
>      port_unref(port);
Dont we need any mutex for unref above?
> -    return 0;
>  }
>

I did not compile test it because it does not apply right now. But the
logic looks right.

Acked-by: Gurucharan Shetty <gshe...@nicira.com>
_______________________________________________
dev mailing list
dev@openvswitch.org
http://openvswitch.org/mailman/listinfo/dev

Reply via email to