From: Saeed Mahameed
Date: Tue, 8 Aug 2017 19:16:52 +0300
> On Thu, Aug 3, 2017 at 11:54 PM, Davide Caratti wrote:
>> if the NIC fails to validate the checksum on TCP/UDP, and validation of IP
>> checksum is successful, the driver subtracts the pseudo-header checksum
>> from the value obtained b
On Thu, Aug 3, 2017 at 11:54 PM, Davide Caratti wrote:
> if the NIC fails to validate the checksum on TCP/UDP, and validation of IP
> checksum is successful, the driver subtracts the pseudo-header checksum
> from the value obtained by the hardware and sets CHECKSUM_COMPLETE. Don't
> do that if pro
On Tue, Aug 8, 2017 at 7:06 PM, Davide Caratti wrote:
> On Tue, 2017-08-08 at 18:07 +0300, Saeed Mahameed wrote:
>> > {
>> > __u16 length_for_csum = 0;
>> > __wsum csum_pseudo_header = 0;
>> > + __u8 ipproto = iph->protocol;
>> > +
>> > + if (unlikely(ipproto == IPP
On Tue, 2017-08-08 at 18:07 +0300, Saeed Mahameed wrote:
> > {
> > __u16 length_for_csum = 0;
> > __wsum csum_pseudo_header = 0;
> > + __u8 ipproto = iph->protocol;
> > +
> > + if (unlikely(ipproto == IPPROTO_SCTP))
> > + return -1;
> >
>
> Hi Davide
On Thu, Aug 3, 2017 at 11:54 PM, Davide Caratti wrote:
> if the NIC fails to validate the checksum on TCP/UDP, and validation of IP
> checksum is successful, the driver subtracts the pseudo-header checksum
> from the value obtained by the hardware and sets CHECKSUM_COMPLETE. Don't
> do that if pro
From: Davide Caratti
Date: Thu, 3 Aug 2017 22:54:48 +0200
> if the NIC fails to validate the checksum on TCP/UDP, and validation of IP
> checksum is successful, the driver subtracts the pseudo-header checksum
> from the value obtained by the hardware and sets CHECKSUM_COMPLETE. Don't
> do that i
if the NIC fails to validate the checksum on TCP/UDP, and validation of IP
checksum is successful, the driver subtracts the pseudo-header checksum
from the value obtained by the hardware and sets CHECKSUM_COMPLETE. Don't
do that if protocol is IPPROTO_SCTP, otherwise CRC32c validation fails.
V2: d