]> git.proxmox.com Git - qemu.git/commit - net/tap.c
tap: make set_offload a nop after netdev cleanup
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 31 Oct 2010 17:06:47 +0000 (19:06 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 16 Nov 2010 14:40:07 +0000 (08:40 -0600)
commit27a6375de3edece2e5d115847d54c01e52331f7e
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