Skip to content

Commit

Permalink
Merge "DPDK: Performance issue in TSO" into R4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed May 31, 2018
2 parents 3d16ac6 + b47b91a commit d990456
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dpdk/vr_dpdk_interface.c
Expand Up @@ -1605,8 +1605,8 @@ dpdk_if_tx(struct vr_interface *vif, struct vr_packet *pkt)
/* Segmentation is applicable if packet has GSO enabled and the
* packet length is greater than the tso segment size as given by the VM
*/
will_segment = dpdk_pkt_is_gso(m) &&
(rte_pktmbuf_pkt_len(m) > m->tso_segsz);
will_segment = vr_pkt_type_is_overlay(pkt->vp_type) && dpdk_pkt_is_gso(m) &&
(rte_pktmbuf_pkt_len(m) > m->tso_segsz);

/*
* With DPDK pktmbufs we don't know if the checksum is incomplete,
Expand Down

0 comments on commit d990456

Please sign in to comment.