From: Michael S. Tsirkin Date: Wed, 29 Mar 2017 20:12:23 +0000 (+0300) Subject: virtio_net: don't reset twice on XDP on/off X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5f24df0945b3ce3be71602c2655f689d42a24181;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git 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 --- 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);