Skip to content

Commit

Permalink
DPDK: Possible mbuf leak running iperf with MSS 536
Browse files Browse the repository at this point in the history
closes-jira-bug: CEM-4659
Seems like the 18.05 dpdk has issue when sending 64
packets in burst. Reverting back to use VR_DPDK_TX_BURST_SZ

Change-Id: I4d08be695a5a7968f6d07be2688bf1243b399f82
  • Loading branch information
Jeya ganesh babu J committed Apr 9, 2019
1 parent bf92741 commit a61b3dc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dpdk/vr_dpdk_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -1857,12 +1857,12 @@ dpdk_if_tx(struct vr_interface *vif, struct vr_packet *pkt)
uint64_t segs_to_send;
uint64_t mask;
/* Pkts mask has a limit for sending 64 packets.
* and the burst size is RTE_PORT_IN_BURST_SIZE_MAX.
* Send only max of RTE_PORT_IN_BURST_SIZE_MAX.
* and the burst size is VR_DPDK_TX_BURST_SZ.
* Send only max of VR_DPDK_TX_BURST_SZ.
*/
while (segs_sent < num_of_segs) {
if ((num_of_segs - segs_sent) > RTE_PORT_IN_BURST_SIZE_MAX) {
segs_to_send = RTE_PORT_IN_BURST_SIZE_MAX;
if ((num_of_segs - segs_sent) > VR_DPDK_TX_BURST_SZ) {
segs_to_send = VR_DPDK_TX_BURST_SZ;
} else {
segs_to_send = num_of_segs - segs_sent;
}
Expand Down

0 comments on commit a61b3dc

Please sign in to comment.