lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [task #6735] Provide new pbuf type: PBUF_RAM_NOCOPY


From: Jonathan Larmour
Subject: [lwip-devel] [task #6735] Provide new pbuf type: PBUF_RAM_NOCOPY
Date: Fri, 10 Aug 2007 15:35:12 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.12) Gecko/20070530 Fedora/1.5.0.12-1.fc5 Firefox/1.5.0.12

Follow-up Comment #23, task #6735 (project lwip):

> In my opinion, the best place to copy is at the "top" of the 
> stack right away and never again. This is how BSD IPv6 works.
> This makes it much easier on the driver.

But I don't think that's workable for PBUF_REF. You may only find deep down
that you need to queue it or copy it, and where it not for that you may not
need to. I think we should keep the existing behaviour of only copying pbufs
when they need to be queued (although it will be incumbent on the stack to
then mark the copy PBUF_RAM_NOCOPY so it isn't copied a further time).

This also avoids penalty for polled drivers that may not need separate
copying in the driver at all.


    _______________________________________________________

Reply to this item at:

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

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





reply via email to

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