From: Jarno Rajahalme Date: Mon, 11 Mar 2013 13:27:41 +0000 (+0200) Subject: ofproto-dpif: Remove unnecessary ofp_port to odp_port mapping. X-Git-Tag: sliver-openvswitch-1.10.90-1~10^2~84 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=cf630ea3f50026194171820a2b70a5a9c433b161;p=sliver-openvswitch.git ofproto-dpif: Remove unnecessary ofp_port to odp_port mapping. Signed-off-by: Jarno Rajahalme Signed-off-by: Ben Pfaff --- diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c index 532362689..74000020a 100644 --- a/ofproto/ofproto-dpif.c +++ b/ofproto/ofproto-dpif.c @@ -5786,7 +5786,6 @@ compose_output_action__(struct action_xlate_ctx *ctx, uint16_t ofp_port, ctx->flow.nw_tos |= pdscp->dscp; } - odp_port = ofp_port_to_odp_port(ctx->ofproto, ofp_port); if (ofport->tnl_port) { odp_port = tnl_port_send(ofport->tnl_port, &ctx->flow); if (odp_port == OVSP_NONE) { @@ -5801,6 +5800,7 @@ compose_output_action__(struct action_xlate_ctx *ctx, uint16_t ofp_port, commit_odp_tunnel_action(&ctx->flow, &ctx->base_flow, ctx->odp_actions); } else { + odp_port = ofport->odp_port; out_port = vsp_realdev_to_vlandev(ctx->ofproto, odp_port, ctx->flow.vlan_tci); if (out_port != odp_port) {