ksz9477_acl_...h_process_l2(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ksz9477_acl_...h_process_l2(9) β€” kernel API manual, but make it make sense

okay so bestie, this is a page from the Kernel API Manual and the star of the show is ksz9477_acl_match_process_l2. Yes the header on the tin says ksz9477_acl_...h_process_l2(9) but we all know who the main character is πŸ’–


✨ NAME ✨

ksz9477_acl_match_process_l2 β€” sets up Layer 2 ACL matching rules and processing rules. Like, both. At once. She's multitasking. πŸŽ€


🌸 SYNOPSIS 🌸

void ksz9477_acl_match_process_l2 (struct ksz_device *dev , int port ,
       u16 ethtype , u8 *src_mac , u8 *dst_mac , unsigned long cookie , u32
       prio );

Returns void, so she gives you nothing back β€” she just does the thing. No cap. πŸ’…


πŸ¦‹ ARGUMENTS πŸ¦‹

Here's the whole squad you gotta pass in, fr fr:

  • dev β€” Pointer to the ksz_device. This is the device herself, the whole vibe. 🫢
  • port β€” Port number. Which port? That one. Int. πŸ”₯
  • ethtype β€” Ethernet type, as a u16. It's giving "what kind of packet are we even talking about". ✨
  • src_mac β€” Source MAC address (u8 *). Where it's coming from, iykyk. πŸŽ€
  • dst_mac β€” Destination MAC address (u8 *). Where it's going. Iconic. πŸ’«
  • cookie β€” The cookie to associate with the entry (unsigned long). Not a real cookie 😭 but okay.
  • prio β€” The priority of the entry (u32). Very important, obviously. πŸ‘‘

🌈 DESCRIPTION 🌈

So what she actually does: this function sets up matching and processing rules for Layer 2 ACLs. Both halves of the job, one function, slay. πŸ’…

And the one little caveat you must remember, bestie, because it changes how you build your entries:

Only one MAC per entry is supported. One. Single. MAC. Don't come in here trying to fit two. πŸ™ˆ

That's the whole thing β€” she's not subtle, she's just specific.


πŸ’œ SEE ALSO πŸ’œ

The whole extended friend group, in order, no one left out 🫢:


✨ and that's the whole page, bestie ✨ This little gem lives in ./drivers/net/dsa/microchip and it's dated October 2026 β€” so future-coded of her. Go set those L2 ACL rules, one MAC per entry, and slay. πŸ’–πŸŽ€πŸ¦‹πŸŒΈπŸ’…πŸ‘‘

πŸ“¦ where this page comes from