tapcli: Receive vector of packets and memory leak fix 76/576/3
authorPierre Pfister <ppfister@cisco.com>
Mon, 21 Mar 2016 12:21:30 +0000 (12:21 +0000)
committerGerrit Code Review <gerrit@fd.io>
Tue, 22 Mar 2016 11:48:32 +0000 (11:48 +0000)
commit3a8f32be9f67546d51de110efa2ada6bcceb454f
treed04a81a353b4a1c16a0245bfe3a27238d462b781
parentd56209695a5217a97723345b040beb0e6f10874b
tapcli: Receive vector of packets and memory leak fix

tapcli interfaces were creating single-packet frames.
It now calls readv until the frame is full, or
readv returns error EAGAIN.
This is usefull when a significant amount of traffic
flows through tap interfaces.
This patch also fixes a memory leak by correctly
initializing b->clone_count to zero.

Change-Id: I15e435ba76d542be2f263274e76297425cd10243
Signed-off-by: Pierre Pfister <ppfister@cisco.com>
vnet/vnet/unix/tapcli.c
vnet/vnet/unix/tapcli.h