summaryrefslogtreecommitdiff
path: root/nuttx/net/tcp/tcp_wrbuffer.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-06-24 11:53:19 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-06-24 11:53:19 -0600
commitf3dedc6824c81f3b0eee8b618d02d5bcaebf8aa1 (patch)
tree75feaf208513a84be8ecf8b81f9f76f08dac8768 /nuttx/net/tcp/tcp_wrbuffer.c
parent66449463c477bdda578554a8c3d8e6802905337f (diff)
downloadpx4-nuttx-f3dedc6824c81f3b0eee8b618d02d5bcaebf8aa1.tar.gz
px4-nuttx-f3dedc6824c81f3b0eee8b618d02d5bcaebf8aa1.tar.bz2
px4-nuttx-f3dedc6824c81f3b0eee8b618d02d5bcaebf8aa1.zip
Add throttle support to the I/O buffer logic
Diffstat (limited to 'nuttx/net/tcp/tcp_wrbuffer.c')
-rw-r--r--nuttx/net/tcp/tcp_wrbuffer.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/nuttx/net/tcp/tcp_wrbuffer.c b/nuttx/net/tcp/tcp_wrbuffer.c
index 21da66cb0..df73fb049 100644
--- a/nuttx/net/tcp/tcp_wrbuffer.c
+++ b/nuttx/net/tcp/tcp_wrbuffer.c
@@ -128,6 +128,9 @@ void tcp_wrbuffer_initialize(void)
* the free list. This function is called from TCP logic when a buffer
* of TCP data is about to sent
*
+ * Input parameters:
+ * None
+ *
* Assumptions:
* Called from user logic with interrupts enabled.
*
@@ -157,7 +160,7 @@ FAR struct tcp_wrbuffer_s *tcp_wrbuffer_alloc(void)
/* Now get the first I/O buffer for the write buffer structure */
- wrb->wb_iob = iob_alloc();
+ wrb->wb_iob = iob_alloc(false);
if (!wrb->wb_iob)
{
ndbg("ERROR: Failed to allocate I/O buffer\n");