Zephyr API Documentation 4.2.0-rc2
A Scalable Open Source RTOS
 4.2.0-rc2
dsa_port_config Struct Reference

Structure of DSA port configuration. More...

#include <zephyr/net/dsa_core.h>

Data Fields

uint8_t mac_addr [6]
 Port mac address.
const bool use_random_mac_addr
 Use random mac address or not.
const int port_idx
 Port index.
const struct devicephy_dev
 PHY device.
const char * phy_mode
 PHY mode.
const struct deviceethernet_connection
 Ethernet device connected to the port.
void * prv_config
 Instance specific config.

Detailed Description

Structure of DSA port configuration.

Field Documentation

◆ ethernet_connection

const struct device* dsa_port_config::ethernet_connection

Ethernet device connected to the port.

◆ mac_addr

uint8_t dsa_port_config::mac_addr[6]

Port mac address.

◆ phy_dev

const struct device* dsa_port_config::phy_dev

PHY device.

◆ phy_mode

const char* dsa_port_config::phy_mode

PHY mode.

◆ port_idx

const int dsa_port_config::port_idx

Port index.

◆ prv_config

void* dsa_port_config::prv_config

Instance specific config.

◆ use_random_mac_addr

const bool dsa_port_config::use_random_mac_addr

Use random mac address or not.


The documentation for this struct was generated from the following file: