|
Zephyr API Documentation 4.3.0-rc2
A Scalable Open Source RTOS
|
Distributed Switch Architecture (DSA) More...
Data Structures | |
| struct | dsa_switch_context |
| DSA switch context data. More... | |
| struct | dsa_api |
| Structure to provide DSA switch api callbacks - it is an augmented struct ethernet_api. More... | |
| struct | dsa_port_config |
| Structure of DSA port configuration. More... | |
Macros | |
| #define | DSA_PORT_INST_INIT(port, n, cfg) |
| Macro for DSA port instance initialization. | |
| #define | DSA_SWITCH_INST_INIT(n, _dapi, data, fn) |
| Macro for DSA switch instance initialization. | |
Functions | |
| struct net_if * | dsa_user_get_iface (struct net_if *iface, int port_idx) |
| Get network interface of a user port. | |
Distributed Switch Architecture (DSA)
| #define DSA_PORT_INST_INIT | ( | port, | |
| n, | |||
| cfg ) |
#include <zephyr/net/dsa_core.h>
Macro for DSA port instance initialization.
| port | DSA port node identifier. |
| n | DSA instance number. |
| cfg | Pointer to dsa_port_config. |
| #define DSA_SWITCH_INST_INIT | ( | n, | |
| _dapi, | |||
| data, | |||
| fn ) |
#include <zephyr/net/dsa_core.h>
Macro for DSA switch instance initialization.
| n | DSA instance number. |
| _dapi | Pointer to dsa_api. |
| data | Pointer to private data. |
| fn | DSA port instance init function. |
#include <zephyr/net/dsa_core.h>
Get network interface of a user port.
| iface | Conduit port | |
| [in] | port_idx | Port index |