lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-devel] [patch #7060] Patch to optionally inline ip checksum


From: Bill Auerbach
Subject: [lwip-devel] [patch #7060] Patch to optionally inline ip checksum
Date: Fri, 12 Feb 2010 15:19:44 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.7) Gecko/20091221 Firefox/3.5.7 (.NET CLR 3.5.30729)

Follow-up Comment #5, patch #7060 (project lwip):

I agree, but I saw it use only one register - for the accumulating checksum. 
If there is no register for this, then yes, this patch has a penalty in one
extra write per item.  The extra read cancels the read that would have
resulted in the call to inet_chksum.

You could also extrapolate that if the processor can't store this checksum in
a register, it can't store the loop count in inet_chksum either and so that
routine is going to be very slow as well.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?7060>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]