Re: [PATCH v3] tcp: fix wrong checksum calculation on MTU probing

2016-09-23 Thread David Miller
From: Douglas Caetano dos Santos Date: Thu, 22 Sep 2016 15:52:04 -0300 > With TCP MTU probing enabled and offload TX checksumming disabled, > tcp_mtu_probe() calculated the wrong checksum when a fragment being copied > into the probe's SKB had an odd length. This was caused by the direct use > of

[PATCH v3] tcp: fix wrong checksum calculation on MTU probing

2016-09-22 Thread Douglas Caetano dos Santos
With TCP MTU probing enabled and offload TX checksumming disabled, tcp_mtu_probe() calculated the wrong checksum when a fragment being copied into the probe's SKB had an odd length. This was caused by the direct use of skb_copy_and_csum_bits() to calculate the checksum, as it pads the fragment bein