aboutgitcodebugslistschat
path: root/Makefile
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-05-01 18:31:08 +1000
committerStefano Brivio <sbrivio@redhat.com>2024-05-02 16:13:46 +0200
commit6170688616c3b5a545482322cd936747fff051b2 (patch)
treec5f5b88d3a571fb04788f09b3ea3096ca220fc3d /Makefile
parent2d16946bac152e251156258ac314a74f1984d421 (diff)
downloadpasst-6170688616c3b5a545482322cd936747fff051b2.tar
passt-6170688616c3b5a545482322cd936747fff051b2.tar.gz
passt-6170688616c3b5a545482322cd936747fff051b2.tar.bz2
passt-6170688616c3b5a545482322cd936747fff051b2.tar.lz
passt-6170688616c3b5a545482322cd936747fff051b2.tar.xz
passt-6170688616c3b5a545482322cd936747fff051b2.tar.zst
passt-6170688616c3b5a545482322cd936747fff051b2.zip
udp: Share payload buffers between IPv4 and IPv6
Currently the IPv4 and IPv6 paths unnecessarily use different buffers for the UDP payload. Now that we're handling the various pieces of the UDP packets with an iov, we can split the payload part of the buffers off into its own array shared between IPv4 and IPv6. As well as saving a little memory, this allows the payload buffers to be neatly page aligned. With the buffers merged, udp[46]_l2_iov_sock contain exactly the same thing as each other and can also be merged. Likewise udp[46]_iov_splice can be merged together. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'Makefile')
0 files changed, 0 insertions, 0 deletions