This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

CONFIG_ETH_NATIVE_POSIX_INTERFACE_COUNT

Number of network interfaces created

Type: int

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, then multiple network interfaces
must be created here.

Direct dependencies

ETH_NATIVE_POSIX && NET_L2_ETHERNET

(Includes any dependencies from ifs and menus.)

Kconfig definition

At drivers/ethernet/Kconfig.native_posix:68

Included via Kconfig:8Kconfig.zephyr:40drivers/Kconfig:20drivers/ethernet/Kconfig:54

Menu path: (Top) → Device Drivers → Ethernet Drivers → Native Posix Ethernet driver

config ETH_NATIVE_POSIX_INTERFACE_COUNT
    int "Number of network interfaces created"
    range 1 32
    default NET_GPTP_NUM_PORTS if NET_GPTP
    default 1
    depends on ETH_NATIVE_POSIX && NET_L2_ETHERNET
    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, then multiple network interfaces
      must be created here.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)