Net: First bug fixes for modified write buffer logic

This commit is contained in:
Gregory Nutt 2014-06-22 13:34:09 -06:00
parent 356d25b503
commit 82dbbb05b6
3 changed files with 11 additions and 1 deletions

View File

@ -7461,4 +7461,7 @@
* tools/mkfsdata.pl: Apparently, the trailing the 0x00 in http server * tools/mkfsdata.pl: Apparently, the trailing the 0x00 in http server
files is seen as a bug in javascript and images. From Max/Himax files is seen as a bug in javascript and images. From Max/Himax
(2014-6-19). (2014-6-19).
* net/ and include/nutt/net (many files): Conversion of the TCP
write buffering logic to use I/O buffer chains (not tested on initial
check-in) (2014-6-22).

View File

@ -665,7 +665,7 @@ ssize_t psock_send(FAR struct socket *psock, FAR const void *buf, size_t len,
} }
else else
{ {
FAR struct tcp_wrbuffer_s *wrb = tcp_wrbuffer_alloc(); FAR struct tcp_wrbuffer_s *wrb;
/* Set up the callback in the connection */ /* Set up the callback in the connection */
@ -690,6 +690,7 @@ ssize_t psock_send(FAR struct socket *psock, FAR const void *buf, size_t len,
*/ */
sq_addlast(&wrb->wb_node, &conn->write_q); sq_addlast(&wrb->wb_node, &conn->write_q);
nvdbg("Queued WRB=%p pktlen=%d\n", wrb, WRB_PKTLEN(wrb));
/* Notify the device driver of the availability of TX data */ /* Notify the device driver of the availability of TX data */

View File

@ -105,6 +105,12 @@ void net_initialize(void)
uip_initialize(); uip_initialize();
/* Initialize I/O buffering */
#ifdef CONFIG_NET_IOB
iob_initialize();
#endif
#ifdef CONFIG_NET_ROUTE #ifdef CONFIG_NET_ROUTE
/* Initialize the routing table */ /* Initialize the routing table */