hns_dsaf_set_mac_key(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 a u16, she's a short queen πŸ‘‘
  • in_port_num β€” the input port num, a u8, tiny but iconic πŸŽ€
  • addr β€” the mac addr, a u8 *, 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 πŸ’œ

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