|
Zephyr Project API 4.2.1
A Scalable Open Source RTOS
|
Structure to provide DSA switch api callbacks - it is an augmented struct ethernet_api. More...
#include <dsa_core.h>
Data Fields | |
| struct net_if *(* | recv )(struct net_if *iface, struct net_pkt *pkt) |
| DSA helper callbacks. | |
| struct net_pkt *(* | xmit )(struct net_if *iface, struct net_pkt *pkt) |
| Transmit packet on the user port with tagging. | |
| int(* | port_init )(const struct device *dev) |
| Port init. | |
| void(* | port_phylink_change )(const struct device *dev, struct phy_link_state *state, void *user_data) |
| Port link change. | |
| void(* | port_generate_random_mac )(uint8_t *mac_addr) |
| Port generates random mac address. | |
| int(* | switch_setup )(const struct dsa_switch_context *dsa_switch_ctx) |
| Switch setup. | |
Structure to provide DSA switch api callbacks - it is an augmented struct ethernet_api.
| void(* dsa_api::port_generate_random_mac) (uint8_t *mac_addr) |
Port generates random mac address.
| int(* dsa_api::port_init) (const struct device *dev) |
Port init.
| void(* dsa_api::port_phylink_change) (const struct device *dev, struct phy_link_state *state, void *user_data) |
Port link change.
DSA helper callbacks.
Handle receive packet on conduit port for untagging and redirection
| int(* dsa_api::switch_setup) (const struct dsa_switch_context *dsa_switch_ctx) |
Switch setup.
Transmit packet on the user port with tagging.