aboutsummaryrefslogtreecommitdiff
path: root/ofproto/ofproto-dpif.c
diff options
context:
space:
mode:
authorEthan Jackson <ethan@nicira.com>2011-11-17 17:11:04 -0800
committerEthan Jackson <ethan@nicira.com>2011-11-18 13:48:58 -0800
commit4b23aebfca469739f6c4b03ad1c7c7bab9e902ba (patch)
treea8376f7958f70567963bec394a398c0a13ba3e7e /ofproto/ofproto-dpif.c
parente29749d571b1e23ef8512c1da3407f2451df0ee3 (diff)
ofproto-dpif: Consistently set NetFlow Output Interface.
Some parts of the code set the NetFlow Output Interface to the OpenFlow port. Other set it to the datapath port. This patch consistently sets it to the OpenFlow port.
Diffstat (limited to 'ofproto/ofproto-dpif.c')
-rw-r--r--ofproto/ofproto-dpif.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ofproto/ofproto-dpif.c b/ofproto/ofproto-dpif.c
index 05cbcc82..0aae004b 100644
--- a/ofproto/ofproto-dpif.c
+++ b/ofproto/ofproto-dpif.c
@@ -4006,7 +4006,7 @@ xlate_enqueue_action(struct action_xlate_ctx *ctx,
/* Update NetFlow output port. */
if (ctx->nf_output_iface == NF_OUT_DROP) {
- ctx->nf_output_iface = odp_port;
+ ctx->nf_output_iface = ofp_port;
} else if (ctx->nf_output_iface != NF_OUT_FLOOD) {
ctx->nf_output_iface = NF_OUT_MULTI;
}
@@ -4511,7 +4511,7 @@ output_normal(struct action_xlate_ctx *ctx, const struct ofbundle *out_bundle,
commit_vlan_action(ctx, tci);
compose_output_action(ctx, port->odp_port);
- ctx->nf_output_iface = port->odp_port;
+ ctx->nf_output_iface = port->up.ofp_port;
}
static int