aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/lib/py/utils.py
diff options
context:
space:
mode:
authorJason Wang <[email protected]>2025-07-01 01:03:52 +0000
committerJakub Kicinski <[email protected]>2025-07-02 22:29:46 +0000
commit97b2409f28e0d69e5ab62df0798be8bd744a770f (patch)
treebdf07859e5a8f978c4e8b4a47226a8135c315234 /tools/testing/selftests/net/lib/py/utils.py
parenttun: remove unnecessary tun_xdp_hdr structure (diff)
downloadkernel-97b2409f28e0d69e5ab62df0798be8bd744a770f.tar.gz
kernel-97b2409f28e0d69e5ab62df0798be8bd744a770f.zip
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 <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/net/lib/py/utils.py')
0 files changed, 0 insertions, 0 deletions