ice_arfs_update_flow_rules(9)
π 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_ACTIVEand 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 π
- Kernel file
./drivers/net/ethernet/intel/ice/ice_arfs.c ice_is_arfs_active(9),ice_is_arfs_using_perfect_flow(9),ice_arfs_update_active_fltr_cntrs(9),ice_arfs_del_flow_rules(9),ice_arfs_add_flow_rules(9),ice_arfs_is_flow_expired(9),ice_sync_arfs_fltrs(9),ice_arfs_build_entry(9),ice_arfs_is_perfect_flow_set(9),ice_arfs_cmp(9),ice_rx_flow_steer(9),ice_init_arfs_cntrs(9),ice_init_arfs(9),ice_clear_arfs(9),ice_set_cpu_rx_rmap(9),ice_remove_arfs(9),ice_rebuild_arfs(9)
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
- 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