[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <ZJ0Wqp9csXLKQ4v4@gondor.apana.org.au>
Date: Thu, 29 Jun 2023 13:29:14 +0800
From: Herbert Xu <herbert@...dor.apana.org.au>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: arjan@...ux.intel.com, bp@...en8.de, goldstein.w.n@...il.com,
dave.hansen@...ux.intel.com, x86@...nel.org,
linux-kernel@...r.kernel.org
Subject: Re: [GIT PULL] x86/misc for 6.5
Linus Torvalds <torvalds@...ux-foundation.org> wrote:
>
> but doesn't most network hardware do the csum on its own anyway? How
> critical is csum_partial(), really?
That hardware will checksum the bulk of the packet, but we still
need to checksum the header bits (e.g., 40 bytes or less) when we
add and remove headers in software.
The one exception is Realtek drivers which seems to come with
checksum offload disabled by default.
Cheers,
--
Email: Herbert Xu <herbert@...dor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt
Powered by blists - more mailing lists