Skip to content

Commit

Permalink
[nrf fromlist] drivers: wifi: nrfwifi: Enable variable network config…
Browse files Browse the repository at this point in the history
…urations

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 <triveni.danda@nordicsemi.no>
  • Loading branch information
D-Triveni authored and krish2718 committed Oct 21, 2024
1 parent 4a72e76 commit 9685c17
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions drivers/wifi/nrfwifi/Kconfig.nrfwifi
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,42 @@ config NET_TC_TX_COUNT

endif # NETWORKING

choice NRF_WIFI_NET_BUF_DATA_ALLOC_TYPE
prompt "Network buffer type"
default NRF_WIFI_NET_BUF_VARIABLE_SIZE
help
This choice overrides NET_PKT_DATA_ALLOC_TYPE, which is
defined in the network stack.

config NRF_WIFI_NET_BUF_VARIABLE_SIZE
bool "Variable Data Size"
help
Use variable network buffer sizes for packet buffers.

config NRF_WIFI_NET_BUF_FIXED_SIZE
bool "Fixed Data Size"
help
Use fixed data sizes for packet buffers.

endchoice

if NRF_WIFI_NET_BUF_VARIABLE_SIZE
# These numbers were derived from tests using specific configurations for TCP and UDP
# with variable data sizes. We adjusted pool sizes to match throughput levels from
# previous fixed data tests.

choice NET_PKT_DATA_ALLOC_TYPE
default NET_BUF_VARIABLE_DATA_SIZE
endchoice

config NET_PKT_BUF_RX_DATA_POOL_SIZE
default 32000

config NET_PKT_BUF_TX_DATA_POOL_SIZE
default 55000

endif # NRF_WIFI_NET_BUF_VARIABLE_SIZE

config MAIN_STACK_SIZE
default 4096

Expand Down

0 comments on commit 9685c17

Please sign in to comment.