vmm: Use a helper for stripping the iovec
authorBarret Rhoden <brho@cs.berkeley.edu>
Fri, 16 Dec 2016 18:42:29 +0000 (13:42 -0500)
committerBarret Rhoden <brho@cs.berkeley.edu>
Tue, 10 Jan 2017 00:01:40 +0000 (19:01 -0500)
commita44f3b54cc839047c92b8381cd6fe4d6b873b8bb
tree22e66955c47baaff1a85d080ab88a1bfd8199e9f
parent387bdae644a9f05a8c19d91481fc625ae207cc00
vmm: Use a helper for stripping the iovec

The old version would write chunks of the IOV individually, instead of
blasting the entire packet at once.  This just strips the iovec before
passing it to wherever we send packets (writev(), for now).

Signed-off-by: Barret Rhoden <brho@cs.berkeley.edu>
user/vmm/virtio_net.c