diff options
author | Xuan Zhuo <xuanzhuo@linux.alibaba.com> | 2024-10-29 16:46:14 +0800 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-11-05 11:37:40 +0100 |
commit | 47008bb51c3e11c187dacc17af334bdca97c2dca (patch) | |
tree | a02b82d3a2ddb7199aad0efeb4f1ecafe5c439ac /drivers/net/ethernet/intel/ice/ice_main.c | |
parent | a33f3df850750216f432b637a5020ad6a740cac1 (diff) | |
download | linux-47008bb51c3e11c187dacc17af334bdca97c2dca.tar.gz linux-47008bb51c3e11c187dacc17af334bdca97c2dca.tar.bz2 linux-47008bb51c3e11c187dacc17af334bdca97c2dca.zip |
virtio_net: enable premapped mode for merge and small by default
Currently, the virtio core will perform a dma operation for each
buffer. Although, the same page may be operated multiple times.
In premapped mod, we can perform only one dma operation for the pages of
the alloc frag. This is beneficial for the iommu device.
kernel command line: intel_iommu=on iommu.passthrough=0
| strict=0 | strict=1
Before | 775496pps | 428614pps
After | 1109316pps | 742853pps
In the 6.11, we disabled this feature because a regress [1].
Now, we fix the problem and re-enable it.
[1]: http://lore.kernel.org/all/8b20cc28-45a9-4643-8e87-ba164a540c0a@oracle.com
Tested-by: Darren Kenny <darren.kenny@oracle.com>
Signed-off-by: Xuan Zhuo <xuanzhuo@linux.alibaba.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_main.c')
0 files changed, 0 insertions, 0 deletions