lwip-devel
[Top][All Lists]
Advanced

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

[lwip-devel] [bug #50694] TX exist more pbufs after enable LWIP_NETIF_TX


From: Simon Goldschmidt
Subject: [lwip-devel] [bug #50694] TX exist more pbufs after enable LWIP_NETIF_TX_SINGLE_PBUF
Date: Mon, 24 Apr 2017 15:07:45 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36

Follow-up Comment #5, bug #50694 (project lwip):

To ensure linkoutput gets only packets in one piece, you can always add this
to your driver:

if (p->next != NULL) {
  struct pbuf *q = pbuf_coalesce(p, PBUF_RAW_TX);
  if (q == p) {
    /* memory error */
    return ERR_MEM;
  }
  pbuf_free(p);
  p = q;
}
/* go on sending single-pbuf */

This handles future error cases, too.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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