All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC PATCH 0/4] virtio-net: don't busy poll for cvq command
@ 2022-12-22  6:04 ` Jason Wang
  0 siblings, 0 replies; 28+ messages in thread
From: Jason Wang @ 2022-12-22  6:04 UTC (permalink / raw)
  To: mst, jasowang
  Cc: netdev, linux-kernel, virtualization, eperezma, edumazet,
	maxime.coquelin, kuba, pabeni, davem

Hi all:

The code used to busy poll for cvq command which turns out to have
several side effects:

1) infinite poll for buggy devices
2) bad interaction with scheduler

So this series tries to use sleep + timeout instead of busy polling.

Please review.

Thanks

Jason Wang (4):
  virtio-net: convert rx mode setting to use workqueue
  virtio_ring: switch to use BAD_RING()
  virtio_ring: introduce a per virtqueue waitqueue
  virtio-net: sleep instead of busy waiting for cvq command

 drivers/net/virtio_net.c     | 79 +++++++++++++++++++++++++++++++-----
 drivers/virtio/virtio_ring.c | 33 ++++++++++++++-
 include/linux/virtio.h       |  4 ++
 3 files changed, 105 insertions(+), 11 deletions(-)

-- 
2.25.1

_______________________________________________
Virtualization mailing list
Virtualization@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/virtualization

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

end of thread, other threads:[~2022-12-26  3:46 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-22  6:04 [RFC PATCH 0/4] virtio-net: don't busy poll for cvq command Jason Wang
2022-12-22  6:04 ` Jason Wang
2022-12-22  6:04 ` [RFC PATCH 1/4] virtio-net: convert rx mode setting to use workqueue Jason Wang
2022-12-22  6:04   ` Jason Wang
2022-12-22  6:04 ` [RFC PATCH 2/4] virtio_ring: switch to use BAD_RING() Jason Wang
2022-12-22  6:04   ` Jason Wang
2022-12-22  6:04 ` [RFC PATCH 3/4] virtio_ring: introduce a per virtqueue waitqueue Jason Wang
2022-12-22  6:04   ` Jason Wang
2022-12-22  6:04 ` [RFC PATCH 4/4] virtio-net: sleep instead of busy waiting for cvq command Jason Wang
2022-12-22  6:04   ` Jason Wang
2022-12-22  6:44   ` Alvaro Karsz
2022-12-22  6:44     ` Alvaro Karsz
2022-12-22  8:43     ` Jason Wang
2022-12-22  8:43       ` Jason Wang
2022-12-22 15:54       ` Alvaro Karsz
2022-12-22 15:54         ` Alvaro Karsz
2022-12-23  3:00         ` Jason Wang
2022-12-23  3:00           ` Jason Wang
2022-12-23  7:38           ` Alvaro Karsz
2022-12-23  7:38             ` Alvaro Karsz
2022-12-26  3:45             ` Jason Wang
2022-12-26  3:45               ` Jason Wang
2022-12-22  9:19   ` Eugenio Perez Martin
2022-12-23  3:03     ` Jason Wang
2022-12-23  3:03       ` Jason Wang
2022-12-23  8:04       ` Eugenio Perez Martin
2022-12-26  3:44         ` Jason Wang
2022-12-26  3:44           ` Jason Wang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.