[PATCH] tcp_vu: Compute IPv4 header checksum if dlen changes
In tcp_vu_data_from_sock() we compute IPv4 header checksum only
for the first and the last packets, and re-use the first packet checksum
for all the other packets as the content of the header doesn't change.
It's more accurate to check the dlen value to know if the checksum
should change as dlen is the only information that can change in the
loop.
Signed-off-by: Laurent Vivier
On Thu, 28 Nov 2024 13:08:41 +0100
Laurent Vivier
In tcp_vu_data_from_sock() we compute IPv4 header checksum only for the first and the last packets, and re-use the first packet checksum for all the other packets as the content of the header doesn't change.
It's more accurate to check the dlen value to know if the checksum should change as dlen is the only information that can change in the loop.
Signed-off-by: Laurent Vivier
Applied. -- Stefano
participants (2)
-
Laurent Vivier
-
Stefano Brivio