| From: |
| Xuan Zhuo <xuanzhuo-AT-linux.alibaba.com> |
| To: |
| virtualization-AT-lists.linux.dev |
| Subject: |
| [PATCH vhost 0/6] virtio_net: rx enable premapped mode by default |
| Date: |
| Thu, 11 Apr 2024 10:51:21 +0800 |
| Message-ID: |
| <20240411025127.51945-1-xuanzhuo@linux.alibaba.com> |
| Cc: |
| "Michael S. Tsirkin" <mst-AT-redhat.com>, Jason Wang <jasowang-AT-redhat.com>, Xuan Zhuo <xuanzhuo-AT-linux.alibaba.com>, "David S. Miller" <davem-AT-davemloft.net>, Eric Dumazet <edumazet-AT-google.com>, Jakub Kicinski <kuba-AT-kernel.org>, Paolo Abeni <pabeni-AT-redhat.com>, netdev-AT-vger.kernel.org |
| Archive-link: |
| Article |
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