aboutgitcodebugslistschat
path: root/pasta.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2024-11-27 14:54:10 +1100
committerStefano Brivio <sbrivio@redhat.com>2024-11-28 14:03:16 +0100
commitb6e79efa0b0c8ab6327f5184f81c5b3ab8af4ff8 (patch)
tree63d4668d367faff12bfbf93b07791c17b702ce54 /pasta.c
parenta6348cad51398346b1ce1009be87a718b8f72bba (diff)
downloadpasst-b6e79efa0b0c8ab6327f5184f81c5b3ab8af4ff8.tar
passt-b6e79efa0b0c8ab6327f5184f81c5b3ab8af4ff8.tar.gz
passt-b6e79efa0b0c8ab6327f5184f81c5b3ab8af4ff8.tar.bz2
passt-b6e79efa0b0c8ab6327f5184f81c5b3ab8af4ff8.tar.lz
passt-b6e79efa0b0c8ab6327f5184f81c5b3ab8af4ff8.tar.xz
passt-b6e79efa0b0c8ab6327f5184f81c5b3ab8af4ff8.tar.zst
passt-b6e79efa0b0c8ab6327f5184f81c5b3ab8af4ff8.zip
tcp_vu: Remove unnecessary tcp_vu_update_check() function
Because the vhost-user <-> virtio-net path ignores checksums, we usually don't calculate them when sending packets to the guest. So, we always pass no_tcp_csum=true to tcp_fill_headers(). We do want accurate checksums when capturing packets though, so the captures don't show bogus values. Currently we handle this by updating the checksum field immediately before writing the packet to the capture file, using tcp_vu_update_check(). This is unnecessary, though: in each case tcp_fill_headers() is called not very long before, so we can alter its no_tcp_csum parameter pased on whether we're generating captures or not. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'pasta.c')
0 files changed, 0 insertions, 0 deletions