Lines Matching defs:fm_entry
65 ice_vsi_uses_fltr(struct ice_fltr_mgmt_list_entry *fm_entry, u16 vsi_handle);
1688 struct ice_fltr_mgmt_list_entry *fm_entry;
1697 fm_entry = (struct ice_fltr_mgmt_list_entry *)
1698 ice_malloc(hw, sizeof(*fm_entry));
1699 if (!fm_entry) {
1704 fm_entry->fltr_info = f_entry->fltr_info;
1707 fm_entry->vsi_count = 1;
1708 fm_entry->lg_act_idx = ICE_INVAL_LG_ACT_INDEX;
1709 fm_entry->sw_marker_id = ICE_INVAL_SW_MARKER_ID;
1710 fm_entry->counter_index = ICE_INVAL_COUNTER_ID;
1712 ice_fill_sw_rule(hw, &fm_entry->fltr_info, s_rule,
1720 ice_free(hw, fm_entry);
1725 fm_entry->fltr_info.fltr_rule_id = LE16_TO_CPU(s_rule->index);
1730 LIST_ADD(&fm_entry->list_entry, &recp_list->filt_rules);
1779 struct ice_fltr_mgmt_list_entry *fm_entry;
1791 LIST_FOR_EACH_ENTRY(fm_entry, rule_head, ice_fltr_mgmt_list_entry,
1793 struct ice_fltr_info *fi = &fm_entry->fltr_info;
2468 struct ice_fltr_mgmt_list_entry *fm_entry;
2475 fm_entry = (struct ice_fltr_mgmt_list_entry *)
2476 ice_malloc(hw, sizeof(*fm_entry));
2477 if (!fm_entry) {
2481 fm_entry->fltr_info = *f_info;
2482 fm_entry->vsi_count = 1;
2487 LIST_ADD(&fm_entry->list_entry, rule_head);
2997 struct ice_fltr_mgmt_list_entry *fm_entry;
3011 LIST_FOR_EACH_ENTRY(fm_entry, rule_head,
3013 if (ice_vsi_uses_fltr(fm_entry, vsi_handle)) {
3173 * @fm_entry: filter entry to inspect
3177 ice_vsi_uses_fltr(struct ice_fltr_mgmt_list_entry *fm_entry, u16 vsi_handle)
3179 return ((fm_entry->fltr_info.fltr_act == ICE_FWD_TO_VSI &&
3180 fm_entry->fltr_info.vsi_handle == vsi_handle) ||
3181 (fm_entry->fltr_info.fltr_act == ICE_FWD_TO_VSI_LIST &&
3182 fm_entry->vsi_list_info &&
3183 (ice_is_bit_set(fm_entry->vsi_list_info->vsi_map,
3248 struct ice_fltr_mgmt_list_entry *fm_entry;
3255 LIST_FOR_EACH_ENTRY(fm_entry, lkup_list_head,
3257 if (!ice_vsi_uses_fltr(fm_entry, vsi_handle))
3262 &fm_entry->fltr_info);
3437 struct ice_fltr_list_entry *fm_entry, *tmp;
3494 LIST_FOR_EACH_ENTRY_SAFE(fm_entry, tmp, &remove_list_head,
3496 LIST_DEL(&fm_entry->list_entry);
3497 ice_free(hw, fm_entry);
3771 struct ice_fltr_list_entry *fm_entry;
3815 LIST_FOR_EACH_ENTRY_SAFE(fm_entry, tmp, &remove_list_head,
3817 LIST_DEL(&fm_entry->list_entry);
3818 ice_free(hw, fm_entry);