ksz9477_acl...le_add_match(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ksz9477_acl_processing_rule_add_match β€” from the Kernel API Manual, bestie ✨

okay so we're diving into the Kernel API Manual today and honestly? this one's a lil gem πŸŽ€


🌸 NAME 🌸

ksz9477_acl_processing_rule_add_match β€” literally just adds a matching rule to the rule set, that's the whole vibe πŸ’–


✨ SYNOPSIS ✨

void ksz9477_acl_processing_rule_add_match (u8 *entry , u8 match_idx );

like, it returns void, it takes two args, no drama, no cap 🫢


πŸ¦‹ ARGUMENTS πŸ¦‹

  • entry β€” Pointer to the ACL entry πŸ‘‘ that's the thing we're messing with
  • match_idx β€” Index of the matching rule to be added 🎯 which one are we picking, bestie

πŸ’œ DESCRIPTION πŸ’œ

So what does this icon actually do? It adds a matching rule to the rule set by updating the appropriate bits in the entry's rule set registers ✨ That's it. That's the whole job. Lowkey elegant, highkey iconic.

Now let's talk Access Control List (ACL) Processing Rule Registers because this is the part where the lore gets real πŸ“–

  • 0x0E - RuleSet [15:8] β€” Bits 7:0 - RuleSet [15:8] 🌈 This one specifies a set of one or more Matching rule entries. RuleSet has one bit for each of the 16 Matching rule entries. And listen πŸ‘€ if multiple Matching rules are selected, then all conditions will be AND'ed to produce a final match result β€” fr fr, they all gotta agree:
    • 0 = Matching rule not selected πŸ™ˆ
    • 1 = Matching rule selected πŸ’…
  • 0x0F - RuleSet [7:0] β€” Bits 7:0 - RuleSet [7:0] ⭐ that's it, that's the entry, she's simple, we respect her
bestie reminder: the 0x0F register's description is literally just "Bits 7:0 - RuleSet [7:0]" in the source β€” don't go reading extra meaning into it, iykyk 🧚

πŸ”₯ SEE ALSO πŸ”₯


k bye bestie!! πŸ¦‹ this page came straight outta ./drivers/net/dsa/microchip and it's dated October 2026 β€” slay, she's from the future πŸ’€πŸ‘‘ hope this made ACL registers make sense, mwah πŸ“πŸ’œ

πŸ“¦ where this page comes from