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)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 13 Nov 2010 21:22:01 +0000 (23:22 +0200)
commit903aa96b6e7dcd3c16bc3d4a5359c4636778de32
tree40edab4c02a4b18c29c26b97543bb26792052573
parent746be8c92121fc7944528666bc0cb57157f47bde
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