mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2024-11-04 14:29:39 +00:00
task #7013 (Create option to have all packets delivered to netif->output in one piece): Always copy to try to create single pbufs in tcp_write.
This commit is contained in:
parent
f5b783d107
commit
92beddd72f
@ -13,6 +13,11 @@ HISTORY
|
||||
|
||||
++ New features:
|
||||
|
||||
2010-03-06: Simon Goldschmidt
|
||||
* tcp_out.c: task #7013 (Create option to have all packets delivered to
|
||||
netif->output in one piece): Always copy to try to create single pbufs
|
||||
in tcp_write.
|
||||
|
||||
2010-03-06: Simon Goldschmidt
|
||||
* api.h, api_lib.c, sockets.c: task #10167 (sockets: speed up TCP recv
|
||||
by not allocating a netbuf): added function netconn_recv_tcp_pbuf()
|
||||
|
@ -241,6 +241,11 @@ tcp_write(struct tcp_pcb *pcb, const void *arg, u16_t len, u8_t apiflags)
|
||||
u16_t oversize_used = 0;
|
||||
#endif /* TCP_OVERSIZE */
|
||||
|
||||
#if LWIP_NETIF_TX_SINGLE_PBUF
|
||||
/* Always copy to try to create single pbufs for TX */
|
||||
apiflags |= TCP_WRITE_FLAG_COPY;
|
||||
#endif /* LWIP_NETIF_TX_SINGLE_PBUF */
|
||||
|
||||
LWIP_DEBUGF(TCP_OUTPUT_DEBUG, ("tcp_write(pcb=%p, data=%p, len=%"U16_F", apiflags=%"U16_F")\n",
|
||||
(void *)pcb, arg, len, (u16_t)apiflags));
|
||||
/* connection is in invalid state for data transmission? */
|
||||
|
Loading…
Reference in New Issue
Block a user