ENUM RTL8365MB_VLAN_EGRESS_MODE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… enum rtl8365mb_vlan_egress_mode(9)

okay bestie, welcome to the Kernel API Manual ✨ this is the page for enum rtl8365mb_vlan_egress_mode, and honestly? it's a little gem. it's all about port VLAN egress mode β€” i.e. what happens to the VLAN tag on packets leaving a port. no cap, once you get it you'll be obsessed 🫢


🌸 NAME

enum rtl8365mb_vlan_egress_mode β€” port VLAN egress mode πŸŽ€


✨ SYNOPSIS

enum rtl8365mb_vlan_egress_mode {
    RTL8365MB_VLAN_EGRESS_MODE_ORIGINAL ,
    RTL8365MB_VLAN_EGRESS_MODE_KEEP ,
    RTL8365MB_VLAN_EGRESS_MODE_PRI_TAG ,
    RTL8365MB_VLAN_EGRESS_MODE_REAL_KEEP

};

πŸ¦‹ Constants

like, four whole vibes to choose from, and each one is a different egress personality πŸ’–

  • RTL8365MB_VLAN_EGRESS_MODE_ORIGINAL β€” follow the untag mask in the VLAN4k table entry. that's the whole instruction, she's straightforward πŸ‘‘
  • RTL8365MB_VLAN_EGRESS_MODE_KEEP β€” the VLAN tag format of egressed packets stays the same as their ingressed format, but the priority and VID fields may be altered πŸ‘€ so it's "keep" with a lil asterisk, iykyk
  • RTL8365MB_VLAN_EGRESS_MODE_PRI_TAG β€” always egress with a priority tag. always. no discussion, it's giving main character energy πŸ’…
  • RTL8365MB_VLAN_EGRESS_MODE_REAL_KEEP β€” the VLAN tag format of egressed packets stays the same as their ingressed format, and neither the priority nor VID fields can be altered πŸŽ€ this is the actual keep, the real one, the one that means it, fr fr

πŸ”₯ SEE ALSO

go poke around the kernel file ./drivers/net/dsa/realtek/rtl8365mb_main.c and lowkey meet the whole friend group πŸ’œ

  • struct rtl8365mb_extint(9)
  • struct rtl8365mb_chip_info(9)
  • struct rtl8365mb_cpu(9)
  • struct rtl8365mb_port(9)
  • struct rtl8365mb(9)

ok that's the whole page bestie, go forth and tag your packets correctly βœ¨πŸ¦‹πŸŒΈ

and that's a wrap πŸŽ€ this lil masterpiece lives over in ./drivers/net/dsa/realtek, dated October 2026 β€” mwah, bye, slay πŸ’–

πŸ“¦ where this page comes from