hns_mac_port_config_bc_en(9)
π hns_mac_port_config_bc_en(9) β the kernel API manual, bestie edition π
okay so picture this: you're deep in the hns driver, you need to tell a port whether it's allowed to shout into the void (broadcast) in both directions β rx AND tx β and this little function is the one who does it. no cap. it's hns_mac_port_config_bc_en, straight out of the Kernel API Manual, and honestly? iconic behaviour. π«Ά
β¨ NAME β¨
hns_mac_port_config_bc_en β set broadcast rx&tx enable π
like literally, it turns broadcast receive and transmit on or off. that's the whole vibe.
π¦ SYNOPSIS π¦
int hns_mac_port_config_bc_en (struct hns_mac_cb *mac_cb , u32 port_num
, u16 vlan_id , bool enable );
she takes four things and hands you back an int. we love a return value that means something (see ARGUMENTS, i'm getting there, breathe π).
πΈ ARGUMENTS πΈ
mac_cbβ the mac device. this is your main character right here, the actual object we're messing with β¨port_numβ queue number. which queue we're talking to, bestie πvlan_idβ vlan id. (fun fact: in the original page there's a lil' stray backtick` just vibing at the end of this line β we keep it, we love it, it's part of the lore now π)enableβ enable. and look, the original literally says "enable return 0 - success , negative --fail", which is a whole run-on sentence but the tea is:0means success, a negative value means it failed. not me reading that five times π
ngl, that enable description is doing double duty as the return-value doc too, so don't come for me, i'm relaying it exactly as written. π
π₯ SEE ALSO π₯
bestie, the reading list is long, and every single one of these is getting its flowers:
Kernel file: ./drivers/net/ethernet/hisilicon/hns/hns_dsaf_mac.c
and the whole friend group:
hns_mac_need_adjust_link(9)hns_mac_get_inner_port_num(9)hns_mac_change_vf_addr(9)hns_mac_vm_config_bc_en(9)hns_mac_get_autoneg(9)hns_mac_get_pauseparam(9)hns_mac_set_autoneg(9)hns_mac_set_pauseparam(9)hns_mac_init_ex(9)hns_mac_get_info(9)hns_mac_get_mode(9)hns_mac_get_cfg(9)hns_mac_init(9)
thirteen cross-references, one little broadcast-enable function. the way that the hns driver keeps everyone in the group chat π§ββοΈ
β reminder: 0 = success, negative = fail. write that on your hand before the exam. π
okay that's the page!! mwah π β this came out of ./drivers/net/ethernet/hisilic... (yes the path is truncated mid-word in the source, she's mysterious like that π), October 2026 edition, and it's the hns_mac_port_config_bc_en(9) manual, so go forth and configure your broadcast rx&tx, you absolute king ππ
π¦ 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