projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d85b758
)
virtio_net: don't reset twice on XDP on/off
author
Michael S. Tsirkin
<mst@redhat.com>
Wed, 29 Mar 2017 20:12:23 +0000
(23:12 +0300)
committer
Michael S. Tsirkin
<mst@redhat.com>
Tue, 9 May 2017 13:43:22 +0000
(16:43 +0300)
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>
drivers/net/virtio_net.c
patch
|
blob
|
history
diff --git
a/drivers/net/virtio_net.c
b/drivers/net/virtio_net.c
index f9381e1f365fc608c3a5b1a4232b01002c822498..fd5145bdfb77f4ccecad7af81cb1eedf132997b8 100644
(file)
--- 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);