Commit ae486f5
committed
samples: net: wifi: shell: tune buffer and stack sizes for frdm_imx91
Increase network buffer size and stack sizes for frdm_imx91/mimx9131
to stabilize TCP/UDP traffic (zperf) on 5GHz Wi-Fi:
- Set NET_BUF_DATA_SIZE=1600 to fix TCP RX crash caused by net_buf
being too small to hold a TCP segment (default is 128 bytes).
Note: NET_PKT/BUF RX/TX counts are already set to sufficient values
in overlay_iw610.conf and do not need to be overridden here.
- Add ZPERF_WORK_Q_STACK_SIZE=8192 to fix zperf_work_q stack overflow
during TCP TX.
- Increase NXP Wi-Fi task stack sizes (TX/CORE/SCAN/MON/POWERSAVE/
DRIVER/WLCMGR) to prevent stack sentinel triggers.
- Increase NET_TX_STACK_SIZE and NET_RX_STACK_SIZE to 16384 to fix
intermittent TCP TX crash (work->queue == NULL assert).
- Increase NET_MGMT_EVENT_STACK_SIZE to 16384 and SHELL_STACK_SIZE
to 16384 for stability.
Signed-off-by: Li Long <li.long@nxp.com>1 parent a982b9f commit ae486f5
1 file changed
Lines changed: 17 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
30 | 33 | | |
31 | 34 | | |
32 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
33 | 38 | | |
34 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
35 | 47 | | |
36 | | - | |
37 | 48 | | |
38 | | - | |
| 49 | + | |
| 50 | + | |
39 | 51 | | |
40 | 52 | | |
41 | 53 | | |
0 commit comments