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-Tag: v1.2.0~329^2~2 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=56c769aba6f8a7dc21f88c577bc80841f538e8cc;p=sliver-openvswitch.git ofproto-dpif: Avoid unnecessary ODP-to-OFP port conversion. --- diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 82bb0e0c2..0e4f8cb56 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; } }