ice_fltr_prepare_mac(9)
πΈ 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:
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_mac_to_list(9)ice_fltr_add_vlan_to_list(9)ice_fltr_add_eth_to_list(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)
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
- 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