ksz9477_acl_port_disable(9)
π ksz9477_acl_port_disable(9) β from the Kernel API Manual, bestie β¨
okay so picture this: it's a (9) kernel API page, the manual is literally called Kernel API Manual, and the whole celeb of the hour is ksz9477_acl_port_disable. she's a function. she turns ACL stuff off on a port. she's lowkey iconic. let's get into it π
β¨ NAME β¨
ksz9477_acl_port_disable β bestie, she literally disables ACL functionality on a given port. that's the whole gig. no cap. π¦
β¨ SYNOPSIS β¨
int ksz9477_acl_port_disable (struct ksz_device *dev , int port );
likeβ¦ two args, one int coming back at you. she's simple, she's clean, she slays π
β¨ ARGUMENTS β¨
devβ theksz_deviceinstance, aka the whole device vibe. she needs to know which device she's working with, obviously πportβ the port number where you want ACL functionality to be turned off. like, this port specifically. not the other ones. boundaries. πΈ
β¨ DESCRIPTION β¨
so here's the tea β β this function disables ACL functionality on the specified port. how? by writing a value of 0 to the REG_PORT_MRI_AUTHEN_CTRL control register, and removing the PORT_ACL_PRIO_ENABLE bit from the P_PRIO_CTRL register. two little register moves and the ACL is gone. she ate and left no crumbs π₯
β¨ RETURN β¨
0if the operation is successful β slay, it worked π- a negative error code if an error occurs β π not the negative error code
β¨ SEE ALSO β¨
the kernel file, obviously: ./drivers/net/dsa/microchip/ksz9477_acl.c π§
and the whole friend group, fr fr:
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_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_processing_rule_add_match(9)ksz9477_acl_get_init_entry(9)ksz9477_acl_match_process_l2(9)
like, the entire roster. iykyk π
ngl bestie, if you're calling ksz9477_acl_port_disable you probably also know half this list by heart, and honestly? main character energy π
and that's the page!! π«Ά brought to you by ./drivers/net/dsa/microchip (the source/version, living her best life), dated October 2026, all wrapped up as ksz9477_acl_port_disable(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