aboutgitcodebugslistschat
path: root/test/perf
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-11-24 19:54:20 +1100
committerStefano Brivio <sbrivio@redhat.com>2022-12-06 07:42:19 +0100
commit4b2d227c8671a4bc37a7288f11d797fd8ba255ca (patch)
tree60aefe27cbc970cc23ae7a5e417e745f2f7f0a46 /test/perf
parentd5338070275c26c0d60120b8b765e8fb4c19264e (diff)
downloadpasst-4b2d227c8671a4bc37a7288f11d797fd8ba255ca.tar
passt-4b2d227c8671a4bc37a7288f11d797fd8ba255ca.tar.gz
passt-4b2d227c8671a4bc37a7288f11d797fd8ba255ca.tar.bz2
passt-4b2d227c8671a4bc37a7288f11d797fd8ba255ca.tar.lz
passt-4b2d227c8671a4bc37a7288f11d797fd8ba255ca.tar.xz
passt-4b2d227c8671a4bc37a7288f11d797fd8ba255ca.tar.zst
passt-4b2d227c8671a4bc37a7288f11d797fd8ba255ca.zip
udp: Preadjust udp[46]_l2_iov_tap[].iov_base for pasta mode
Currently, we always populate udp[46]_l2_iov_tap[].iov_base with the very start of the header buffers, including space for the qemu vnet_len tag suitable for passt mode. That's ok because we don't actually use these iovecs for pasta mode. However, we do know the mode in udp_sock[46]_iov_init() so adjust these to the beginning of the headers we'll actually need for the mode: including the vnet_len tag for passt, but excluding it for pasta. This allows a slightly nicer way to locate the right buffer to send in the pasta case, and will allow some additional cleanups later. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'test/perf')
0 files changed, 0 insertions, 0 deletions