aboutgitcodebugslistschat
path: root/contrib/qemu
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2025-04-04 21:15:36 +1100
committerStefano Brivio <sbrivio@redhat.com>2025-04-07 21:41:32 +0200
commit0304dd9c34a7dd29c3a8a2058626a971d4e71a8e (patch)
tree68307184525d39fe7c0f9756d5cb8dce66a3f819 /contrib/qemu
parent5221e177e132b8b5001ec97f42975ad1251f7110 (diff)
downloadpasst-0304dd9c34a7dd29c3a8a2058626a971d4e71a8e.tar
passt-0304dd9c34a7dd29c3a8a2058626a971d4e71a8e.tar.gz
passt-0304dd9c34a7dd29c3a8a2058626a971d4e71a8e.tar.bz2
passt-0304dd9c34a7dd29c3a8a2058626a971d4e71a8e.tar.lz
passt-0304dd9c34a7dd29c3a8a2058626a971d4e71a8e.tar.xz
passt-0304dd9c34a7dd29c3a8a2058626a971d4e71a8e.tar.zst
passt-0304dd9c34a7dd29c3a8a2058626a971d4e71a8e.zip
udp: Split spliced forwarding path from udp_buf_reply_sock_data()
udp_buf_reply_sock_data() can handle forwarding data either from socket to socket ("splicing") or from socket to tap. It has a test on each datagram for which case we're in, but that will be the same for everything in the batch. Split out the spliced path into a separate udp_sock_to_sock() function. This leaves udp_{buf,vu}_reply_sock_data() handling only forwards from socket to tap, so rename and simplify them accordingly. This makes the code slightly longer for now, but will allow future cleanups to shrink it back down again. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> [sbrivio: Fix typos in comments to udp_sock_recv() and udp_vu_listen_sock_data()] Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib/qemu')
0 files changed, 0 insertions, 0 deletions