hns_dsaf_set_mac_key(9)
π
hns_dsaf_set_mac_key β the page formerly known as hns_dsaf_set_mac_key(9)
okay so bestie, welcome to another episode of the Kernel API Manual (that's the manual name btw, it's in the header, we're not doing the whole title line thing, we're keeping it cute) π
today's main character is hns_dsaf_set_mac_key β and yes, the NAME says it all:
hns_dsaf_set_mac_key β set mac key β¨
like, that's literally the whole job. it sets the mac key. no notes. π
πΈ SYNOPSIS
void hns_dsaf_set_mac_key (struct dsaf_device *dsaf_dev , struct
dsaf_drv_tbl_tcam_key *mac_key , u16 vlan_id , u8 in_port_num , u8 *addr
);
it returns nothing (void, she's giving lowkey mysterious) and takes five arguments, all of which we're about to go through one by one because we don't skip π
π¦ ARGUMENTS
dsaf_devβ the dsa fabric device struct pointer, aka the whole entire device vibe πmac_keyβ tcam key pointer, the little key-shaped thing being set iykyk πvlan_idβ the vlan id, it's au16, she's a short queen πin_port_numβ the input port num, au8, tiny but iconic πaddrβ the mac addr, au8 *, pointed straight at wherever the address is living π«Ά
no defaults, no env vars, no exit statuses β it's a void function, she's not here to report back, she's here to do the thing β
π§ SEE ALSO
before we get to the friend group, heads up: the kernel file for this is
./drivers/net/ethernet/hisilicon/hns/hns_dsaf_main.c
and now the whole squad, fr fr β every single one of them, in the order they showed up, no cutting anyone π
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(9)hns_dsaf_find_empty_mac_entry_reverse(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)
likeβ¦ that's the whole friend group and they ALL said hi back ππ«Ά
ngl bestie, there are no warnings, no bugs section, no errors and no exit statuses on this page β it's a void function that sets a mac key and then simply leaves. that's the entire plot. π
and that's the page!! π source and version on this one is ./drivers/net/ethernet/hisilic... and it's dated October 2026, and it's filed in the manual as hns_dsaf_set_mac_key(9) β mwah, go set some mac keys, ily, bye πππ¦
π¦ 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