tap: make set_offload a nop after netdev cleanup
commit27a6375de3edece2e5d115847d54c01e52331f7e
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 31 Oct 2010 17:06:47 +0000 (31 19:06 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 16 Nov 2010 14:40:07 +0000 (16 08:40 -0600)
tree2e0668b8e8081e382a998a8d365adf959a0b0c27
parentf6584ee20338a74ef3b05b38b8f9dc5e7a7276a6
tap: make set_offload a nop after netdev cleanup

virtio-net expects set_offload to succeed after
peer cleanup.
Since we don't have an open fd anymore, make it so.
Fixes warning about the failure of offload setting.

Reported-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
net/tap.c