Skip to content

Commit

Permalink
[nrf toup] config: Add Kconfig for packet buffer pool size
Browse files Browse the repository at this point in the history
Add `CHIP_SYSTEM_PACKETBUFFER_POOL_SIZE` Kconfig for packet buffer pool
size configuration.

Signed-off-by: Adrian Gielniewski <[email protected]>

[nrf toup] config: Reduce packet buffer pool size to 11

Value selected based on top usage in tests. Highest observed number of
packet buffers was 10.

Signed-off-by: Adrian Gielniewski <[email protected]>
  • Loading branch information
adigie authored and jukkar committed Dec 13, 2024
1 parent 20babbe commit d218a95
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions config/nrfconnect/chip-module/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -450,4 +450,10 @@ config CHIP_ENABLE_BDX_LOG_TRANSFER
help
Enables the BDX protocol for diagnostics log transfer purposes.

config CHIP_SYSTEM_PACKETBUFFER_POOL_SIZE
int "Packet buffer pool size"
default 11
help
Total number of packet buffers allocated by the stack for internal pool.

endif # CHIP
2 changes: 1 addition & 1 deletion src/platform/nrfconnect/SystemPlatformConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ struct ChipDeviceEvent;
#define CHIP_SYSTEM_CONFIG_USE_SOCKETS 1

#ifndef CONFIG_ARCH_POSIX
#define CHIP_SYSTEM_CONFIG_PACKETBUFFER_POOL_SIZE 15
#define CHIP_SYSTEM_CONFIG_PACKETBUFFER_POOL_SIZE CONFIG_CHIP_SYSTEM_PACKETBUFFER_POOL_SIZE
#endif

#ifndef CHIP_SYSTEM_CONFIG_PACKETBUFFER_CAPACITY_MAX
Expand Down

0 comments on commit d218a95

Please sign in to comment.