aboutsummaryrefslogtreecommitdiffstats
path: root/stacks/lwip_stack/lwip_src
diff options
context:
space:
mode:
authorsharath <sharathkumarboyanapally@gmail.com>2019-02-06 20:28:09 +0530
committersharath <sharathkumarboyanapally@gmail.com>2019-02-11 14:21:34 +0530
commitab0c198b32bebf85f88a241de8fab08f5653f90e (patch)
treed819c1adec9cf81d9114f1bdde2df6e560821645 /stacks/lwip_stack/lwip_src
parent840dc98676773c027e699bd6efc3793118a5f1ef (diff)
Fix: LWIP performance enhancement [iperf tool]
Change-Id: I46b12bcb3e40ef7af4038e3ba456a4b20b658740 Signed-off-by: sharath <sharathkumarboyanapally@gmail.com>
Diffstat (limited to 'stacks/lwip_stack/lwip_src')
-rw-r--r--stacks/lwip_stack/lwip_src/api/spl_api_msg.c2
-rw-r--r--stacks/lwip_stack/lwip_src/common/stackxopts.h2
2 files changed, 2 insertions, 2 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)
diff --git a/stacks/lwip_stack/lwip_src/common/stackxopts.h b/stacks/lwip_stack/lwip_src/common/stackxopts.h
index 15fc6b8..04ff67d 100644
--- a/stacks/lwip_stack/lwip_src/common/stackxopts.h
+++ b/stacks/lwip_stack/lwip_src/common/stackxopts.h
@@ -48,6 +48,6 @@ extern struct memory_statics memory_used_size[80];
#define SPL_TCP_HLEN 20
#define SPL_TCP_MAX_OPTION_LEN 40
#define SPL_FRAME_MTU 1500
-#define SPL_TCP_SEND_MAX_SEG_PER_MSG 5
+#define SPL_TCP_SEND_MAX_SEG_PER_MSG 25
#endif