]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
virtio_net: don't reset twice on XDP on/off
authorMichael S. Tsirkin <mst@redhat.com>
Wed, 29 Mar 2017 20:12:23 +0000 (23:12 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 9 May 2017 13:43:22 +0000 (16:43 +0300)
We already do a reset once in remove_vq_common -
there appears to be no point in doing another one
when we add/remove XDP.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/net/virtio_net.c

index f9381e1f365fc608c3a5b1a4232b01002c822498..fd5145bdfb77f4ccecad7af81cb1eedf132997b8 100644 (file)
@@ -1747,7 +1747,6 @@ static int virtnet_reset(struct virtnet_info *vi, int curr_qp, int xdp_qp)
        virtnet_freeze_down(dev);
        _remove_vq_common(vi);
 
-       dev->config->reset(dev);
        virtio_add_status(dev, VIRTIO_CONFIG_S_ACKNOWLEDGE);
        virtio_add_status(dev, VIRTIO_CONFIG_S_DRIVER);