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)
commit67c4e9c7fb7c4d3d64e46576605e02565623deb4
tree24b82990a051e7552f02b07dcc4bcd8d85650d4b
parent6d87d6e92be0d8fd89b0ce55a47a02b68faaa39c
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