net: enable IFF_VNET_HDR on tap fds if available
commit8e0f8e5bf8fd483dd28329055336cf895b74c89f
authorMark McLoughlin <markmc@redhat.com>
Thu, 22 Oct 2009 16:43:35 +0000 (22 17:43 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 27 Oct 2009 17:29:00 +0000 (27 12:29 -0500)
treeffe6c1da95d86b0a9c1cedbb0c29dd5f39c3500b
parent38c75be3139a117b02350dbda9d48d47aa57fa3d
net: enable IFF_VNET_HDR on tap fds if available

For now, we just add an empty header before writing and strip the header
after reading.

We really only want IFF_VNET_HDR when virtio_net is using it, but it
would significantly complicate matters to try and do that. There should
be little or no performance impact with always adding headers.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
net.c
tap-linux.h