Lines Matching refs:arfs_entry
154 &ep->arfs_entry->fltr_info, true, in ice_arfs_add_flow_rules()
157 ice_arfs_update_active_fltr_cntrs(vsi, ep->arfs_entry, in ice_arfs_add_flow_rules()
161 result, ep->arfs_entry->fltr_state, in ice_arfs_add_flow_rules()
162 ep->arfs_entry->fltr_info.fltr_id, in ice_arfs_add_flow_rules()
163 ep->arfs_entry->flow_id, in ice_arfs_add_flow_rules()
164 ep->arfs_entry->fltr_info.q_index); in ice_arfs_add_flow_rules()
181 ice_arfs_is_flow_expired(struct ice_vsi *vsi, struct ice_arfs_entry *arfs_entry) in ice_arfs_is_flow_expired() argument
184 if (rps_may_expire_flow(vsi->netdev, arfs_entry->fltr_info.q_index, in ice_arfs_is_flow_expired()
185 arfs_entry->flow_id, in ice_arfs_is_flow_expired()
186 arfs_entry->fltr_info.fltr_id)) in ice_arfs_is_flow_expired()
190 if (arfs_entry->fltr_info.flow_type != ICE_FLTR_PTYPE_NONF_IPV4_UDP && in ice_arfs_is_flow_expired()
191 arfs_entry->fltr_info.flow_type != ICE_FLTR_PTYPE_NONF_IPV6_UDP) in ice_arfs_is_flow_expired()
194 return time_in_range64(arfs_entry->time_activated + in ice_arfs_is_flow_expired()
196 arfs_entry->time_activated, get_jiffies_64()); in ice_arfs_is_flow_expired()
236 ep->arfs_entry = e; in ice_arfs_update_flow_rules()
303 struct ice_arfs_entry *arfs_entry; in ice_arfs_build_entry() local
307 arfs_entry = devm_kzalloc(ice_pf_to_dev(vsi->back), in ice_arfs_build_entry()
308 sizeof(*arfs_entry), in ice_arfs_build_entry()
310 if (!arfs_entry) in ice_arfs_build_entry()
313 fltr_info = &arfs_entry->fltr_info; in ice_arfs_build_entry()
341 arfs_entry->flow_id = flow_id; in ice_arfs_build_entry()
345 return arfs_entry; in ice_arfs_build_entry()
400 struct ice_arfs_entry *arfs_entry; in ice_rx_flow_steer() local
441 hlist_for_each_entry(arfs_entry, &vsi->arfs_fltr_list[idx], in ice_rx_flow_steer()
446 if (arfs_entry->flow_id != flow_id) in ice_rx_flow_steer()
449 fltr_info = &arfs_entry->fltr_info; in ice_rx_flow_steer()
453 arfs_entry->fltr_state != ICE_ARFS_ACTIVE) in ice_rx_flow_steer()
458 arfs_entry->fltr_state = ICE_ARFS_INACTIVE; in ice_rx_flow_steer()
459 ice_arfs_update_active_fltr_cntrs(vsi, arfs_entry, false); in ice_rx_flow_steer()
463 arfs_entry = ice_arfs_build_entry(vsi, &fk, rxq_idx, flow_id); in ice_rx_flow_steer()
464 if (!arfs_entry) { in ice_rx_flow_steer()
469 ret = arfs_entry->fltr_info.fltr_id; in ice_rx_flow_steer()
470 INIT_HLIST_NODE(&arfs_entry->list_entry); in ice_rx_flow_steer()
471 hlist_add_head(&arfs_entry->list_entry, &vsi->arfs_fltr_list[idx]); in ice_rx_flow_steer()