virtio_net: drop config_enable
authorMichael S. Tsirkin <mst@redhat.com>
Tue, 14 Oct 2014 23:52:29 +0000 (10:22 +1030)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 14 Oct 2014 23:54:58 +0000 (10:24 +1030)
commit102a2786c9df756cffdbcfd11096124e4dc6c311
tree83d549017a6a2b18114d77050cbed1b447445855
parent1f54b0c055b9322f4e7acb49c492edc5accd15ae
virtio_net: drop config_enable

Now that virtio core ensures config changes don't arrive during probing,
drop config_enable flag in virtio net.
On removal, flush is now sufficient to guarantee that no change work is
queued.

This help simplify the driver, and will allow setting DRIVER_OK earlier
without losing config change notifications.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/net/virtio_net.c