summaryrefslogtreecommitdiff
path: root/nuttx/include
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-01-13 14:40:21 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-01-13 14:40:21 -0600
commit7a538c3fed7116f35c6e681b6f0aac4eb5845c6b (patch)
tree2a11cd1c55e02f792697c17346d25e56f43ebd4a /nuttx/include
parent8553b9daaa2f000114822c57d3691f48fbe8f278 (diff)
downloadpx4-nuttx-7a538c3fed7116f35c6e681b6f0aac4eb5845c6b.tar.gz
px4-nuttx-7a538c3fed7116f35c6e681b6f0aac4eb5845c6b.tar.bz2
px4-nuttx-7a538c3fed7116f35c6e681b6f0aac4eb5845c6b.zip
Add configuration support for TCP Write Buffering
Diffstat (limited to 'nuttx/include')
-rw-r--r--nuttx/include/nuttx/net/uip/uipopt.h20
1 files changed, 19 insertions, 1 deletions
diff --git a/nuttx/include/nuttx/net/uip/uipopt.h b/nuttx/include/nuttx/net/uip/uipopt.h
index 6234ed40c..6e047feeb 100644
--- a/nuttx/include/nuttx/net/uip/uipopt.h
+++ b/nuttx/include/nuttx/net/uip/uipopt.h
@@ -294,7 +294,7 @@
# define CONFIG_NET_NTCP_READAHEAD_BUFFERS 4
# endif
- /* The size of the TCP read buffer size */
+ /* The size of one TCP read buffer */
# ifndef CONFIG_NET_TCP_READAHEAD_BUFSIZE
# define CONFIG_NET_TCP_READAHEAD_BUFSIZE UIP_TCP_MSS
@@ -305,6 +305,24 @@
# undef CONFIG_NET_NTCP_READAHEAD_BUFFERS
#endif
+#ifdef CONFIG_NET_TCP_WRITE_BUFFERS
+ /* Number of TCP write buffers */
+
+# ifndef CONFIG_NET_NTCP_WRITE_BUFFERS
+# define CONFIG_NET_NTCP_WRITE_BUFFERS 1
+# endif
+
+ /* The size of one TCP write buffer */
+
+# ifndef CONFIG_NET_TCP_WRITE_BUFSIZE
+# define CONFIG_NET_TCP_WRITE_BUFSIZE UIP_TCP_MSS
+# endif
+
+#else
+# undef CONFIG_NET_TCP_WRITE_BUFSIZE
+# undef CONFIG_NET_NTCP_WRITE_BUFFERS
+#endif
+
/* Delay after receive to catch a following packet. No delay should be
* required if TCP/IP read-ahead buffering is enabled.
*/