diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2017-03-29 22:12:23 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2017-05-09 15:43:22 +0200 |
commit | 5f24df0945b3ce3be71602c2655f689d42a24181 (patch) | |
tree | 357a5ac18baa9e489aaa906037dc43a7c0690ef7 /drivers/net/virtio_net.c | |
parent | virtio_net: fix support for small rings (diff) | |
download | linux-5f24df0945b3ce3be71602c2655f689d42a24181.tar.xz 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/virtio_net.c')
-rw-r--r-- | drivers/net/virtio_net.c | 1 |
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); |