forked from zephyrproject-rtos/zephyr
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
samples: zperf: Port to native IP stack
Port the zperf network performance tool to native IP stack. TCP support is missing from this version. Change-Id: I2648e7d81014bb0cae8cf50854b0ae5f89a6567c Signed-off-by: Jukka Rissanen <[email protected]>
- Loading branch information
Showing
20 changed files
with
1,679 additions
and
725 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
BOARD = galileo | ||
BOARD ?= qemu_x86 | ||
#BOARD ?= frdm_k64f | ||
|
||
ifeq (${PROFILER}, 1) | ||
PROF="_prof" | ||
endif | ||
|
||
CONF_FILE = prj_galileo_ethernet${PROF}.conf | ||
MDEF_FILE = prj${PROF}.mdef | ||
CONF_FILE ?= prj_${BOARD}${PROF}.conf | ||
|
||
include ${ZEPHYR_BASE}/Makefile.inc | ||
include $(ZEPHYR_BASE)/samples/net/common/Makefile.ipstack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
CONFIG_NETWORKING=y | ||
CONFIG_NET_LOG=y | ||
CONFIG_NET_IPV6=y | ||
CONFIG_NET_IPV4=y | ||
CONFIG_NET_DHCPV4=n | ||
CONFIG_NET_UDP=y | ||
CONFIG_NET_TCP=n | ||
CONFIG_NET_STATISTICS=y | ||
|
||
CONFIG_NET_NBUF_RX_COUNT=100 | ||
CONFIG_NET_NBUF_TX_COUNT=100 | ||
CONFIG_NET_NBUF_DATA_COUNT=200 | ||
CONFIG_NET_NBUF_DATA_SIZE=128 | ||
CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=3 | ||
CONFIG_NET_IF_MCAST_IPV6_ADDR_COUNT=2 | ||
CONFIG_NET_IF_UNICAST_IPV4_ADDR_COUNT=2 | ||
CONFIG_NET_MAX_CONTEXTS=10 | ||
CONFIG_NET_CONTEXT_SYNC_RECV=y | ||
|
||
CONFIG_NANO_TIMEOUTS=y | ||
CONFIG_INIT_STACKS=y | ||
CONFIG_TEST_RANDOM_GENERATOR=y | ||
CONFIG_SYS_LOG_SHOW_COLOR=y | ||
CONFIG_PRINTK=y | ||
|
||
CONFIG_ETH_KSDK=y | ||
CONFIG_NET_L2_ETHERNET=y | ||
CONFIG_ETH_KSDK_0=y | ||
CONFIG_ETH_KSDK_0_MAC0=1 | ||
CONFIG_ETH_KSDK_0_MAC1=2 | ||
CONFIG_ETH_KSDK_0_MAC2=3 | ||
CONFIG_ETH_KSDK_0_MAC3=4 | ||
CONFIG_ETH_KSDK_0_MAC4=5 | ||
CONFIG_ETH_KSDK_0_MAC5=6 | ||
#CONFIG_ETH_KSDK_0_RANDOM_MAC=y | ||
|
||
CONFIG_NET_SHELL=y | ||
CONFIG_CONSOLE_HANDLER=y | ||
CONFIG_CONSOLE_HANDLER_SHELL=y | ||
CONFIG_ENABLE_SHELL=y | ||
CONFIG_PRINTK=y | ||
CONFIG_MINIMAL_LIBC_EXTENDED=y | ||
|
||
CONFIG_NET_SAMPLES_IP_ADDRESSES=y | ||
CONFIG_NET_SAMPLES_MY_IPV6_ADDR="2001:db8::1" | ||
CONFIG_NET_SAMPLES_PEER_IPV6_ADDR="2001:db8::2" | ||
CONFIG_NET_SAMPLES_MY_IPV4_ADDR="192.0.2.1" | ||
CONFIG_NET_SAMPLES_PEER_IPV4_ADDR="192.0.2.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
CONFIG_NETWORKING=y | ||
CONFIG_NET_LOG=y | ||
CONFIG_NET_IPV6=y | ||
CONFIG_NET_IPV4=y | ||
CONFIG_NET_DHCPV4=y | ||
CONFIG_NET_YAIP=y | ||
CONFIG_NET_UDP=y | ||
CONFIG_NET_TCP=y | ||
CONFIG_NET_STATISTICS=y | ||
|
||
CONFIG_NET_NBUF_RX_COUNT=14 | ||
CONFIG_NET_NBUF_TX_COUNT=14 | ||
CONFIG_NET_NBUF_DATA_COUNT=30 | ||
CONFIG_NET_NBUF_DATA_SIZE=128 | ||
CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=5 | ||
CONFIG_NET_IF_MCAST_IPV6_ADDR_COUNT=5 | ||
CONFIG_NET_IF_UNICAST_IPV4_ADDR_COUNT=2 | ||
CONFIG_NET_MAX_CONTEXTS=10 | ||
|
||
CONFIG_NANO_TIMEOUTS=y | ||
CONFIG_INIT_STACKS=y | ||
CONFIG_TEST_RANDOM_GENERATOR=y | ||
CONFIG_SYS_LOG_SHOW_COLOR=y | ||
CONFIG_PRINTK=y | ||
|
||
CONFIG_ETH_KSDK=y | ||
CONFIG_NET_L2_ETHERNET=y | ||
CONFIG_ETH_KSDK_0=y | ||
CONFIG_ETH_KSDK_0_MAC0=1 | ||
CONFIG_ETH_KSDK_0_MAC1=2 | ||
CONFIG_ETH_KSDK_0_MAC2=3 | ||
CONFIG_ETH_KSDK_0_MAC3=4 | ||
CONFIG_ETH_KSDK_0_MAC4=5 | ||
CONFIG_ETH_KSDK_0_MAC5=6 | ||
CONFIG_ETH_KSDK_0_RANDOM_MAC=y | ||
|
||
CONFIG_NET_SHELL=y | ||
|
||
# | ||
# Profiler | ||
# | ||
CONFIG_RING_BUFFER=y | ||
CONFIG_NANO_TIMEOUTS=y | ||
CONFIG_KERNEL_EVENT_LOGGER=y | ||
CONFIG_KERNEL_EVENT_LOGGER_BUFFER_SIZE=10000 | ||
CONFIG_KERNEL_EVENT_LOGGER_CONTEXT_SWITCH=y | ||
CONFIG_KERNEL_EVENT_LOGGER_INTERRUPT=y | ||
CONFIG_KERNEL_EVENT_LOGGER_DYNAMIC=y | ||
CONFIG_MINIMAL_LIBC_EXTENDED=y |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
CONFIG_NETWORKING=y | ||
CONFIG_NET_LOG=y | ||
CONFIG_NET_IPV6=y | ||
CONFIG_NET_IPV4=y | ||
CONFIG_NET_DHCPV4=n | ||
CONFIG_NET_YAIP=y | ||
CONFIG_NET_UDP=y | ||
CONFIG_NET_TCP=n | ||
CONFIG_NET_STATISTICS=y | ||
|
||
CONFIG_NET_NBUF_RX_COUNT=14 | ||
CONFIG_NET_NBUF_TX_COUNT=14 | ||
CONFIG_NET_NBUF_DATA_COUNT=28 | ||
CONFIG_NET_NBUF_DATA_SIZE=512 | ||
CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=5 | ||
CONFIG_NET_IF_MCAST_IPV6_ADDR_COUNT=5 | ||
CONFIG_NET_IF_UNICAST_IPV4_ADDR_COUNT=1 | ||
CONFIG_NET_MAX_CONTEXTS=3 | ||
CONFIG_NET_CONTEXT_SYNC_RECV=y | ||
|
||
CONFIG_NANO_TIMEOUTS=y | ||
CONFIG_INIT_STACKS=y | ||
CONFIG_TEST_RANDOM_GENERATOR=y | ||
CONFIG_SYS_LOG_SHOW_COLOR=y | ||
|
||
CONFIG_NET_SLIP=y | ||
CONFIG_NET_SLIP_TAP=y | ||
CONFIG_NET_L2_ETHERNET=y | ||
CONFIG_NET_SHELL=y | ||
|
||
CONFIG_CONSOLE_HANDLER=y | ||
CONFIG_CONSOLE_HANDLER_SHELL=y | ||
CONFIG_ENABLE_SHELL=y | ||
CONFIG_PRINTK=y | ||
CONFIG_MINIMAL_LIBC_EXTENDED=y | ||
|
||
CONFIG_NET_SAMPLES_IP_ADDRESSES=y | ||
CONFIG_NET_SAMPLES_MY_IPV6_ADDR="2001:db8::1" | ||
CONFIG_NET_SAMPLES_PEER_IPV6_ADDR="2001:db8::2" | ||
CONFIG_NET_SAMPLES_MY_IPV4_ADDR="192.0.2.1" | ||
CONFIG_NET_SAMPLES_PEER_IPV4_ADDR="192.0.2.2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
CONFIG_NETWORKING=y | ||
CONFIG_NET_LOG=y | ||
CONFIG_NET_IPV6=y | ||
CONFIG_NET_IPV4=n | ||
CONFIG_NET_UDP=y | ||
CONFIG_NET_TCP=n | ||
CONFIG_NET_STATISTICS=y | ||
|
||
CONFIG_NET_NBUF_RX_COUNT=100 | ||
CONFIG_NET_NBUF_TX_COUNT=100 | ||
CONFIG_NET_NBUF_DATA_COUNT=100 | ||
CONFIG_NET_IF_UNICAST_IPV6_ADDR_COUNT=3 | ||
CONFIG_NET_IF_MCAST_IPV6_ADDR_COUNT=2 | ||
CONFIG_NET_MAX_CONTEXTS=10 | ||
CONFIG_NET_CONTEXT_SYNC_RECV=y | ||
|
||
CONFIG_NANO_TIMEOUTS=y | ||
CONFIG_ARC_INIT=n | ||
CONFIG_INIT_STACKS=y | ||
CONFIG_TEST_RANDOM_GENERATOR=y | ||
CONFIG_SYS_LOG_SHOW_COLOR=y | ||
CONFIG_PRINTK=y | ||
|
||
CONFIG_NET_L2_IEEE802154=y | ||
CONFIG_NET_L2_IEEE802154_ORFD=y | ||
CONFIG_NET_L2_IEEE802154_ORFD_PAN_ID=0xabcd | ||
CONFIG_NET_L2_IEEE802154_ORFD_CHANNEL=26 | ||
CONFIG_NET_L2_IEEE802154_FRAGMENT=y | ||
|
||
CONFIG_TI_CC2520=y | ||
|
||
CONFIG_NET_6LO=y | ||
CONFIG_NET_6LO_CONTEXT=y | ||
|
||
CONFIG_NET_SHELL=y | ||
CONFIG_CONSOLE_HANDLER=y | ||
CONFIG_CONSOLE_HANDLER_SHELL=y | ||
CONFIG_ENABLE_SHELL=y | ||
CONFIG_PRINTK=y | ||
CONFIG_MINIMAL_LIBC_EXTENDED=y | ||
|
||
CONFIG_NET_SAMPLES_IP_ADDRESSES=y | ||
CONFIG_NET_SAMPLES_MY_IPV6_ADDR="2001:db8::1" | ||
CONFIG_NET_SAMPLES_PEER_IPV6_ADDR="2001:db8::2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.