summaryrefslogtreecommitdiffstats
path: root/stacks/lwip_stack/lwip_src/api/spl_api_msg.c
diff options
context:
space:
mode:
authoryalei wang <wylandrea@gmail.com>2019-04-03 12:01:09 +0000
committerGerrit Code Review <gerrit@fd.io>2019-04-03 12:01:09 +0000
commit1a18eec5affd1804d0648eaaeb3ce9fb1757a85e (patch)
tree19257cfcc939c43a354e3ffc388fb8d22b8028bc /stacks/lwip_stack/lwip_src/api/spl_api_msg.c
parentdb9dffb1beafa94b9341c9638887b1c6c8768377 (diff)
parentab0c198b32bebf85f88a241de8fab08f5653f90e (diff)
Merge "Fix: LWIP performance enhancement [iperf tool]"
Diffstat (limited to 'stacks/lwip_stack/lwip_src/api/spl_api_msg.c')
-rw-r--r--stacks/lwip_stack/lwip_src/api/spl_api_msg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/stacks/lwip_stack/lwip_src/api/spl_api_msg.c b/stacks/lwip_stack/lwip_src/api/spl_api_msg.c
index f437bce..b7ea24b 100644
--- a/stacks/lwip_stack/lwip_src/api/spl_api_msg.c
+++ b/stacks/lwip_stack/lwip_src/api/spl_api_msg.c
@@ -647,7 +647,7 @@ spl_sent_tcp (void *arg, struct tcp_pcb * pcb, u16_t len)
/* conn is already checked for NULL above with ASSERT */
/* If the queued byte- or pbuf-count drops below the configured low-water limit,
let select mark this pcb as writable again. */
- if (conn->snd_buf > TCP_SNDLOWAT)
+ if (pcb->snd_buf > TCP_SNDLOWAT)
{
conn->flags &= ~SPL_NETCONN_FLAG_CHECK_WRITESPACE;
if (((struct common_pcb *) conn->comm_pcb_data)->model == SOCKET_STACKX)