Skip to contentSkip to conversation

virtio_net: don't reset twice on XDP on/off

PATCH In review Michael S. Tsirkin 2 participants 2 messages Mar 29, 2017 – Mar 30, 2017

Subsystems (4)
lore
Share & tools
lore

Michael S. Tsirkin

author maintainer
#0 lore raw

PATCH 1/1 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.

---
 drivers/net/virtio_net.c | 1 -
 1 file changed, 1 deletion(-)
drivers/net/virtio_net.c +0 -1
index de42e9a..ed8f548 100644
@@ -1810,7 +1810,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);
 
Signature · 1 line
MST
Acked-by on v1 1/1
#1 lore raw
Quoted 14 lines · Michael S. Tsirkin

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.

---
  drivers/net/virtio_net.c | 1 -
  1 file changed, 1 deletion(-)
drivers/net/virtio_net.c +0 -0
index de42e9a..ed8f548 100644

drivers/net/virtio_net.c static int virtnet_reset(struct virtnet_info *vi, int curr_qp, int xdp_qp) · line 1815

Quoted 7 lines
drivers/net/virtio_net.c +0 -1
@@ -1810,7 +1810,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);
 

_______________________________________________
Virtualization mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/virtualization