Skip to content

Commit 074976b

Browse files
adigierlubos
authored andcommitted
doc: openthread: add section on message pool configuration
Add section on openthread message pool configuration. Signed-off-by: Adrian Gielniewski <[email protected]>
1 parent 71ebb97 commit 074976b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

doc/nrf/protocols/thread/configuring.rst

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,22 @@ See the following files for more options that you might want to change:
9898
.. note::
9999
You can find the default configuration for all :ref:`openthread_samples` in the :file:`nrf/subsys/net/openthread/Kconfig.defconfig` file.
100100

101+
.. _thread_configuring_messagepool:
102+
103+
Message pool configuration
104+
**************************
105+
106+
OpenThread uses a message pool to manage memory for message buffers.
107+
Memory for the message pool can be statically allocated by the OpenThread stack or managed by the platform.
108+
You can use the :kconfig:option:`CONFIG_OPENTHREAD_PLATFORM_MESSAGE_MANAGEMENT` Kconfig option to enable platform message management.
109+
110+
Message buffer size and number of message buffers in the pool are be configured with the :kconfig:option:`CONFIG_OPENTHREAD_MESSAGE_BUFFER_SIZE` and :kconfig:option:`CONFIG_OPENTHREAD_NUM_MESSAGE_BUFFERS` Kconfig options, respectively.
111+
By default, both options are set to ``128``.
112+
113+
.. note::
114+
When using :ref:`thread_ug_prebuilt`, changing the :kconfig:option:`CONFIG_OPENTHREAD_PLATFORM_MESSAGE_MANAGEMENT` Kconfig option will have no effect.
115+
Additionally, the :kconfig:option:`CONFIG_OPENTHREAD_MESSAGE_BUFFER_SIZE` Kconfig option has to be set to the same value that is used in the pre-built library.
116+
101117
.. _thread_ug_thread_specification_options:
102118

103119
Thread Specification options

0 commit comments

Comments
 (0)