ice_fltr_add_mac_to_list(9)
π ice_fltr_add_mac_to_list(9) β from the Kernel API Manual, bestie π
okay so real talk, this is one of those little kernel helpers from the ice driver fam, and honestly? it's giving "glue function that carries the whole squad." it takes your MAC filter info and justβ¦ adds it to a list you already have. that's it. that's the whole vibe. no cap. β¨
πΈ NAME πΈ
ice_fltr_add_mac_to_list β add MAC filter info to existing list π«Ά
like, the name literally tells you everything: you've got a list, you've got MAC filter info, and this function is the matchmaker that puts them together. lowkey iconic of it.
β¨ SYNOPSIS β¨
int ice_fltr_add_mac_to_list (struct ice_vsi *vsi , struct list_head
*list , const u8 *mac , enum ice_sw_fwd_act_type action );
it returns an int, so yeah, you're gonna wanna check that return value, bestie. π
π ARGUMENTS π
vsiβ pointer to aVSIstruct. this is the main character of the story β the virtual station interface everything's hanging off of. π¦listβ the list you're adding the filter info to. yes, that list. the one in the parameter name. we love a self-explanatory king. πmacβ the MAC address you want to add. it's aconst u8 *, so don't go thinking you can just scribble on it. πactionβ the filter action, typed asenum ice_sw_fwd_act_type. it's giving "what should the switch do with this?" energy. π
π SEE ALSO π
Kernel file ./drivers/net/ethernet/intel/ice/ice_fltr.c β go read the source, iykyk π
and the whole friend group, in order:
ice_fltr_free_list(9)ice_fltr_add_entry_to_list(9)ice_fltr_set_vlan_vsi_promisc(9)ice_fltr_clear_vlan_vsi_promisc(9)ice_fltr_clear_vsi_promisc(9)ice_fltr_set_vsi_promisc(9)ice_fltr_add_mac_list(9)ice_fltr_remove_mac_list(9)ice_fltr_add_vlan_list(9)ice_fltr_remove_vlan_list(9)ice_fltr_add_eth_list(9)ice_fltr_remove_eth_list(9)ice_fltr_remove_all(9)ice_fltr_add_vlan_to_list(9)ice_fltr_add_eth_to_list(9)ice_fltr_prepare_mac(9)ice_fltr_prepare_mac_and_broadcast(9)ice_fltr_prepare_vlan(9)ice_fltr_prepare_eth(9)ice_fltr_add_mac(9)ice_fltr_add_mac_and_broadcast(9)ice_fltr_remove_mac(9)ice_fltr_add_vlan(9)ice_fltr_remove_vlan(9)ice_fltr_add_eth(9)ice_fltr_remove_eth(9)
fr fr that's a whole friend group chat right there and every single one of them showed up to the function list. π«Άπ₯
ngl bestie, this one's a short page because the function is short on drama β but theSEE ALSOsection? absolutely ate. go read the source at./drivers/net/ethernet/intel/ice/ice_fltr.cif you want the full lore. π
bye bestie!! π§ this lil page lives in ./drivers/net/ethernet/intel/ice, it's dated October 2026, and it comes to you courtesy of the Kernel API Manual β mwah, mwah, slay, periodt ππ
π¦ 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