Subject: Re: Hardware IPv4/TCP/UDP checksumming support
To: =?iso-8859-1?Q?P=E5l_Halvorsen?= <paalh@unik.no>
From: Ignatios Souvatzis <ignatios@theory.cs.uni-bonn.de>
List: tech-net
Date: 09/06/2001 13:34:48
--mxv5cy4qt+RJ9ypb
Content-Type: text/plain; charset=iso-8859-1
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Thu, Sep 06, 2001 at 01:17:57PM +0200, P=E5l Halvorsen wrote:
>=20
> If we assume using NIC DMA to access main memory and using UDP/IP
> calculating UDP checksum, filling the IP header and caclulating IP header
> checksum.
>=20
> Does this mean that the checksum offload requires more bus transfers than
> native checksum mechanisms only transfering the original packet once?
> (data and UDP header twice, and IP header three times - including the
> UDPIP pseudo header used during UDP checksum)=20
> Or is the data transfered to the NIC during UDP checksum and only the
> headers are transfered several times?

There is a third option. Never return the checksum to the cpu's main memory.

I don't know what is implemented by the hardware & driver in question, but
you can easily check that yourself.

	-is

--mxv5cy4qt+RJ9ypb
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: 2.6.i

iQEVAgUBO5dcdjCn4om+4LhpAQHOoQgAgOdKhBDDftXC4iDcVHxPvfCnosptntkA
sHY+QqZACHaAWfTjzEOjL7B3MOA6s+3ZjJCruRYk5NnYwKlIfSTDWRFKxaRm1Xal
pJk3rHpg1hzeUrsgCE2InH/J8VAapbjxuYTakcAcJUezZBWXJIYmH5vzPYOFt1qA
m0/UcRmMJr00RMDH4Peecb77j0xC6ME6Z1XkwZMk+3p2ImH0n5rBd3d1wl7/dnKG
RyEaGQVfUEBZPcKRVW2ekMEu1Wa12C0fW2MsmaE6al7VMmTED0dnenyfM40cFLJH
cyrTxUsqssukEfFESPJJuj6S7UjFKke4V1Sbi6TYKTxecG4mEcb4jQ==
=yqfl
-----END PGP SIGNATURE-----

--mxv5cy4qt+RJ9ypb--