Skip to content

Commit c717e7d

Browse files
Few fixes
1 parent f9e6253 commit c717e7d

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

connectivity/netsocket/include/netsocket/NetStackMemoryManager.h

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,7 @@ class NetStackMemoryManager {
100100
/**
101101
* Get memory buffer pool size.
102102
*
103-
* Returns the maximum size of contiguous memory that can be allocated from a pool.
104-
*
105-
* @param align Memory alignment requirement in bytes
106-
* @return Contiguous memory size
103+
* @return The maximum size of contiguous memory that can be allocated from a pool.
107104
*/
108105
virtual uint32_t get_pool_size() const = 0;
109106

@@ -222,7 +219,7 @@ class NetStackMemoryManager {
222219
* The allocated payload size will not change. It is not permitted
223220
* to change the length of a buffer that is not the first (or only) in a chain.
224221
*
225-
* *Note as of Dec 2024: Different implementations (nanostack vs LwIP) disagree about
222+
* *Note as of Dec 2024: Different implementations (Nanostack vs LwIP) disagree about
226223
* how to implement this operation. Specifically, if called on the head of a buffer
227224
* chain, the LwIP implementation allows changing the length of the chain as a whole.
228225
* However, the Nanostack implementation does not and only can change the length of the head buffer.

connectivity/netsocket/mbed_lib.json5

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@
8080
},
8181
"emac-rx-pool-buf-size": {
8282
"help": "Size of buffers in the EMAC receive pool. This determines the 'granularity' of allocations that are made for the Ethernet receive pool. Making this larger (up to the Ethernet MTU of 1536) will make receiving large packets more performant, but waste more buffer memory when receiving small packets.",
83-
"value": 592 // LwIP default value (assuming default
83+
"value": 592 // LwIP default value (assuming default TCP MSS)
8484
},
8585
"emac-rx-pool-num-bufs": {
8686
"help": "Number of buffers (of size netsocket.emac-rx-pool-buf-size) in the EMAC receive pool. This controls how much memory is preallocated for Ethernet reception. A larger number means that more Ethernet packets can be received per second without dropping any. Some EMACs need up to 4 extra buffers, so this should be set such that this value minus 4 times the buffer size is at least 1514 (so we can receive one full Ethernet frame).",

tools/test/ci/doxy-spellchecker/ignore.en.pws

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,4 @@ MSBit
132132
LSBit
133133
busses
134134
STMicro
135+
Nanostack

0 commit comments

Comments
 (0)