ice_arfs_update_flow_rules(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so bestie, welcome to the ice_arfs_update_flow_rules page β€” this is the Kernel API Manual entry for ice_arfs_update_flow_rules, and it's literally the function that adds and deletes aRFS rules in HW. no cap. πŸŽ€


✨ SYNOPSIS ✨

void ice_arfs_update_flow_rules (struct ice_vsi *vsi , u16 idx , struct hlist_head *add_list , struct hlist_head *del_list );

🫢 ARGUMENTS 🫢

  • vsi β€” the VSI that's getting forwarded to. she's the destination, the main character of this whole operation 🌸
  • idx β€” the index into the table of aRFS filter lists. where does it come from? skb->hash, bestie. that's the plug πŸ”Œ
  • add_list β€” a list you populate with the filters that need to be added to Flow Director ✨
  • del_list β€” and this one you populate with the filters that need to be deleted from Flow Director. bye bye filter πŸ‘‹πŸ˜­

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the vibe: this function iterates over the hlist at the index you gave it in the aRFS hash table, and it figures out if there are any aRFS entries that need to be either added or deleted in the HW. like, a little flow-rules vibe check for every entry πŸ‘‘

the logic is honestly so clean:

  • if the aRFS entry is marked as ICE_ARFS_INACTIVE, that filter needs to be added to HW 🌈
  • else, if it's marked as ICE_ARFS_ACTIVE and the flow has expired, you delete that filter from HW πŸ’€

and here's the part we do not forget, fr fr: the caller of this function is expected to add/delete rules on the add_list/del_list respectively. that's on you, not on her. periodt πŸ’…


πŸ‘€ SEE ALSO πŸ‘€

like, the whole friend group showed up for this one πŸ«ΆπŸ’œ


ngl bestie, read the neighbours too β€” that's the whole aRFS cinematic universe πŸ¦‹

and that's the page!! mwah πŸ’‹ this one lives over in ./drivers/net/ethernet/intel/ice, dated October 2026, and yeah β€” it's literally ice_arfs_update_flow_rules(9). iconic, no notes πŸŽ€βœ¨πŸ‘‘

πŸ“¦ where this page comes from