Skip to content

Commit

Permalink
Merge "Disabling GRO when mirroring is enabled" into R3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed May 25, 2016
2 parents f3bdaf2 + 0919fd4 commit f9a5357
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions dp-core/vr_mirror.c
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ vr_mirror(struct vrouter *router, uint8_t mirror_id,

clone_len += mirror_md_len;
nh = mirror->mir_nh;
pkt->vp_flags &= ~VP_FLAG_GRO;
pkt = vr_pclone(pkt);
if (!pkt)
return 0;
Expand Down
6 changes: 4 additions & 2 deletions dp-core/vr_nexthop.c
Original file line number Diff line number Diff line change
Expand Up @@ -1912,7 +1912,8 @@ nh_encap_l2(struct vr_packet *pkt, struct vr_nexthop *nh,

stats = vr_inet_vrf_stats(fmd->fmd_dvrf, pkt->vp_cpu);

if ((pkt->vp_flags & VP_FLAG_GRO) && vif_is_virtual(vif)) {
if ((pkt->vp_flags & VP_FLAG_GRO) && vif_is_virtual(vif) &&
(!(vif->vif_flags & VIF_FLAG_MIRROR_TX))) {
if (vr_gro_input(pkt, nh)) {
if (stats)
stats->vrf_gros++;
Expand Down Expand Up @@ -1975,7 +1976,8 @@ nh_encap_l3(struct vr_packet *pkt, struct vr_nexthop *nh,
}
}

if ((pkt->vp_flags & VP_FLAG_GRO) && vif_is_virtual(vif)) {
if ((pkt->vp_flags & VP_FLAG_GRO) && vif_is_virtual(vif) &&
(!(vif->vif_flags & VIF_FLAG_MIRROR_TX))) {
if (vr_gro_input(pkt, nh))
return 0;
}
Expand Down

0 comments on commit f9a5357

Please sign in to comment.