Tap: Fix the indirect buffers allocation VPP-1660 19/19519/5
authorMohsin Kazmi <sykazmi@cisco.com>
Fri, 10 May 2019 15:28:28 +0000 (17:28 +0200)
committerDamjan Marion <dmarion@me.com>
Thu, 23 May 2019 11:37:45 +0000 (11:37 +0000)
commit55203e745f5e3f1f6c4dbe99d6eab8dee4d13ea6
tree48fdc80575b701fd1efea7c61a87c66903326f7c
parentf60be11516911669a41f44286aeb28c8b3b2a2d7
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>
src/vnet/devices/virtio/device.c
src/vnet/devices/virtio/pci.c
src/vnet/devices/virtio/virtio.c
src/vnet/devices/virtio/virtio.h