Commit 50ff91d
issue: 4315534 Remove TX buffer pre-allocation in LwIP
Pre-allocation was done only for PBUF_RAM buffers. Also, buffer
allocation can trigger TX polling in corner cases.
Removing the pre-allocated buffer avoids keeping extra buffer per
socket. This can save resources in case of large buffers and big number
of connections.
Signed-off-by: Dmytro Podgornyi <[email protected]>1 parent 4d5ec48 commit 50ff91d
3 files changed
+7
-36
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
972 | 972 | | |
973 | 973 | | |
974 | 974 | | |
975 | | - | |
976 | 975 | | |
977 | 976 | | |
978 | 977 | | |
| |||
1019 | 1018 | | |
1020 | 1019 | | |
1021 | 1020 | | |
1022 | | - | |
1023 | | - | |
1024 | | - | |
1025 | | - | |
1026 | 1021 | | |
1027 | 1022 | | |
1028 | 1023 | | |
1029 | 1024 | | |
1030 | 1025 | | |
1031 | 1026 | | |
1032 | 1027 | | |
1033 | | - | |
1034 | | - | |
1035 | | - | |
1036 | | - | |
1037 | | - | |
1038 | | - | |
1039 | | - | |
1040 | | - | |
1041 | | - | |
1042 | | - | |
1043 | | - | |
1044 | | - | |
1045 | | - | |
1046 | | - | |
1047 | | - | |
1048 | | - | |
1049 | | - | |
1050 | | - | |
| 1028 | + | |
| 1029 | + | |
| 1030 | + | |
1051 | 1031 | | |
1052 | 1032 | | |
1053 | | - | |
| 1033 | + | |
| 1034 | + | |
| 1035 | + | |
| 1036 | + | |
1054 | 1037 | | |
1055 | 1038 | | |
1056 | 1039 | | |
1057 | 1040 | | |
1058 | 1041 | | |
1059 | | - | |
1060 | 1042 | | |
1061 | 1043 | | |
1062 | 1044 | | |
1063 | 1045 | | |
1064 | 1046 | | |
1065 | 1047 | | |
1066 | | - | |
1067 | | - | |
1068 | | - | |
1069 | | - | |
1070 | | - | |
1071 | 1048 | | |
1072 | 1049 | | |
1073 | 1050 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
335 | 335 | | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
339 | 338 | | |
340 | 339 | | |
341 | 340 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1390 | 1390 | | |
1391 | 1391 | | |
1392 | 1392 | | |
1393 | | - | |
1394 | | - | |
1395 | | - | |
1396 | | - | |
1397 | | - | |
1398 | 1393 | | |
1399 | 1394 | | |
1400 | 1395 | | |
| |||
0 commit comments