tap: make set_offload a nop after netdev cleanup
commita5fd2c345f7a616e48e7f2be8b3060d23252180c
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 31 Oct 2010 17:06:47 +0000 (31 19:06 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 13 Nov 2010 21:22:01 +0000 (13 23:22 +0200)
tree40edab4c02a4b18c29c26b97543bb26792052573
parent54cdaa1bad3885448ef39faad93d40be3b223519
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