aboutgitcodebugslistschat
path: root/doc
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2026-06-15 18:18:31 +1000
committerStefano Brivio <sbrivio@redhat.com>2026-06-16 23:49:39 +0200
commit751a6f1d3288334afd3eda687e46968a5b5861bd (patch)
treeb02da5c9ea982f5b799705b499b4c26fa91c1cea /doc
parent46048603c0cbf4899323447e72720e550a684599 (diff)
downloadpasst-751a6f1d3288334afd3eda687e46968a5b5861bd.tar
passt-751a6f1d3288334afd3eda687e46968a5b5861bd.tar.gz
passt-751a6f1d3288334afd3eda687e46968a5b5861bd.tar.bz2
passt-751a6f1d3288334afd3eda687e46968a5b5861bd.tar.lz
passt-751a6f1d3288334afd3eda687e46968a5b5861bd.tar.xz
passt-751a6f1d3288334afd3eda687e46968a5b5861bd.tar.zst
passt-751a6f1d3288334afd3eda687e46968a5b5861bd.zip
tcp: Merge common sequence logic from tcp_{buf,vu}_data_from_sock()
tcp_buf_data_from_sock() and tcp_vu_data_from_sock() start with some identical logic to compute the amount of data from the socket that has already been sent to tap but not acked. Replace it with a single copy in their common caller tcp_data_from_sock(), passing the already_sent amount in as a parameter. This does mean that we now execute this logic in the VU case even if the queue is not active. The logic is still valid in this case, and we don't need to worry too much about wasting cycles in this edge case. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions