Skip to content

Commit

Permalink
For port mirroring, flow index should not be set
Browse files Browse the repository at this point in the history
During transmit port mirror, we seem to be using the mirror values
from the flow of the original packet. This is not a right behavior,
since port mirroring shouldn't be depending on flow based mirror
values.

Hence reset the flow index for the port mirrored packet

Change-Id: I1aff969b08a2f247ccf1fc636d6689350e819f29
Closes-Bug: #1636638
  • Loading branch information
anandhk-juniper committed Oct 27, 2016
1 parent 18a6a0d commit aba0394
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dp-core/vr_interface.c
Expand Up @@ -247,6 +247,7 @@ vif_mirror(struct vr_interface *vif, struct vr_packet *pkt,
}

mfmd.fmd_dvrf = vif->vif_vrf;
mfmd.fmd_flow_index = -1;

if (pkt->vp_type == VP_TYPE_NULL)
vr_pkt_type(pkt, 0, &mfmd);
Expand Down

0 comments on commit aba0394

Please sign in to comment.