Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5f24df09 authored by Michael S. Tsirkin's avatar Michael S. Tsirkin
Browse files

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: default avatarMichael S. Tsirkin <mst@redhat.com>
parent d85b758f
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -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);