From 56c769aba6f8a7dc21f88c577bc80841f538e8cc Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Tue, 17 May 2011 15:46:32 -0700 Subject: [PATCH] ofproto-dpif: Avoid unnecessary ODP-to-OFP port conversion. --- ofproto/ofproto-dpif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.30.2