Markus Armbruster
2f7920166d
error: Move qemu_error & friends into their own header
2010-03-16 16:55:05 +01:00
Pierre Riteau and Anthony Liguori
2e50326c44
net: check for TUNSETOFFLOAD support before trying to enable offload features
...
This avoids the "TUNSETOFFLOAD ioctl() failed: Invalid argument" message
on kernels without TUNSETOFFLOAD support.
Signed-off-by: Pierre Riteau <Pierre.Riteau@irisa.fr >
Signed-off-by: Mark McLoughlin <markmc@redhat.com >
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2009-12-03 09:41:35 -06:00
Pierre Riteau and Anthony Liguori
6720b35b81
net: fix TAP networking on host kernels without IFF_VNET_HDR support
...
vnet_hdr is initialized at 1 by default. We need to reset it to 0 if
the kernel doesn't support IFF_VNET_HDR.
Signed-off-by: Pierre Riteau <Pierre.Riteau@irisa.fr >
Signed-off-by: Mark McLoughlin <markmc@redhat.com >
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2009-12-03 09:41:35 -06:00
Mark McLoughlin and Anthony Liguori
9c282718aa
net: move UFO support detection to tap-linux.c
...
Only supported on Linux
Signed-off-by: Mark McLoughlin <markmc@redhat.com >
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2009-10-30 08:39:29 -05:00
Mark McLoughlin and Anthony Liguori
1faac1f7d4
net: move tap_set_offload() code into tap-linux.c
...
TUNSETOFFLOAD is only available on Linux
Signed-off-by: Mark McLoughlin <markmc@redhat.com >
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2009-10-30 08:39:28 -05:00
Mark McLoughlin and Anthony Liguori
dc69004c7d
net: move tap_probe_vnet_hdr() to tap-linux.c
...
Only Linux has support for IFF_VNET_HDR
Signed-off-by: Mark McLoughlin <markmc@redhat.com >
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2009-10-30 08:39:28 -05:00
Mark McLoughlin and Anthony Liguori
15ac913bfe
net: move tap_set_sndbuf() to tap-linux.c
...
TUNSETSNDBUF is only available on linux
Signed-off-by: Mark McLoughlin <markmc@redhat.com >
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2009-10-30 08:39:28 -05:00
Mark McLoughlin and Anthony Liguori
c28b1c1007
net: move linux code into net/tap-linux.c
...
Signed-off-by: Mark McLoughlin <markmc@redhat.com >
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2009-10-30 08:39:28 -05:00