netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH vhost 0/2] virtio_net: fix for stuck when change ring size with dev down
@ 2022-08-11  8:02 Xuan Zhuo
  2022-08-11  8:02 ` [PATCH 1/2] virtio_net: fix for stuck when change rx " Xuan Zhuo
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Xuan Zhuo @ 2022-08-11  8:02 UTC (permalink / raw)
  To: virtualization
  Cc: Michael S. Tsirkin, Jason Wang, David S. Miller, Eric Dumazet,
	Jakub Kicinski, Paolo Abeni, netdev

When dev is set to DOWN state, napi has been disabled, if we modify the
ring size at this time, we should not call napi_disable() again, which
will cause stuck.

And all operations are under the protection of rtnl_lock, so there is no
need to consider concurrency issues.

PS.
Hi Michael, I don't know which way is more convenient for you, so I split the
commit into two commits, so you can fixup to my previous commit:

    virtio_net: support tx queue resize
	virtio_net: support rx queue resize

Xuan Zhuo (2):
  virtio_net: fix for stuck when change rx ring size with dev down
  virtio_net: fix for stuck when change tx ring size with dev down

 drivers/net/virtio_net.c | 14 ++++++++++----
 1 file changed, 10 insertions(+), 4 deletions(-)

--
2.31.0


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2022-08-12 19:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-08-11  8:02 [PATCH vhost 0/2] virtio_net: fix for stuck when change ring size with dev down Xuan Zhuo
2022-08-11  8:02 ` [PATCH 1/2] virtio_net: fix for stuck when change rx " Xuan Zhuo
2022-08-11  8:02 ` [PATCH 2/2] virtio_net: fix for stuck when change tx " Xuan Zhuo
2022-08-11  8:11 ` [PATCH vhost 0/2] virtio_net: fix for stuck when change " Michael S. Tsirkin
2022-08-11  8:12   ` Xuan Zhuo
2022-08-11 17:37   ` Jakub Kicinski
2022-08-12  1:30     ` Xuan Zhuo
2022-08-12 19:47       ` Jakub Kicinski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).