lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #44805] sendmsg implementation to support scatter/gath


From: Simon Goldschmidt
Subject: [lwip-devel] [bug #44805] sendmsg implementation to support scatter/gather IO
Date: Mon, 27 Apr 2015 18:19:09 +0000
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/42.0.2311.90 Safari/537.36

Update of bug #44805 (project lwip):

                  Status:                 Invalid => None                   

    _______________________________________________________

Follow-up Comment #3:

> I based the UDP support on how sendto() is implemented.

Ok, good point. Checking back on the multiple discussions we had about zero
copy, it seems like PBUF_REF is only zero-copy for non-DMA (i.e. non-delayed)
transmission. When you have a netif that enqueues data for sending (like
DMA-enabled interfaces would normally do), only PBUF_ROM allows true
zero-copy. PBUF_REF has to be copied to temporary buffers to prevent the
buffer being altered after netif->linkoutput returns.

I'm not too sure how wide this knowledge is spread around netif driver
developers, though... It seems like there is room for improvement in
documenting this.

Given that, the implementation looks correct.

BTW: why did you ifdef 'iovec' but not 'msghdr'?

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?44805>

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




reply via email to

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