hns_mac_port_config_bc_en(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– 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: 0 means 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:

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