ksz9477_acl_action_rule_cfg(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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 entry
  • force_prio β€” If true, force the priority value
  • prio_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 Mode
    • 00 = ACL does not specify the packet priority. Priority is determined by standard QoS functions.
    • 01 = Change packet priority to P[2:0] if it is greater than QoS result.
    • 10 = Change packet priority to P[2:0] if it is smaller than the QoS result.
    • 11 = Always change packet priority to P[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 remarking
    • 1 = Enable priority remarking. VLAN tag priority (PCP) bits are replaced by RP[2:0].

πŸ¦‹ 0x0B β€” RP[0], MM

  • Bit 7 β€” RP[0] β€” Remarked Priority value (bit 0)
  • Bits 6:5 β€” MM[1:0] β€” Map Mode
    • 00 = No forwarding remapping
    • 01 = The forwarding map in FORWARD is OR'ed with the forwarding map from the Address Lookup Table.
    • 10 = The forwarding map in FORWARD is AND'ed with the forwarding map from the Address Lookup Table.
    • 11 = The forwarding map in FORWARD replaces 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 port
  • 0 = do not forward to this port

🌈 SEE ALSO 🌈


πŸŽ€ 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