virtio: free mbuf's with threshold
authorStephen Hemminger <stephen@networkplumber.org>
Mon, 9 Feb 2015 01:14:05 +0000 (09:14 +0800)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 20 Feb 2015 18:19:19 +0000 (19:19 +0100)
commit32c118fd005912b835f1eb94facc467549fab783
tree31017928dda39e17f4e4be6942ebdabd0d42ab28
parent5186fb1f37fe9860b54faa2e6a71cfdba67f4abc
virtio: free mbuf's with threshold

This makes virtio driver work like ixgbe. Transmit buffers are
held until a transmit threshold is reached. The previous behavior
was to hold mbuf's until the ring entry was reused which caused
more memory usage than needed.

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Signed-off-by: Changchun Ouyang <changchun.ouyang@intel.com>
Acked-by: Huawei Xie <huawei.xie@intel.com>
lib/librte_pmd_virtio/virtio_ethdev.c
lib/librte_pmd_virtio/virtio_rxtx.c
lib/librte_pmd_virtio/virtqueue.h