STRUCT RTL8365MB_CPU(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

struct rtl8365mb_cpu β€” the CPU port configuration, bestie πŸ’… (and yes this is from the Kernel API Manual, we're fancy like that ✨)


✨ SYNOPSIS ✨

okay so here's the whole vibe of the struct, look at her go πŸ‘‘

struct rtl8365mb_cpu {
    bool enable;
    u32 mask;
    u32 trap_port;
    enum rtl8365mb_cpu_insert insert;
    enum rtl8365mb_cpu_position position;
    enum rtl8365mb_cpu_rxlen rx_length;
    enum rtl8365mb_cpu_format format;
 };

πŸŽ€ Members πŸŽ€

bestie these are her fields, every single one, no skips 🫢

  • enable β€” turns hardware insertion of the CPU tag in switch->CPU frames on and off. like a lil light switch πŸ’‘
  • mask β€” the port mask of the ports that parse should parse CPU tags. yes, that's literally what it says, "parse should parse", she's iconic πŸ’€
  • trap_port β€” the port that trapped frames get forwarded to. catch them πŸ₯…
  • insert β€” the CPU tag insertion mode in switch->CPU frames 🧚
  • position β€” where the CPU tag sits in the frame. location location location πŸ“
  • rx_length β€” the minimum CPU RX length πŸ“
  • format β€” the CPU tag format ⭐

πŸ¦‹ Description πŸ¦‹

So basically this struct represents the CPU tagging and CPU port configuration of the switch, periodt. The good news? These settings are configurable at runtime, no reboot-and-pray required πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘

go read these next, iykyk πŸ’œ

  • Kernel file ./drivers/net/dsa/realtek/rtl8365mb_main.c
  • enum rtl8365mb_vlan_egress_mode(9)
  • struct rtl8365mb_extint(9)
  • struct rtl8365mb_chip_info(9)
  • struct rtl8365mb_port(9)
  • struct rtl8365mb(9)

and that's the whole page bestie!! 🌈 this lil slice of ./drivers/net/dsa/realtek lore is dated October 2026, and the page itself is struct rtl8365mb_cpu(9) β€” go forth and configure ur CPU port, slay πŸ’–πŸŽ€πŸ’…

πŸ“¦ where this page comes from