From 18d1d3fdf898fcf87c8f601e0b1c3dcd2b3a8f0e Mon Sep 17 00:00:00 2001 From: Adrian Gielniewski Date: Tue, 19 Nov 2024 14:59:12 +0100 Subject: [PATCH] [nrf toup] config: Add Kconfig for packet buffer pool size Add `CHIP_SYSTEM_PACKETBUFFER_POOL_SIZE` Kconfig for packet buffer pool size configuration. Signed-off-by: Adrian Gielniewski --- config/nrfconnect/chip-module/Kconfig | 6 ++++++ src/platform/nrfconnect/SystemPlatformConfig.h | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/config/nrfconnect/chip-module/Kconfig b/config/nrfconnect/chip-module/Kconfig index 3acb08091c..53c64f73e2 100644 --- a/config/nrfconnect/chip-module/Kconfig +++ b/config/nrfconnect/chip-module/Kconfig @@ -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 15 + help + Total number of packet buffers. + endif # CHIP diff --git a/src/platform/nrfconnect/SystemPlatformConfig.h b/src/platform/nrfconnect/SystemPlatformConfig.h index a82ce0e35d..a9076f1c10 100644 --- a/src/platform/nrfconnect/SystemPlatformConfig.h +++ b/src/platform/nrfconnect/SystemPlatformConfig.h @@ -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