Tap: Fix the indirect buffers allocation VPP-1660 87/19787/2
authorMohsin Kazmi <sykazmi@cisco.com>
Thu, 23 May 2019 12:32:58 +0000 (14:32 +0200)
committerDamjan Marion <dmarion@me.com>
Fri, 24 May 2019 08:25:04 +0000 (08:25 +0000)
commitaea0df3d54d90eac3b8085ab8023c502b96bdbf0
treeafefa093e60dafe231bd19cedaba8768040c8494
parentf2d5cdbfa674a2ac9e81fd49d69594f0cdbcffd3
Tap: Fix the indirect buffers allocation VPP-1660

Indirect buffers are used to store indirect descriptors
to xmit big packets.
This patch moves the indirect buffer allocation from
interface creation to device node. Now it allocates
or deallocates buffers during tx for chained buffers.

Change-Id: I55cec208a2a7432e12fe9254a7f8ef84a9302bd5
Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com>
(cherry picked from commit 55203e745f5e3f1f6c4dbe99d6eab8dee4d13ea6)
src/vnet/devices/virtio/device.c
src/vnet/devices/virtio/pci.c
src/vnet/devices/virtio/virtio.c
src/vnet/devices/virtio/virtio.h