ice_fltr_prepare_mac(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

Okay so bestie, this is the ice_fltr_prepare_mac(9) page from the Kernel API Manual, and it is literally about how to add or remove a MAC rule β€” that's the whole assignment. MAC rule prep, no cap. πŸ’…βœ¨

✨ SYNOPSIS ✨

Here's the signature, copied exactly because we do not play with code:

int ice_fltr_prepare_mac (struct ice_vsi *vsi , const u8 *mac , enum
       ice_sw_fwd_act_type action , int (*mac_action)(struct ice_vsi *, struct
       list_head *) );

Notice the int return type, the struct ice_vsi *vsi, the const u8 *mac, the enum ice_sw_fwd_act_type action, and the whole function-pointer situation int (*mac_action)(struct ice_vsi *, struct list_head *) β€” all staying exactly as-is, periodt. 🫢

πŸŽ€ ARGUMENTS πŸŽ€

  • vsi β€” pointer to VSI struct. That's your context bestie, the VSI struct pointer. πŸ’–
  • mac β€” MAC address to add. The MAC address goes here, and yes it's the one being added. πŸ¦‹
  • action β€” action to be performed on filter match. That's the action vibe for when the filter matches. ⭐
  • mac_action β€” pointer to add or remove MAC function. It's a function pointer, and it points to the add or remove MAC function β€” iykyk. πŸ”₯

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/net/ethernet/intel/ice/ice_fltr.c β€” that's where this lives, bestie. And here's the whole friend group, all of them, no skips:


Source/version: ./drivers/net/ethernet/intel/ice Β· date: October 2026 Β· manual: ice_fltr_prepare_mac(9). That's the cute sign-off, mwah πŸ’‹βœ¨

πŸ“¦ where this page comes from