t4_set_addr_hash(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– t4_set_addr_hash(9) β€” Kernel API Manual πŸ’–

okay so bestie, welcome to t4_set_addr_hash(9) β€” this is a kernel API man page and honestly it's giving "one job, does it well" energy. It's the little function that programs the MAC inexact-match hash filter. That's the whole vibe. No cap. πŸŽ€


✨ SYNOPSIS ✨

int t4_set_addr_hash (struct adapter *adap , unsigned int mbox ,
       unsigned int viid , bool ucast , u64 vec , bool sleep_ok );

πŸ¦‹ ARGUMENTS πŸ¦‹

Six args, all main characters, no filler. Here's the roll call:

  • adap β€” the adapter. Your actual NIC-ish bestie that everything hangs off of. πŸ’…
  • mbox β€” the mailbox to use for the FW command. Like, which mailbox slot the firmware command goes through.
  • viid β€” the VI id. The virtual interface you're doing all this for.
  • ucast β€” whether the hash filter should also match unicast addresses. A bool, so yes or no, that's it, that's the whole decision. 🫢
  • vec β€” the value to be written to the hash filter. A u64, so 64 bits of pure filter content. ✨
  • sleep_ok β€” call is allowed to sleep. As in: this call may sleep, and it's chill with that. 😴

🌸 DESCRIPTION 🌸

Sets the 64-bit inexact-match hash filter for a virtual interface.

That's literally it, and it's iconic. You hand it a u64 vec, you tell it which adap, mbox and viid, you say whether ucast unicast addresses should get matched too, you confirm sleep_ok, and the filter gets set. 64 bits. Inexact match. Virtual interface. Periodt. πŸ‘‘


🧚 SEE ALSO 🧚

the friend group is large, bestie. like, huge. every single one of these is invited to the party. πŸ’œ

Kernel file ./drivers/net/ethernet/chelsio/cxgb4/t4_hw.c


k bye bestie, go set that hash filter πŸ’…βœ¨ this page came from ./drivers/net/ethernet/chelsio... and it's dated October 2026 β€” screenshot it, tag me, whatever, it's yours now. πŸ“πŸ¦‹πŸ’–

πŸ“¦ where this page comes from