diff options
author | Jason Wang <jasowang@redhat.com> | 2025-07-01 09:03:52 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2025-07-02 15:29:46 -0700 |
commit | 97b2409f28e0d69e5ab62df0798be8bd744a770f (patch) | |
tree | bdf07859e5a8f978c4e8b4a47226a8135c315234 /net/unix/af_unix.c | |
parent | 4d313f2bd22213caace3fe4fb02977b527f9c6c3 (diff) |
vhost-net: reduce one userspace copy when building XDP buff
We used to do twice copy_from_iter() to copy virtio-net and packet
separately. This introduce overheads for userspace access hardening as
well as SMAP (for x86 it's stac/clac). So this patch tries to use one
copy_from_iter() to copy them once and move the virtio-net header
afterwards to reduce overheads.
Testpmd + vhost_net shows 10% improvement from 5.45Mpps to 6.0Mpps.
Signed-off-by: Jason Wang <jasowang@redhat.com>
Link: https://patch.msgid.link/20250701010352.74515-2-jasowang@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions