Skip to content

Commit 80f7124

Browse files
JordanYateskartben
authored andcommitted
samples: net: zperf: fix NRF_WIFI_DATA_HEAP_SIZE
Commit e33d9ee incorrectly stated that: > Now that nRF70 by default uses zero-copy fine-tune the configuration to get optimal memory while getting peak throughputs. This is incorrect since `NRF_WIFI_ZERO_COPY_TX` is only enabled by default for the nRF54L series. Update the data heap size so that the smaller value is only used when `NRF_WIFI_ZERO_COPY_TX` is enabled. Signed-off-by: Jordan Yates <[email protected]>
1 parent 8638559 commit 80f7124

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

samples/net/zperf/Kconfig

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
# Copyright 2023 NXP
22
# SPDX-License-Identifier: Apache-2.0
33

4-
source "Kconfig.zephyr"
5-
64
config NET_SAMPLE_CODE_RELOCATE
75
bool "Relocate networking code into RAM"
86
select CODE_DATA_RELOCATION
@@ -27,3 +25,9 @@ if USB_DEVICE_STACK_NEXT
2725
# tree, you cannot use them in your own application.
2826
source "samples/subsys/usb/common/Kconfig.sample_usbd"
2927
endif
28+
29+
configdefault NRF_WIFI_DATA_HEAP_SIZE
30+
default 30000 if NRF_WIFI_ZERO_COPY_TX
31+
default 50000
32+
33+
source "Kconfig.zephyr"

samples/net/zperf/boards/nrf7002dk_nrf5340_cpuapp.conf

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ CONFIG_NET_PKT_TX_COUNT=28
44
CONFIG_NET_BUF_RX_COUNT=28
55
CONFIG_NET_BUF_TX_COUNT=28
66
CONFIG_NRF70_RX_NUM_BUFS=16
7-
CONFIG_NRF_WIFI_DATA_HEAP_SIZE=30000
87
CONFIG_NET_PKT_BUF_TX_DATA_POOL_SIZE=20000
98
CONFIG_NRF70_MAX_TX_AGGREGATION=4
109
CONFIG_NRF70_QSPI_LOW_POWER=n

0 commit comments

Comments
 (0)