Primary Git Repository for the Zephyr Project. Zephyr is a new generation, scalable, optimized, secure RTOS for multiple hardware architectures.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

159 lines
4.5 KiB

# Native TAP ethernet driver configuration options
# Copyright (c) 2018 Intel Corporation
# SPDX-License-Identifier: Apache-2.0
menuconfig ETH_NATIVE_TAP
bool "Native TAP Ethernet driver"
depends on ARCH_POSIX
select ETH_NATIVE_POSIX_BACKWARDS_COMPAT_MENU
help
Enable native_sim TAP ethernet driver. Note, this driver is run inside
a process in your host system.
if ETH_NATIVE_TAP
config ETH_NATIVE_TAP_INTERFACE_COUNT
int "Number of network interfaces created"
default ETH_NATIVE_POSIX_INTERFACE_COUNT
range 1 32
help
By default only one network interface is created. It is possible
to create multiple interfaces in certain use cases. For example if
multiple ports are defined in gPTP or PTP, then multiple network interfaces
must be created here.
config ETH_NATIVE_TAP_DRV_NAME
string "Ethernet driver name"
default ETH_NATIVE_POSIX_DRV_NAME
help
This option sets the driver name and name of the network interface
in your host system. If there are multiple network interfaces defined,
then this value is used as a prefix and the interface names will be
zeth0, zeth1, etc.
config ETH_NATIVE_TAP_DEV_NAME
string "Host ethernet TUN/TAP device name"
default ETH_NATIVE_POSIX_DEV_NAME
help
This option sets the TUN/TAP device name in your host system.
config ETH_NATIVE_TAP_PTP_CLOCK
bool "PTP clock driver support"
default ETH_NATIVE_POSIX_PTP_CLOCK
select PTP_CLOCK
depends on NET_GPTP || PTP
help
Enable PTP clock support.
config ETH_NATIVE_TAP_RANDOM_MAC
bool "Random MAC address"
depends on ENTROPY_GENERATOR
default ETH_NATIVE_POSIX_RANDOM_MAC
help
Generate a random MAC address dynamically.
config ETH_NATIVE_TAP_VLAN_TAG_STRIP
bool "Strip VLAN tag from Rx frames"
default ETH_NATIVE_POSIX_VLAN_TAG_STRIP
depends on NET_VLAN
help
Native TAP ethernet driver will strip of VLAN tag from
Rx Ethernet frames and sets tag information in net packet
metadata.
config ETH_NATIVE_TAP_MAC_ADDR
string "MAC address for the interface"
default ETH_NATIVE_POSIX_MAC_ADDR
depends on !ETH_NATIVE_TAP_RANDOM_MAC
help
Specify a MAC address for the ethernet interface in the form of
six hex 8-bit chars separated by colons (e.g.:
aa:33:cc:22:e2:c0). The default is an empty string, which
means the code will make 00:00:5E:00:53:XX, where XX will be
random.
config ETH_NATIVE_TAP_RX_TIMEOUT
int "Ethernet RX timeout"
default ETH_NATIVE_POSIX_RX_TIMEOUT
range 1 100
help
Native TAP ethernet driver repeatedly checks for new data.
Specify how long the thread sleeps between these checks if no new data
available.
endif # ETH_NATIVE_TAP
config ETH_NATIVE_POSIX
bool "Native POSIX Ethernet driver (deprecated)"
depends on ARCH_POSIX
select DEPRECATED
select ETH_NATIVE_TAP
select ETH_NATIVE_POSIX_BACKWARDS_COMPAT_MENU
help
Deprecated, use ETH_NATIVE_TAP instead
menuconfig ETH_NATIVE_POSIX_BACKWARDS_COMPAT_MENU
bool "Native POSIX Ethernet driver options (deprecated)"
depends on ARCH_POSIX
if ETH_NATIVE_POSIX_BACKWARDS_COMPAT_MENU
config ETH_NATIVE_POSIX_INTERFACE_COUNT
int "Number of network interfaces created (deprecated)"
default NET_GPTP_NUM_PORTS if NET_GPTP
default PTP_NUM_PORTS if PTP
default 1
range 1 32
help
Deprecated, use ETH_NATIVE_TAP_INTERFACE_COUNT instead
config ETH_NATIVE_POSIX_DRV_NAME
string "Ethernet driver name (deprecated)"
default "zeth"
help
Deprecated, use ETH_NATIVE_TAP_DRV_NAME instead
config ETH_NATIVE_POSIX_DEV_NAME
string "Host ethernet TUN/TAP device name (deprecated)"
default "/dev/net/tun"
help
Deprecated, use ETH_NATIVE_TAP_DEV_NAME instead
config ETH_NATIVE_POSIX_PTP_CLOCK
bool "PTP clock driver support (deprecated)"
default y if NET_GPTP || PTP
depends on NET_GPTP || PTP
help
Deprecated, use ETH_NATIVE_TAP_PTP_CLOCK instead
config ETH_NATIVE_POSIX_RANDOM_MAC
bool "Random MAC address (deprecated)"
depends on ENTROPY_GENERATOR
default y
help
Deprecated, use ETH_NATIVE_TAP_RANDOM_MAC instead
config ETH_NATIVE_POSIX_VLAN_TAG_STRIP
bool "Strip VLAN tag from Rx frames (deprecated)"
depends on NET_VLAN
help
Deprecated, use ETH_NATIVE_TAP_VLAN_TAG_STRIP instead
config ETH_NATIVE_POSIX_MAC_ADDR
string "MAC address for the interface (deprecated)"
default ""
depends on !ETH_NATIVE_POSIX_RANDOM_MAC
help
Deprecated, use ETH_NATIVE_TAP_MAC_ADDR instead
config ETH_NATIVE_POSIX_RX_TIMEOUT
int "Ethernet RX timeout (deprecated)"
default 1 if NET_GPTP
default 50
range 1 100
help
Deprecated, use ETH_NATIVE_TAP_DEV_NAME instead
endif # ETH_NATIVE_POSIX_BACKWARDS_COMPAT