STRUCT RTL8365MB_CPU(9)
πΈ 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 inswitch->CPUframes 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 inswitch->CPUframes π§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
- 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