Add jumbo frames support to non-dpdk vhost interfaces. 01/301/4
authorPierre Pfister <ppfister@cisco.com>
Fri, 12 Feb 2016 13:18:42 +0000 (13:18 +0000)
committerGerrit Code Review <gerrit@fd.io>
Thu, 18 Feb 2016 00:50:55 +0000 (00:50 +0000)
commit328e99b1e28b56dec2dedc4cae68bbaa49454429
treecf8c7ddfd045fda67e742ca9b02c1d088754b6ff
parentce8debfe0faaea959aed846f83a0e1ade5f5acd2
Add jumbo frames support to non-dpdk vhost interfaces.

This code provided inter-VM (2 cores per VM) throughput of
22Gbps using iperf through VPP (1 core) with 9k frames.
With the same setup and pktgen running on both sides, it
reached 5Mpps with no packets drop (Equivalent to before the patch).
During the tests the average vector length was about 1, which
likely means that VPP is not the bottleneck.

The patch also includes some generic functions for vlib buffers
allowing for chained buffer construction whether or not DPDK is enabled.

Change-Id: Icfd1803e84b2b4578f305ab730576211f6242d6a
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
vlib/vlib/buffer.c
vlib/vlib/buffer_funcs.h
vlib/vlib/dpdk_buffer.c
vnet/vnet/devices/virtio/vhost-user.c