LWIP_NETIF_TX_SINGLE_PBUF is only used within LwIP.
 
Symbols
loading...
Files
loading...

LWIP_NETIF_TX_SINGLE_PBUF macro

LWIP_NETIF_TX_SINGLE_PBUF: if this is set to 1, lwIP *tries* to put all data to be sent into one single pbuf. This is for compatibility with DMA-enabled MACs that do not support scatter-gather. Beware that this might involve CPU-memcpy before transmitting that would not be needed without this flag! Use this only if you need to! ATTENTION: a driver should *NOT* rely on getting single pbufs but check TX pbufs for being in one piece. If not, pbuf_clone can be used to get a single pbuf: if (p->next != NULL) { struct pbuf *q = pbuf_clone(PBUF_RAW, PBUF_RAM, p); if (q == NULL) { return ERR_MEM; } p = q; ATTENTION: do NOT free the old 'p' as the ref belongs to the caller! }

Syntax

#define LWIP_NETIF_TX_SINGLE_PBUF 0

References

LocationText
opt.h:1658
#define LWIP_NETIF_TX_SINGLE_PBUF 0
init.c:229
#if LWIP_TCP && LWIP_NETIF_TX_SINGLE_PBUF && !TCP_OVERSIZE
ip4_frag.c:696
#if !LWIP_NETIF_TX_SINGLE_PBUF
ip4_frag.c:743
#if !LWIP_NETIF_TX_SINGLE_PBUF
ip4_frag.c:778
#if LWIP_NETIF_TX_SINGLE_PBUF
ip4_frag.h:76
#if !LWIP_NETIF_TX_SINGLE_PBUF
memp_std.h:62
#if (IP_FRAG && !LWIP_NETIF_TX_SINGLE_PBUF) || (LWIP_IPV6 && LWIP_IPV6_FRAG)
pbuf.h:55
#define LWIP_SUPPORT_CUSTOM_PBUF ((IP_FRAG && !LWIP_NETIF_TX_SINGLE_PBUF) || (LWIP_IPV6 && LWIP_IPV6_FRAG))
sockets.c:1486
#if LWIP_NETIF_TX_SINGLE_PBUF
sockets.c:1644
#if LWIP_NETIF_TX_SINGLE_PBUF
tcp_out.c:235
#if LWIP_NETIF_TX_SINGLE_PBUF
tcp_out.c:422
#if LWIP_NETIF_TX_SINGLE_PBUF
tcp_out.c:515
#if !LWIP_NETIF_TX_SINGLE_PBUF