Michael S. Tsirkin
2017-Mar-29 20:14 UTC
[PATCH net-next] 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 at redhat.com> --- drivers/net/virtio_net.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c index de42e9a..ed8f548 100644 --- a/drivers/net/virtio_net.c +++ b/drivers/net/virtio_net.c @@ -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); -- MST
Jason Wang
2017-Mar-30 05:39 UTC
[PATCH net-next] virtio_net: don't reset twice on XDP on/off
On 2017?03?30? 04:14, Michael S. Tsirkin wrote:> 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 at redhat.com> > --- > drivers/net/virtio_net.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/net/virtio_net.c b/drivers/net/virtio_net.c > index de42e9a..ed8f548 100644 > --- a/drivers/net/virtio_net.c > +++ b/drivers/net/virtio_net.c > @@ -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); >Acked-by: Jason Wang <jasowang at redhat.com>
Apparently Analagous Threads
- [PATCH net-next] virtio_net: don't reset twice on XDP on/off
- [PATCH net-next 4/5] virtio-net: do not reset during XDP set
- [PATCH net-next 4/5] virtio-net: do not reset during XDP set
- [PATCH net-next 0/5] refine virtio-net XDP
- [PATCH net-next 0/5] refine virtio-net XDP