aboutgitcodebugslistschat
path: root/tcp_buf.h
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2024-06-13 14:36:48 +0200
committerStefano Brivio <sbrivio@redhat.com>2024-06-13 15:43:35 +0200
commitec26fa013ad94cab4e7585c3eaedddb4b41a64fa (patch)
tree98574b49b11de1ade779c0b49e182e88e6237d4e /tcp_buf.h
parentd949667436a2c213a25170449894b312fad62d18 (diff)
downloadpasst-ec26fa013ad94cab4e7585c3eaedddb4b41a64fa.tar
passt-ec26fa013ad94cab4e7585c3eaedddb4b41a64fa.tar.gz
passt-ec26fa013ad94cab4e7585c3eaedddb4b41a64fa.tar.bz2
passt-ec26fa013ad94cab4e7585c3eaedddb4b41a64fa.tar.lz
passt-ec26fa013ad94cab4e7585c3eaedddb4b41a64fa.tar.xz
passt-ec26fa013ad94cab4e7585c3eaedddb4b41a64fa.tar.zst
passt-ec26fa013ad94cab4e7585c3eaedddb4b41a64fa.zip
tcp: extract buffer management from tcp_send_flag()
This commit isolates the internal data structure management used for storing data (e.g., tcp4_l2_flags_iov[], tcp6_l2_flags_iov[], tcp4_flags_ip[], tcp4_flags[], ...) from the tcp_send_flag() function. The extracted functionality is relocated to a new function named tcp_fill_flag_header(). tcp_fill_flag_header() is now a generic function that accepts parameters such as struct tcphdr and a data pointer. tcp_send_flag() utilizes this parameter to pass memory pointers from tcp4_l2_flags_iov[] and tcp6_l2_flags_iov[]. This separation sets the stage for utilizing tcp_prepare_flags() to set the memory provided by the guest via vhost-user in future developments. Signed-off-by: Laurent Vivier <lvivier@redhat.com> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'tcp_buf.h')
0 files changed, 0 insertions, 0 deletions