aboutgitcodebugslistschat
path: root/contrib
diff options
context:
space:
mode:
authorLaurent Vivier <lvivier@redhat.com>2026-02-10 17:08:21 +0100
committerStefano Brivio <sbrivio@redhat.com>2026-02-15 02:52:42 +0100
commit812cdb802c6e2b217efe1756554755b784c1d9e3 (patch)
treee7b4249b50bc993aea8d1331c6cb8b48ecb0448f /contrib
parentbebafa72a982784164a7d556bd860ec0ed1e02c7 (diff)
downloadpasst-812cdb802c6e2b217efe1756554755b784c1d9e3.tar
passt-812cdb802c6e2b217efe1756554755b784c1d9e3.tar.gz
passt-812cdb802c6e2b217efe1756554755b784c1d9e3.tar.bz2
passt-812cdb802c6e2b217efe1756554755b784c1d9e3.tar.lz
passt-812cdb802c6e2b217efe1756554755b784c1d9e3.tar.xz
passt-812cdb802c6e2b217efe1756554755b784c1d9e3.tar.zst
passt-812cdb802c6e2b217efe1756554755b784c1d9e3.zip
tcp: Move tap header update out of tcp_fill_headers()
tcp_fill_headers() currently calls tap_hdr_update() to set the frame length in the tap-specific header. This is backend-specific: the tap backend needs this for its frame length header, but the vhost-user backend passes NULL for the tap header and doesn't use it at all. Remove the tap_hdr parameter from tcp_fill_headers() and instead return the computed L2 frame length. The tap backend caller, tcp_l2_buf_fill_headers(), now calls tap_hdr_update() itself with the returned length. The vhost-user callers, tcp_vu_send_flag() and tcp_vu_prepare(), no longer need to pass a NULL tap header. Signed-off-by: Laurent Vivier <lvivier@redhat.com> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions