ofproto-dpif: Avoid unnecessary ODP-to-OFP port conversion.
authorBen Pfaff <blp@nicira.com>
Tue, 17 May 2011 22:46:32 +0000 (15:46 -0700)
committerBen Pfaff <blp@nicira.com>
Tue, 17 May 2011 22:46:32 +0000 (15:46 -0700)
ofproto/ofproto-dpif.c

index 82bb0e0c2b4c597461914becbc216ebaaef64886..0e4f8cb5695819b1d47625172941d8f8409ceb90 100644 (file)
@@ -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;
                 }
             }