STRUCT MXL862XX_MAC_TABLE_READ(9)
π NAME π
struct mxl862xx_mac_table_read β okay so this is the MAC Table Entry to be read, and yes bestie it's exactly as iconic as it sounds π (this is from the Kernel API Manual, in case you were wondering where we're at β¨)
πΈ SYNOPSIS πΈ
struct mxl862xx_mac_table_read {
u8 initial;
u8 last;
__le16 fid;
__le32 port_id;
__le16 port_map[8];
__le32 age_timer;
__le16 vlan_id;
u8 static_entry;
__le16 sub_if_id;
u8 mac[ETH_ALEN];
u8 filter_flag;
u8 igmp_controlled;
u8 entry_changed;
u8 associated_mac[ETH_ALEN];
u8 hit_status;
__le16 tci;
__le16 first_bridge_port_id;
};
π¦ Members (the cast, the main characters) π¦
initialβ restarts the get operation from the very beginning of the table. like hitting "back to top" but for your MAC table fr fr π₯lastβ tells you the read operation returned the last entry. so when this pops off, you're at the end, no cap πfidβ get the MAC table entry that belongs to the given Filtering Identifier. it's giving "which one is mine" energy β¨port_idβ The Bridge Port ID. simple, iconic πport_mapβ Bridge Port Map. the whole squad, mapped out π«Άage_timerβ Aging Time. yes it's literally called that, we love a dramatic name πvlan_idβ STAG VLAN Id. slay, tagged correctly πstatic_entryβ Indicates if this is a Static Entry. lowkey immovable, periodt πsub_if_idβ Sub-Interface Identifier Destination. the destination's sub-interface id, iykyk πΈmacβ MAC Address. Filled out by the switch API implementation β so not you, bestie, the API does it β¨filter_flagβ go look atenum mxl862xx_mac_table_filter, that's where the deets live πigmp_controlledβ Packet is marked as IGMP controlled if the destination MAC address matches the MAC in this entry. literally a matching game πentry_changedβ Indicate if the Entry has Changed. the vibe check of whether anything moved π₯associated_macβ Associated MAC address. the plus-one of MAC addresses π«Άhit_statusβ MAC Table Hit Status Update. did it hit? we love a hit πtciβ TCI for B-Step: Bit[0:11]β VLAN ID, Bit[12]β VLAN CFI/DEI, Bit[13:15]β VLAN PRI. bits on bits on bits π§first_bridge_port_idβ The port this MAC address has first been learned. This is used for loop detection β so like, very much the responsible one of the group π
π SEE ALSO π
Kernel file ./drivers/net/dsa/mxl862xx/mxl862xx-api.h plus the entire extended friend group (yes, all of them, I would never leave anyone out π«Ά):
struct mdio_relay_data(9)struct mxl862xx_register_mod(9)enum mxl862xx_mac_table_filter(9)struct mxl862xx_mac_table_add(9)struct mxl862xx_mac_table_remove(9)struct mxl862xx_mac_table_query(9)enum mxl862xx_mac_clear_type(9)struct mxl862xx_mac_table_clear(9)enum mxl862xx_age_timer(9)struct mxl862xx_bridge_alloc(9)enum mxl862xx_bridge_config_mask(9)enum mxl862xx_bridge_port_egress_meter(9)struct mxl862xx_qos_meter_cfg(9)enum mxl862xx_bridge_forward_mode(9)struct mxl862xx_bridge_config(9)struct mxl862xx_bridge_port_alloc(9)enum mxl862xx_bridge_port_config_mask(9)enum mxl862xx_color_marking_mode(9)enum mxl862xx_color_remarking_mode(9)enum mxl862xx_pmapper_mapping_mode(9)struct mxl862xx_pmapper(9)struct mxl862xx_bridge_port_config(9)struct mxl862xx_cfg(9)enum mxl862xx_extended_vlan_filter_type(9)enum mxl862xx_extended_vlan_filter_tpid(9)enum mxl862xx_extended_vlan_filter_dei(9)enum mxl862xx_extended_vlan_treatment_remove_tag(9)enum mxl862xx_extended_vlan_treatment_priority(9)enum mxl862xx_extended_vlan_treatment_vid(9)enum mxl862xx_extended_vlan_treatment_tpid(9)enum mxl862xx_extended_vlan_treatment_dei(9)enum mxl862xx_extended_vlan_4_tpid_mode(9)enum mxl862xx_extended_vlan_filter_ethertype(9)struct mxl862xx_extendedvlan_filter_vlan(9)struct mxl862xx_extendedvlan_filter(9)struct mxl862xx_extendedvlan_treatment_vlan(9)struct mxl862xx_extendedvlan_treatment(9)struct mxl862xx_extendedvlan_alloc(9)struct mxl862xx_extendedvlan_config(9)enum mxl862xx_vlan_filter_tci_mask(9)struct mxl862xx_vlanfilter_alloc(9)struct mxl862xx_vlanfilter_config(9)enum mxl862xx_ss_sp_tag_mask(9)enum mxl862xx_ss_sp_tag_rx(9)enum mxl862xx_ss_sp_tag_tx(9)enum mxl862xx_ss_sp_tag_rx_pen(9)struct mxl862xx_ss_sp_tag(9)enum mxl862xx_logical_port_mode(9)struct mxl862xx_ctp_port_assignment(9)enum mxl862xx_stp_port_state(9)struct mxl862xx_stp_port_cfg(9)struct mxl862xx_sys_fw_image_version(9)enum mxl862xx_port_type(9)enum mxl862xx_rmon_port_type(9)struct mxl862xx_rmon_port_cnt(9)union mxl862xx_xpcs_an_word(9)enum mxl862xx_xpcs_loopback_mode(9)struct mxl862xx_xpcs_pcs_cfg(9)struct mxl862xx_xpcs_pcs_state(9)struct mxl862xx_xpcs_pcs_disable(9)struct mxl862xx_xpcs_an_restart(9)struct mxl862xx_xpcs_pcs_link_up(9)
okay that's the whole page bestie, go read the source, ily, bye πβ¨
Source: ./drivers/net/dsa/mxl862xx Β· October 2026 β mwah, signed, sealed, delivered, periodt π
π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms