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: Fri, 24 Apr 2015 19:36:54 +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:                    None => Invalid                

    _______________________________________________________

Follow-up Comment #1:

I'm afraid the code won't work. The reason is that you removed memory copies
(using netbuf_ref, not copying the data into the netbuf).

You simply can't expect all data being sent when netconn_send() returns. This
is because you might have a DMA-capable netif that puts packets on a tx list
in 'linkoutput' and because the application thread might have a higher
priority than lwIP.

Summing it up, to implement zero-copy TX from sockets, you would have to let
the application thread wait for a transmit-confirmation from the netif driver
(e.g. the point where pbuf_free() is being called for the TX pbufs). If we had
that, we could use sendto() and modify it to send the data by reference
instead of copying it.

    _______________________________________________________

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]