]> git.proxmox.com Git - qemu.git/commit
net: check for TUNSETOFFLOAD support before trying to enable offload features
authorPierre Riteau <Pierre.Riteau@irisa.fr>
Wed, 25 Nov 2009 18:49:35 +0000 (18:49 +0000)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 3 Dec 2009 15:41:35 +0000 (09:41 -0600)
commit2e50326c44c802ca9b9d591341085e49208927be
tree24b82990a051e7552f02b07dcc4bcd8d85650d4b
parent6720b35b8186e9c6a9f137c02f8c2c1e7c98085f
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>
net/tap-linux.c