ice_fltr_add_mac_to_list(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 a VSI struct. 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 a const u8 *, so don't go thinking you can just scribble on it. πŸ™ˆ
  • action β€” the filter action, typed as enum 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:

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 the SEE ALSO section? absolutely ate. go read the source at ./drivers/net/ethernet/intel/ice/ice_fltr.c if 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