diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index b425fa1013af918529f9d66e54652308dd06361a..fe9f7726e99053c5ec6cfbb46320f16cc39773ad 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -1930,7 +1930,9 @@ static int virtnet_probe(struct virtio_device *vdev) goto free_unregister_netdev; } - virtnet_set_affinity(vi); + rtnl_lock(); + virtnet_set_queues(vi, vi->curr_queue_pairs); + rtnl_unlock(); /* Assume link up if device can't report link status, otherwise get link status from config. */