aboutgitcodebugslistschat
path: root/test/perf
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2022-11-24 19:54:21 +1100
committerStefano Brivio <sbrivio@redhat.com>2022-12-06 07:42:22 +0100
commit310bdbdcf423372519df190c1677e2e2f3380158 (patch)
tree6954576dd9f8e7c2d767264f128678b2eef6a48d /test/perf
parent4b2d227c8671a4bc37a7288f11d797fd8ba255ca (diff)
downloadpasst-310bdbdcf423372519df190c1677e2e2f3380158.tar
passt-310bdbdcf423372519df190c1677e2e2f3380158.tar.gz
passt-310bdbdcf423372519df190c1677e2e2f3380158.tar.bz2
passt-310bdbdcf423372519df190c1677e2e2f3380158.tar.lz
passt-310bdbdcf423372519df190c1677e2e2f3380158.tar.xz
passt-310bdbdcf423372519df190c1677e2e2f3380158.tar.zst
passt-310bdbdcf423372519df190c1677e2e2f3380158.zip
udp: Factor out control structure management from udp_sock_fill_data_v[46]
The main purpose of udp_sock_fill_data_v[46]() is to construct the IP, UDP and other headers we'll need to forward data onto the tap interface. In addition they update the control structures (iovec and mmsghdr) we'll need to send the messages, and in the case of pasta actually sends it. This leads the control structure management and the send itself awkwardly split between udp_sock_fill_data_v[46]() and their caller udp_sock_handler(). In addition, this tail part of udp_sock_fill_datav[46] is essentially common between the IPv4 and IPv6 versions, apart from which control array we're working on. Clean this up by reducing these functions to just construct the headers and renaming them to udp_update_hdr[46]() accordingly. The control structure updates are now all in the caller, and common for IPv4 and IPv6. 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