Skip to content

Commit

Permalink
samples: wifi: shell: Enable variable net buffer settings
Browse files Browse the repository at this point in the history
This change is to optimize RAM usage.
Enable variable network buffer settings and also
resize memory pool sizes of TX and RX for optimized throughput.

Fixes SHEL-2702.

Signed-off-by: Triveni Danda <triveni.danda@nordicsemi.no>
  • Loading branch information
D-Triveni committed Aug 7, 2024
1 parent 88b0fa1 commit 75cf15b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions drivers/wifi/nrf700x/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,14 @@ config NET_TC_TX_COUNT

endif # NETWORKING

if NET_BUF_VARIABLE_DATA_SIZE
config NET_PKT_BUF_RX_DATA_POOL_SIZE
default 32000

config NET_PKT_BUF_TX_DATA_POOL_SIZE
default 55000
endif

# Override the Wi-Fi subsytems WIFI_MGMT_SCAN_SSID_FILT_MAX parameter,
# since we support a maximum of 2 SSIDs for scan result filtering.
config WIFI_MGMT_SCAN_SSID_FILT_MAX
Expand Down
1 change: 1 addition & 0 deletions samples/wifi/shell/overlay-zperf.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ CONFIG_NET_BUF_RX_COUNT=30
CONFIG_NET_BUF_TX_COUNT=58
CONFIG_HEAP_MEM_POOL_SIZE=230000
CONFIG_NET_BUF_DATA_SIZE=1100
CONFIG_NET_BUF_VARIABLE_DATA_SIZE=y
CONFIG_NRF700X_QSPI_LOW_POWER=n
# To enable optimization configuration options
CONFIG_PICOLIBC_USE_MODULE=y
Expand Down

0 comments on commit 75cf15b

Please sign in to comment.