From: Ben Pfaff Date: Tue, 17 May 2011 22:46:32 +0000 (-0700) Subject: ofproto-dpif: Avoid unnecessary ODP-to-OFP port conversion. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56c769aba6f8a7dc21f88c577bc80841f538e8cc;p=openvswitch ofproto-dpif: Avoid unnecessary ODP-to-OFP port conversion. --- diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 82bb0e0c..0e4f8cb5 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -990,7 +990,7 @@ bundle_set(struct ofproto *ofproto_, void *aux, LIST_FOR_EACH_SAFE (port, next_port, bundle_node, &bundle->ports) { for (i = 0; i < s->n_slaves; i++) { - if (s->slaves[i] == odp_port_to_ofp_port(port->odp_port)) { + if (s->slaves[i] == port->up.ofp_port) { goto found; } }