summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2017-03-29 23:12:23 +0300
committerMichael S. Tsirkin <mst@redhat.com>2017-05-09 16:43:22 +0300
commit5f24df0945b3ce3be71602c2655f689d42a24181 (patch)
tree357a5ac18baa9e489aaa906037dc43a7c0690ef7 /drivers/net
parentd85b758f72b05a774045545f24d70980e3e9aac4 (diff)
downloadlinux-5f24df0945b3ce3be71602c2655f689d42a24181.tar.gz
linux-5f24df0945b3ce3be71602c2655f689d42a24181.tar.bz2
linux-5f24df0945b3ce3be71602c2655f689d42a24181.zip
virtio_net: don't reset twice on XDP on/off
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>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/virtio_net.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c
index f9381e1f365f..fd5145bdfb77 100644
--- a/drivers/net/virtio_net.c
+++ b/drivers/net/virtio_net.c
@@ -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);