lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #49914] lwip_sendmsg uses PBUF_REF pbufs


From: Joel Cunningham
Subject: [lwip-devel] [bug #49914] lwip_sendmsg uses PBUF_REF pbufs
Date: Fri, 23 Dec 2016 05:20:32 +0000 (UTC)
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/602.2.14 (KHTML, like Gecko) Version/10.0.1 Safari/602.2.14

Follow-up Comment #1, bug #49914 (project lwip):

Dirk,

The sendmsg implementation follows the normal UDP sendto case, which also uses
PBUF_REF and does not copy the data.  The function netbuf_ref (called from
lwip_sendto) does the same thing sendmsg is doing; allocate a PBUF_REF and
reference the data

To my knowledge, the netif output function is responsible for copying the
pbuf/data if it needs to perform an asynchronous output of the pbuf.  This
seems like the preferable approach to me because other netifs that perform
synchronous output aren't penalized with this extra memory copy

I'd prefer this fix be reverted as it will reduce the performance in my use
case and is not consistent with the UDP sendto case

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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