Skip to content

Commit

Permalink
Merge "Dont mirror the same packet again" into R3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Feb 26, 2016
2 parents c959ff9 + c1c472c commit 01dbe86
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dp-core/vr_mirror.c
Expand Up @@ -381,6 +381,10 @@ vr_mirror(struct vrouter *router, uint8_t mirror_id,
struct vr_nexthop *pkt_nh;
struct vr_forwarding_md new_fmd;

/* If the packet is already mirrored, dont mirror again */
if (pkt->vp_flags & VP_FLAG_FROM_DP)
return 0;

mirror = router->vr_mirrors[mirror_id];
if (!mirror)
return 0;
Expand Down

0 comments on commit 01dbe86

Please sign in to comment.