ksz9477_acl_action_rule_cfg(9)
π ksz9477_acl_action_rule_cfg(9) β Kernel API Manual π
okay so bestie, welcome to the ksz9477_acl_action_rule_cfg(9) page β this is the Kernel API Manual moment where we set the action for an ACL entry. no cap, it's giving very specific bit-field excellence. π
πΈ NAME πΈ
ksz9477_acl_action_rule_cfg β Set action for an ACL entry β¨
π¦ SYNOPSIS π¦
void ksz9477_acl_action_rule_cfg (u8 *entry , bool force_prio , u8 prio_val );
π«Ά ARGUMENTS π«Ά
entryβ Pointer to the ACL entryforce_prioβ If true, force the priority valueprio_valβ Priority value
πΈ DESCRIPTION πΈ
This function sets the action for the specified ACL entry. It prepares the priority mode and traffic class values and updates the entry's action registers accordingly. Currently, there is no port or VLAN PCP remapping β that's just the tea, bestie. π΅
π§ ACL Action Rule Parameters for Non-Count Modes (MD β 01 or ENB β 00) β¨
π 0x0A β PM, P, RPE, RP[2:1]
- Bits 7:6 β
PM[1:0]β Priority Mode00= ACL does not specify the packet priority. Priority is determined by standard QoS functions.01= Change packet priority toP[2:0]if it is greater than QoS result.10= Change packet priority toP[2:0]if it is smaller than the QoS result.11= Always change packet priority toP[2:0].
- Bits 5:3 β
P[2:0]β Priority value - Bit 2 β
RPEβ Remark Priority Enable - Bits 1:0 β
RP[2:1]β Remarked Priority value (bits 2:1)0= Disable priority remarking1= Enable priority remarking. VLAN tag priority (PCP) bits are replaced byRP[2:0].
π¦ 0x0B β RP[0], MM
- Bit 7 β
RP[0]β Remarked Priority value (bit 0) - Bits 6:5 β
MM[1:0]β Map Mode00= No forwarding remapping01= The forwarding map inFORWARDis OR'ed with the forwarding map from the Address Lookup Table.10= The forwarding map inFORWARDis AND'ed with the forwarding map from the Address Lookup Table.11= The forwarding map inFORWARDreplaces the forwarding map from the Address Lookup Table.
π 0x0D β FORWARD[n:0]
- Bits 7:0 β
FORWARD[n:0]β Forwarding map. - Bit 0 = port 1, bit 1 = port 2, etc.
1= enable forwarding to this port0= do not forward to this port
π 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_processing_rule_set_action(9)ksz9477_acl_processing_rule_add_match(9)ksz9477_acl_get_init_entry(9)ksz9477_acl_match_process_l2(9)
π and that's the whole page, bestie! source/version + date:./drivers/net/dsa/microchipΒ· October 2026 Β·ksz9477_acl_action_rule_cfg(9)β periodt π
π¦ 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