mbox series

[vhost,0/6] virtio_net: rx enable premapped mode by default

Message ID 20240411025127.51945-1-xuanzhuo@linux.alibaba.com (mailing list archive)
Headers show
Series virtio_net: rx enable premapped mode by default | expand

Message

Xuan Zhuo April 11, 2024, 2:51 a.m. UTC
Actually, for the virtio drivers, we can enable premapped mode whatever
the value of use_dma_api. Because we provide the virtio dma apis.
So the driver can enable premapped mode unconditionally.

This patch set makes the big mode of virtio-net to support premapped mode.
And enable premapped mode for rx by default.

Please review.

Thanks.

Xuan Zhuo (6):
  virtio_ring: introduce dma map api for page
  virtio_ring: enable premapped mode whatever use_dma_api
  virtio_net: replace private by pp struct inside page
  virtio_net: big mode support premapped
  virtio_net: enable premapped by default
  virtio_net: rx remove premapped failover code

 drivers/net/virtio_net.c     | 213 ++++++++++++++++++++++-------------
 drivers/virtio/virtio_ring.c |  59 +++++++++-
 include/linux/virtio.h       |   7 ++
 3 files changed, 192 insertions(+), 87 deletions(-)

--
2.32.0.3.g01195cf9f