lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [task #6849] Test how checksum on copy could be integrated


From: Simon Goldschmidt
Subject: [lwip-devel] [task #6849] Test how checksum on copy could be integrated into the stack
Date: Mon, 15 Mar 2010 16:48:28 +0000
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.2) Gecko/20100115 Firefox/3.6

Follow-up Comment #21, task #6849 (project lwip):

I think we are mixing 2 things here:
a) implementation-driven checksum-in-pbuf and
b) optimizing the way the stack calculates checksums by default

Looking only at the TX side (which this task is about only), is it hard to
change your current implementation to call udp_send_chksum / tcp_write_chksum
with the checksum as an argument?

As to the RX side, in patch #6253, I was thinking about storing the checksum
directly after the struct pbuf (which doesn't work for PBUF_REF/ROM, but we
currently don't support these for RX, anyway). E.g you would have to supply a
special pbuf_layer to pbuf_alloc, which reserves space for the checksum at the
beginning of a packet. This way, only the first pbuf in a chain has to provide
additional space for a checksum instead of *all* RX and TX pbufs in the
complete system.

But again, I think that TX and RX are really 2 separate issues here, and that
checksum-in-pbuf only applies to RX. If we agree about that, the discussion
about that should be continued in patch #6253.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/task/?6849>

_______________________________________________
  Nachricht geschickt von/durch Savannah
  http://savannah.nongnu.org/





reply via email to

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