Skip to content

Commit

Permalink
ofproto-dpif-xlate: Actually drop packets on mirror ports.
Browse files Browse the repository at this point in the history
Reported-by: Ben Pfaff <[email protected]>
Signed-off-by: Ethan Jackson <[email protected]>
Acked-by: Ben Pfaff <[email protected]>
  • Loading branch information
ejj committed Jul 7, 2013
1 parent 6b3f7f0 commit aaa0fba
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion ofproto/ofproto-dpif-xlate.c
Original file line number Diff line number Diff line change
Expand Up @@ -195,6 +195,7 @@ add_mirror_actions(struct xlate_ctx *ctx, const struct flow *orig_flow)
"%s, which is reserved exclusively for mirroring",
ctx->ofproto->up.name, in_bundle->name);
}
ofpbuf_clear(&ctx->xout->odp_actions);
return;
}

Expand Down Expand Up @@ -2008,10 +2009,12 @@ xlate_actions(struct xlate_in *xin, struct xlate_out *xout)
&& !actions_output_to_local_port(&ctx)) {
compose_output_action(&ctx, OFPP_LOCAL);
}

fix_sflow_action(&ctx);

if (mbridge_has_mirrors(ctx.ofproto->mbridge)) {
add_mirror_actions(&ctx, &orig_flow);
}
fix_sflow_action(&ctx);
}

ofpbuf_uninit(&ctx.stack);
Expand Down

0 comments on commit aaa0fba

Please sign in to comment.