Enable BURST_MODE for l2fwd 35/11835/2
authorMesut Ali Ergin <mesut.a.ergin@intel.com>
Fri, 1 Apr 2016 19:05:10 +0000 (12:05 -0700)
committerMesut Ali Ergin <mesut.a.ergin@intel.com>
Wed, 8 Jun 2016 17:07:43 +0000 (17:07 +0000)
commit6b40d9f715fc03d089ae847313356dad5314a792
tree9f434a873ab0d1b79d0cbd62c19eb0871b439116
parent51ae00d6c4f654726d5691d865639309a3fe6fa7
Enable BURST_MODE for l2fwd

JIRA: VSPERF-267

This change adds optional burst mode to l2fwd module that makes use of
skb->xmit_more API available in Linux Kernel > 3.18 in order to batch
transmission of packets out of the NIC, increasing forwarding performance
significantly. By default burst mode is disabled. If a value greater than
1 is provided, burst mode is enabled to send that many packets at once.
Typical values would be burst=8 or burst=16.

Change-Id: I8ef5f86cf73d4cb5a8e4c618a86111ebf411dca8
Signed-off-by: Mesut Ali Ergin <mesut.a.ergin@intel.com>
Signed-off-by: Mallesh Koujalagi <malleshx.koujalagi@intel.com>
src/l2fwd/l2fwd.c