ksz9477_acl...le_add_match(9)
π 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 withmatch_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 π₯
- Kernel file
./drivers/net/dsa/microchip/ksz9477_acl.cπ ksz9477_dump_acl_index(9),ksz9477_dump_acl(9),ksz9477_acl_is_valid_matching_rule(9),ksz9477_acl_get_cont_entr(9),ksz9477_acl_update_linkage(9),ksz9477_validate_and_get_src_count(9),ksz9477_move_entries_downwards(9),ksz9477_move_entries_upwards(9),ksz9477_acl_move_entries(9),ksz9477_get_next_block_start(9),ksz9477_swap_acl_blocks(9),ksz9477_sort_acl_entr_no_back(9),ksz9477_sort_acl_entries(9),ksz9477_acl_wait_ready(9),ksz9477_acl_entry_write(9),ksz9477_acl_port_enable(9),ksz9477_acl_port_disable(9),ksz9477_acl_write_list(9),ksz9477_acl_remove_entries(9),ksz9477_port_acl_init(9),ksz9477_port_acl_free(9),ksz9477_acl_set_reg(9),ksz9477_acl_matching_rule_cfg_l2(9),ksz9477_acl_action_rule_cfg(9),ksz9477_acl_processing_rule_set_action(9),ksz9477_acl_get_init_entry(9),ksz9477_acl_match_process_l2(9)β the whole squad, go say hi π«Ά
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms