STRUCT KSZ_MAC_TABLE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct ksz_mac_table(9) β€” the static MAC table glow-up

okay so bestie, we're in the Kernel API Manual today and the vibe is networking internals. this is struct ksz_mac_table, and it's literally the static MAC table data structure. no cap, that's the whole NAME. πŸŽ€


✨ SYNOPSIS ✨

here's the whole thing, character for character, don't @ me:

struct ksz_mac_table {
    u8 mac_addr[ETH_ALEN];
    u16 vid;
    u8 fid;
    u8 ports;
    u8 override:1;
    u8 use_fid:1;
    u8 valid:1;
 };

she's little, she's bitfield-y, she's iconic. πŸ’œ


🌸 Members 🌸

  • mac_addr β€” the MAC address you're filtering on. the main character of the whole struct, honestly. πŸ‘‘
  • vid β€” the VID value.
  • fid β€” the FID value.
  • ports β€” port membership. who's in the group chat, basically. 🫢
  • override β€” the override setting.
  • use_fid β€” the FID use setting.
  • valid β€” the valid setting, i.e. it tells you whether this entry is actually being used or just vibing there unused. ⭐
note bestie: override, use_fid and valid are all u8 1-bit bitfields (:1). tiny. precious. don't lose track of them. πŸ’…

πŸ¦‹ SEE ALSO πŸ¦‹

the kernel file this lives in is ./drivers/net/ethernet/micrel/ksz884x.c β€” and yes, the reference list is long long, so buckle up. every single one, in order:

iykyk. πŸ”₯


that's the whole page bestie, you ate that 🫢 β€” source path ./drivers/net/ethernet/micrel, dated October 2026, and it's all struct ksz_mac_table(9) at the end of the day. mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from