Lines Matching refs:fm_entry
1081 struct ice_fltr_mgmt_list_entry *fm_entry; in ice_create_pkt_fwd_rule() local
1091 fm_entry = devm_kzalloc(ice_hw_to_dev(hw), sizeof(*fm_entry), in ice_create_pkt_fwd_rule()
1093 if (!fm_entry) { in ice_create_pkt_fwd_rule()
1098 fm_entry->fltr_info = f_entry->fltr_info; in ice_create_pkt_fwd_rule()
1101 fm_entry->vsi_count = 1; in ice_create_pkt_fwd_rule()
1102 fm_entry->lg_act_idx = ICE_INVAL_LG_ACT_INDEX; in ice_create_pkt_fwd_rule()
1103 fm_entry->sw_marker_id = ICE_INVAL_SW_MARKER_ID; in ice_create_pkt_fwd_rule()
1104 fm_entry->counter_index = ICE_INVAL_COUNTER_ID; in ice_create_pkt_fwd_rule()
1106 ice_fill_sw_rule(hw, &fm_entry->fltr_info, s_rule, in ice_create_pkt_fwd_rule()
1112 devm_kfree(ice_hw_to_dev(hw), fm_entry); in ice_create_pkt_fwd_rule()
1118 fm_entry->fltr_info.fltr_rule_id = in ice_create_pkt_fwd_rule()
1124 l_type = fm_entry->fltr_info.lkup_type; in ice_create_pkt_fwd_rule()
1126 list_add(&fm_entry->list_entry, &recp->filt_rules); in ice_create_pkt_fwd_rule()
1173 struct ice_fltr_mgmt_list_entry *fm_entry; in ice_update_sw_rule_bridge_mode() local
1182 list_for_each_entry(fm_entry, rule_head, list_entry) { in ice_update_sw_rule_bridge_mode()
1183 struct ice_fltr_info *fi = &fm_entry->fltr_info; in ice_update_sw_rule_bridge_mode()
1763 struct ice_fltr_mgmt_list_entry *fm_entry; in ice_add_mac() local
1770 fm_entry = devm_kzalloc(ice_hw_to_dev(hw), in ice_add_mac()
1771 sizeof(*fm_entry), GFP_KERNEL); in ice_add_mac()
1772 if (!fm_entry) { in ice_add_mac()
1776 fm_entry->fltr_info = *f_info; in ice_add_mac()
1777 fm_entry->vsi_count = 1; in ice_add_mac()
1782 list_add(&fm_entry->list_entry, rule_head); in ice_add_mac()
2264 ice_vsi_uses_fltr(struct ice_fltr_mgmt_list_entry *fm_entry, u16 vsi_handle) in ice_vsi_uses_fltr() argument
2266 return ((fm_entry->fltr_info.fltr_act == ICE_FWD_TO_VSI && in ice_vsi_uses_fltr()
2267 fm_entry->fltr_info.vsi_handle == vsi_handle) || in ice_vsi_uses_fltr()
2268 (fm_entry->fltr_info.fltr_act == ICE_FWD_TO_VSI_LIST && in ice_vsi_uses_fltr()
2269 (test_bit(vsi_handle, fm_entry->vsi_list_info->vsi_map)))); in ice_vsi_uses_fltr()
2333 struct ice_fltr_mgmt_list_entry *fm_entry; in ice_add_to_vsi_fltr_list() local
2340 list_for_each_entry(fm_entry, lkup_list_head, list_entry) { in ice_add_to_vsi_fltr_list()
2343 fi = &fm_entry->fltr_info; in ice_add_to_vsi_fltr_list()
2344 if (!fi || !ice_vsi_uses_fltr(fm_entry, vsi_handle)) in ice_add_to_vsi_fltr_list()
2421 struct ice_fltr_list_entry *fm_entry, *tmp; in ice_clear_vsi_promisc() local
2469 list_for_each_entry_safe(fm_entry, tmp, &remove_list_head, list_entry) { in ice_clear_vsi_promisc()
2470 list_del(&fm_entry->list_entry); in ice_clear_vsi_promisc()
2471 devm_kfree(ice_hw_to_dev(hw), fm_entry); in ice_clear_vsi_promisc()
2651 struct ice_fltr_list_entry *fm_entry; in ice_remove_vsi_lkup_fltr() local
2689 list_for_each_entry_safe(fm_entry, tmp, &remove_list_head, list_entry) { in ice_remove_vsi_lkup_fltr()
2690 list_del(&fm_entry->list_entry); in ice_remove_vsi_lkup_fltr()
2691 devm_kfree(ice_hw_to_dev(hw), fm_entry); in ice_remove_vsi_lkup_fltr()