t4vf_set_rxmode(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… t4vf_set_rxmode β€” a.k.a. the "make this virtual interface behave" page (section 9 of the Kernel API Manual, bestie)

okay so picture this: it's a kernel API manual page, section 9, and it's literally called t4vf_set_rxmode. That's the whole vibe. Let's get into it πŸŽ€


✨ SYNOPSIS ✨

int t4vf_set_rxmode (struct adapter *adapter , unsigned int viid , int
mtu , int promisc , int all_multi , int bcast , int vlanex , bool
sleep_ok );

yes it's a int-returning function, yes it takes eight whole arguments, and yes we're gonna go through every single one of them because that's just who I am 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • adapter β€” the adapter. like, the actual adapter, the main character of this whole operation πŸ‘‘
  • viid β€” the VI id. that's the virtual interface's little name tag 🏷️
  • mtu β€” the new MTU, or -1 if you want no change at all (she's fine as she is, don't touch her)
  • promisc β€” 1 to enable promiscuous mode, 0 to disable it, -1 for no change πŸ‘€
  • all_multi β€” 1 to enable all-multi mode, 0 to disable it, -1 for no change
  • bcast β€” 1 to enable broadcast Rx, 0 to disable it, -1 for no change πŸ“£
  • vlanex β€” 1 to enable hardware VLAN Tag extraction, 0 to disable it, -1 for no change 🏷️✨
  • sleep_ok β€” bool, and it means the call is allowed to sleep 😴 (yes, "allowed", not "forced", don't come for me)
ngl the -1 thing is lowkey iconic β€” it's the "no change please, I'm just here for the other flags" option, and it shows up in five of these arguments. respect the consistency πŸ’…

🌸 DESCRIPTION 🌸

Sets Rx properties of a virtual interface.

that's it. that's the sentence. short king energy, but it's doing exactly what it says on the tin πŸ’–


🌈 SEE ALSO 🌈

kernel file is right here, no cap:

./drivers/net/ethernet/chelsio/cxgb4vf/t4vf_hw.c

and bestie, the friend group is huge β€” everyone in this header file is connected, iykyk:

like I said. big friend group. all (9), all locked in πŸ”₯


and that's the page!! mwah πŸ’‹ this came from ./drivers/net/ethernet/chelsio... (that's the source/version bit, the terminal truncated it, not me πŸ™ˆ) and it's dated October 2026 β€” so yes, future girlie behavior, we love to see it. go set some Rx properties, bestie, you've got this πŸŒŸπŸ’œ

πŸ“¦ where this page comes from