Skip to content

Commit e860dbf

Browse files
D-Trivenikrish2718
authored andcommitted
[nrf fromlist] drivers: wifi: nrfwifi: Enable variable network configurations
Add variable network configuration control into the driver, removing the need for per-sample settings. Upstream PR: zephyrproject-rtos/zephyr#78852 Signed-off-by: Triveni Danda <[email protected]>
1 parent 9b2bfc9 commit e860dbf

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

drivers/wifi/nrfwifi/Kconfig.nrfwifi

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -570,6 +570,42 @@ config NET_TC_TX_COUNT
570570

571571
endif # NETWORKING
572572

573+
choice NRF_WIFI_NET_BUF_DATA_ALLOC_TYPE
574+
prompt "Network buffer type"
575+
default NRF_WIFI_NET_BUF_VARIABLE_SIZE
576+
help
577+
This choice overrides NET_PKT_DATA_ALLOC_TYPE, which is
578+
defined in the network stack.
579+
580+
config NRF_WIFI_NET_BUF_VARIABLE_SIZE
581+
bool "Variable Data Size"
582+
help
583+
Use variable network buffer sizes for packet buffers.
584+
585+
config NRF_WIFI_NET_BUF_FIXED_SIZE
586+
bool "Fixed Data Size"
587+
help
588+
Use fixed data sizes for packet buffers.
589+
590+
endchoice
591+
592+
if NRF_WIFI_NET_BUF_VARIABLE_SIZE
593+
# These numbers were derived from tests using specific configurations for TCP and UDP
594+
# with variable data sizes. We adjusted pool sizes to match throughput levels from
595+
# previous fixed data tests.
596+
597+
choice NET_PKT_DATA_ALLOC_TYPE
598+
default NET_BUF_VARIABLE_DATA_SIZE
599+
endchoice
600+
601+
config NET_PKT_BUF_RX_DATA_POOL_SIZE
602+
default 32000
603+
604+
config NET_PKT_BUF_TX_DATA_POOL_SIZE
605+
default 55000
606+
607+
endif # NRF_WIFI_NET_BUF_VARIABLE_SIZE
608+
573609
config MAIN_STACK_SIZE
574610
default 4096
575611

0 commit comments

Comments
 (0)