Re: [PATCH net-next] af-packet: new flag to indicate all csums are good

2020-06-01 Thread Victor Julien
On 01-06-2020 23:45, David Miller wrote: > From: Victor Julien > Date: Mon, 1 Jun 2020 22:49:37 +0200 > >> @@ -472,6 +472,12 @@ TP_STATUS_CSUM_VALIDThis flag indicates that at >> least the transport >> validated on the kernel side. If the flag is not set >>

Re: [PATCH net-next] af-packet: new flag to indicate all csums are good

2020-06-01 Thread David Miller
From: Victor Julien Date: Mon, 1 Jun 2020 22:49:37 +0200 > @@ -472,6 +472,12 @@ TP_STATUS_CSUM_VALID This flag indicates that at > least the transport > validated on the kernel side. If the flag is not set > then we are free to check the checksum

[PATCH net-next] af-packet: new flag to indicate all csums are good

2020-06-01 Thread Victor Julien
Introduce a new flag (TP_STATUS_CSUM_UNNECESSARY) to indicate that the driver has completely validated the checksums in the packet. The flag differs from TP_STATUS_CSUM_VALID in that it will only be set if all the layers are valid, while TP_STATUS_CSUM_VALID is set as well if only the IP layer is