hns_dsaf_fi...ty_mac_entry(9)
π hns_dsaf_find_empty_mac_entry β bestie's guide to finding an empty MAC slot
okay so first things first, this is a page from the Kernel API Manual (yes, that's the manual's name, we're in kernel-land now π§) and it's all about one little function that goes hunting for a free spot in the DSA fabric's soft MAC table. She's small, she's specific, she's doing her job. Slay.
β¨ NAME β¨
hns_dsaf_find_empty_mac_entry β literally goes searching the dsa fabric for a soft empty-entry π
that's it, that's the whole gig.
πΈ SYNOPSIS πΈ
u16 hns_dsaf_find_empty_mac_entry (struct dsaf_device *dsaf_dev );
no cap, that's the signature. one argument, returns a u16. simple, iconic, no drama.
π ARGUMENTS π
dsaf_devβ dsa fabric device struct pointer π«Ά. this is the device you're handing over so she knows where to go look. she needs the pointer, bestie, don't forget it.
π¦ SEE ALSO π¦
okay this is the part where the manpage just dumps the entire friend group in the group chat π like literally everyone from hns_dsaf_main.c shows up. so here's the whole squad, no one gets left out:
hns_dsaf_sbm_link_sram_init_en(9),hns_dsaf_reg_cnt_clr_ce(9),hns_dsaf_ppe_qid_cfg(9),hns_dsaf_sw_port_type_cfg(9),hns_dsaf_stp_port_type_cfg(9),hns_dsaf_sbm_cfg(9)hns_dsaf_sbm_cfg_mib_en(9),hns_dsaf_sbm_bp_wl_cfg(9),hns_dsaf_voq_bp_all_thrd_cfg(9),hns_dsaf_tbl_tcam_data_cfg(9)hns_dsaf_tbl_tcam_mcast_cfg(9),hns_dsaf_tbl_tcam_ucast_cfg(9),hns_dsaf_tbl_line_cfg(9),hns_dsaf_tbl_tcam_mcast_pul(9)hns_dsaf_tbl_line_pul(9),hns_dsaf_tbl_tcam_data_mcast_pul(9),hns_dsaf_tbl_tcam_data_ucast_pul(9),hns_dsaf_tbl_stat_en(9)hns_dsaf_rocee_bp_en(9),hns_dsaf_single_line_tbl_cfg(9),hns_dsaf_tcam_uc_cfg(9),hns_dsaf_tcam_mc_cfg(9)hns_dsaf_tcam_uc_cfg_vague(9),hns_dsaf_tcam_mc_cfg_vague(9),hns_dsaf_tcam_mc_invld(9),hns_dsaf_tcam_uc_get(9)hns_dsaf_tcam_mc_get(9),hns_dsaf_tbl_line_init(9),hns_dsaf_tbl_tcam_init(9),hns_dsaf_pfc_en_cfg(9)hns_dsaf_comm_init(9),hns_dsaf_inode_init(9),hns_dsaf_sbm_init(9),hns_dsaf_tbl_init(9)hns_dsaf_voq_init(9),hns_dsaf_init_hw(9),hns_dsaf_remove_hw(9),hns_dsaf_init(9)hns_dsaf_free(9),hns_dsaf_find_soft_mac_entry(9),hns_dsaf_find_empty_mac_entry_reverse(9),hns_dsaf_set_mac_key(9)hns_dsaf_set_mac_uc_entry(9),hns_dsaf_add_mac_mc_port(9),hns_dsaf_del_mac_entry(9),hns_dsaf_del_mac_mc_port(9)hns_dsaf_free_dev(9),hns_dsaf_pfc_unit_cnt(9),hns_dsaf_port_work_rate_cfg(9),hns_dsaf_fix_mac_mode(9)hns_dsaf_get_regs(9),hns_dsaf_get_stats(9),hns_dsaf_get_sset_count(9),hns_dsaf_get_strings(9)hns_dsaf_get_regs_count(9),hns_dsaf_probe(9),hns_dsaf_remove(9)
and yeah, she lives in the kernel file ./drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c β that's the address, that's where she hangs out π
π the cute sign-off π
this page came to you straight from the ./drivers/net/ethernet/hisilic... corner of the source tree, dated October 2026 (yes bestie, the future, we're ahead of schedule β¨β³), and it's titled hns_dsaf_fi...ty_mac_entry(9) in case you forgot what you clicked on. go find those empty entries, you absolute main character ππ
π¦ 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