Zephyr Project API 4.1.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches

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.
 

Detailed Description

Structure to provide DSA switch api callbacks - it is an augmented struct ethernet_api.

Field Documentation

◆ port_generate_random_mac

void(* dsa_api::port_generate_random_mac) (uint8_t *mac_addr)

Port generates random mac address.

◆ port_init

int(* dsa_api::port_init) (const struct device *dev)

Port init.

◆ port_phylink_change

void(* dsa_api::port_phylink_change) (const struct device *dev, struct phy_link_state *state, void *user_data)

Port link change.

◆ recv

struct net_if *(* dsa_api::recv) (struct net_if *iface, struct net_pkt *pkt)

DSA helper callbacks.

Handle receive packet on conduit port for untagging and redirection

◆ switch_setup

int(* dsa_api::switch_setup) (const struct dsa_switch_context *dsa_switch_ctx)

Switch setup.

◆ xmit

struct net_pkt *(* dsa_api::xmit) (struct net_if *iface, struct net_pkt *pkt)

Transmit packet on the user port with tagging.


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