bond: performance enhancement 16/11316/1
authorSteven <sluong@cisco.com>
Fri, 23 Mar 2018 00:46:58 +0000 (17:46 -0700)
committerSteven <sluong@cisco.com>
Fri, 23 Mar 2018 00:46:58 +0000 (17:46 -0700)
commita005e7f0ef1564cab8db1a148091fd43d2d5af48
tree68092708aaee4ade0f5d84b0916e857a2938f659
parentc6a716b7c2768f5d1edcb2fd4d45856054ef33bb
bond: performance enhancement

We were only puting one packet per frame to the output node. Change to
buffer multiple packets per frame. Performance is now on top of dpdk-based
bonding.
Put a spinlock in the tx thread in case the rug is pulled under us.

Change-Id: Ifda5af086a984a7301972cd6c8e428217f676a95
Signed-off-by: Steven <sluong@cisco.com>
src/vnet/bonding/cli.c
src/vnet/bonding/device.c
src/vnet/bonding/node.h