Lines Matching refs:fm_entry
2848 struct ice_fltr_mgmt_list_entry *fm_entry; in ice_create_pkt_fwd_rule() local
2859 fm_entry = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*fm_entry), in ice_create_pkt_fwd_rule()
2861 if (!fm_entry) { in ice_create_pkt_fwd_rule()
2866 fm_entry->fltr_info = f_entry->fltr_info; in ice_create_pkt_fwd_rule()
2869 fm_entry->vsi_count = 1; in ice_create_pkt_fwd_rule()
2870 fm_entry->lg_act_idx = ICE_INVAL_LG_ACT_INDEX; in ice_create_pkt_fwd_rule()
2871 fm_entry->sw_marker_id = ICE_INVAL_SW_MARKER_ID; in ice_create_pkt_fwd_rule()
2872 fm_entry->counter_index = ICE_INVAL_COUNTER_ID; in ice_create_pkt_fwd_rule()
2874 ice_fill_sw_rule(hw, &fm_entry->fltr_info, s_rule, in ice_create_pkt_fwd_rule()
2881 devm_kfree(ice_hw_to_dev(hw), fm_entry); in ice_create_pkt_fwd_rule()
2886 fm_entry->fltr_info.fltr_rule_id = le16_to_cpu(s_rule->index); in ice_create_pkt_fwd_rule()
2891 l_type = fm_entry->fltr_info.lkup_type; in ice_create_pkt_fwd_rule()
2893 list_add(&fm_entry->list_entry, &recp->filt_rules); in ice_create_pkt_fwd_rule()
2942 struct ice_fltr_mgmt_list_entry *fm_entry; in ice_update_sw_rule_bridge_mode() local
2951 list_for_each_entry(fm_entry, rule_head, list_entry) { in ice_update_sw_rule_bridge_mode()
2952 struct ice_fltr_info *fi = &fm_entry->fltr_info; in ice_update_sw_rule_bridge_mode()
3857 ice_vsi_uses_fltr(struct ice_fltr_mgmt_list_entry *fm_entry, u16 vsi_handle) in ice_vsi_uses_fltr() argument
3859 return ((fm_entry->fltr_info.fltr_act == ICE_FWD_TO_VSI && in ice_vsi_uses_fltr()
3860 fm_entry->fltr_info.vsi_handle == vsi_handle) || in ice_vsi_uses_fltr()
3861 (fm_entry->fltr_info.fltr_act == ICE_FWD_TO_VSI_LIST && in ice_vsi_uses_fltr()
3862 fm_entry->vsi_list_info && in ice_vsi_uses_fltr()
3863 (test_bit(vsi_handle, fm_entry->vsi_list_info->vsi_map)))); in ice_vsi_uses_fltr()
3879 struct ice_fltr_mgmt_list_entry *fm_entry; in ice_check_if_dflt_vsi() local
3894 list_for_each_entry(fm_entry, rule_head, list_entry) { in ice_check_if_dflt_vsi()
3895 if (ice_vsi_uses_fltr(fm_entry, vsi_handle)) { in ice_check_if_dflt_vsi()
4036 struct ice_fltr_mgmt_list_entry *fm_entry; in ice_add_to_vsi_fltr_list() local
4043 list_for_each_entry(fm_entry, lkup_list_head, list_entry) { in ice_add_to_vsi_fltr_list()
4044 if (!ice_vsi_uses_fltr(fm_entry, vsi_handle)) in ice_add_to_vsi_fltr_list()
4049 &fm_entry->fltr_info); in ice_add_to_vsi_fltr_list()
4121 struct ice_fltr_list_entry *fm_entry, *tmp; in ice_clear_vsi_promisc() local
4174 list_for_each_entry_safe(fm_entry, tmp, &remove_list_head, list_entry) { in ice_clear_vsi_promisc()
4175 list_del(&fm_entry->list_entry); in ice_clear_vsi_promisc()
4176 devm_kfree(ice_hw_to_dev(hw), fm_entry); in ice_clear_vsi_promisc()
4363 struct ice_fltr_list_entry *fm_entry; in ice_remove_vsi_lkup_fltr() local
4402 list_for_each_entry_safe(fm_entry, tmp, &remove_list_head, list_entry) { in ice_remove_vsi_lkup_fltr()
4403 list_del(&fm_entry->list_entry); in ice_remove_vsi_lkup_fltr()
4404 devm_kfree(ice_hw_to_dev(hw), fm_entry); in ice_remove_vsi_lkup_fltr()