Re: hardware checksumming

From: Helge Hafting (helgehaf@idb.hist.no)
Date: Fri Aug 24 2001 - 03:01:51 EST


Christian Widmer wrote:

> yes that might be easy for the NIC's transmitting enging when all fragments
> belonging together come one after the other in the transmit-ring.
> but receiving is difficult since different connections can arrive
> simultanously and reslut in interleaved framgents.
>
> something else: you need quite a lot of ram on the NIC to buffer fragments.
> if not it will have to transfer the data twice through the PCI (checksumm are
> at the beginig of a packet not the end). nobody did spend a second on
> thinking to implement all in hardware when the interet protokol was desinged.

You don't have to store entire fragments in a NIC to do
hw checksums. All you need to store is the partial checksums,
and add to them whenever yet another fragment comes in for
that packet.

Helge Hafting
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Aug 31 2001 - 21:00:07 EST