Lines Matching refs:f_info

2607 ice_fill_sw_rule(struct ice_hw *hw, struct ice_fltr_info *f_info,  in ice_fill_sw_rule()  argument
2622 s_rule->index = cpu_to_le16(f_info->fltr_rule_id); in ice_fill_sw_rule()
2632 ice_fill_sw_info(hw, f_info); in ice_fill_sw_rule()
2634 switch (f_info->fltr_act) { in ice_fill_sw_rule()
2637 f_info->fwd_id.hw_vsi_id); in ice_fill_sw_rule()
2638 if (f_info->lkup_type != ICE_SW_LKUP_VLAN) in ice_fill_sw_rule()
2645 f_info->fwd_id.vsi_list_id); in ice_fill_sw_rule()
2646 if (f_info->lkup_type != ICE_SW_LKUP_VLAN) in ice_fill_sw_rule()
2653 f_info->fwd_id.q_id); in ice_fill_sw_rule()
2660 q_rgn = f_info->qgrp_size > 0 ? in ice_fill_sw_rule()
2661 (u8)ilog2(f_info->qgrp_size) : 0; in ice_fill_sw_rule()
2664 f_info->fwd_id.q_id); in ice_fill_sw_rule()
2671 if (f_info->lb_en) in ice_fill_sw_rule()
2673 if (f_info->lan_en) in ice_fill_sw_rule()
2676 switch (f_info->lkup_type) { in ice_fill_sw_rule()
2678 daddr = f_info->l_data.mac.mac_addr; in ice_fill_sw_rule()
2681 vlan_id = f_info->l_data.vlan.vlan_id; in ice_fill_sw_rule()
2682 if (f_info->l_data.vlan.tpid_valid) in ice_fill_sw_rule()
2683 vlan_tpid = f_info->l_data.vlan.tpid; in ice_fill_sw_rule()
2684 if (f_info->fltr_act == ICE_FWD_TO_VSI || in ice_fill_sw_rule()
2685 f_info->fltr_act == ICE_FWD_TO_VSI_LIST) { in ice_fill_sw_rule()
2691 daddr = f_info->l_data.ethertype_mac.mac_addr; in ice_fill_sw_rule()
2695 *off = cpu_to_be16(f_info->l_data.ethertype_mac.ethertype); in ice_fill_sw_rule()
2698 daddr = f_info->l_data.mac_vlan.mac_addr; in ice_fill_sw_rule()
2699 vlan_id = f_info->l_data.mac_vlan.vlan_id; in ice_fill_sw_rule()
2702 vlan_id = f_info->l_data.mac_vlan.vlan_id; in ice_fill_sw_rule()
2705 daddr = f_info->l_data.mac_vlan.mac_addr; in ice_fill_sw_rule()
2711 s_rule->hdr.type = (f_info->flag & ICE_FLTR_RX) ? in ice_fill_sw_rule()
2716 s_rule->recipe_id = cpu_to_le16(f_info->lkup_type); in ice_fill_sw_rule()
2717 s_rule->src = cpu_to_le16(f_info->src); in ice_fill_sw_rule()
3035 ice_update_pkt_fwd_rule(struct ice_hw *hw, struct ice_fltr_info *f_info) in ice_update_pkt_fwd_rule() argument
3046 ice_fill_sw_rule(hw, f_info, s_rule, ice_aqc_opc_update_sw_rules); in ice_update_pkt_fwd_rule()
3048 s_rule->index = cpu_to_le16(f_info->fltr_rule_id); in ice_update_pkt_fwd_rule()
3227 ice_find_rule_entry(struct ice_hw *hw, u8 recp_id, struct ice_fltr_info *f_info) in ice_find_rule_entry() argument
3235 if (!memcmp(&f_info->l_data, &list_itr->fltr_info.l_data, in ice_find_rule_entry()
3236 sizeof(f_info->l_data)) && in ice_find_rule_entry()
3237 f_info->flag == list_itr->fltr_info.flag) { in ice_find_rule_entry()
3566 struct ice_fltr_info *f_info = &entry->fltr_info; in ice_vlan_fltr_exist() local
3567 u16 entry_vlan_id = f_info->l_data.vlan.vlan_id; in ice_vlan_fltr_exist()
3573 if (f_info->flag != ICE_FLTR_TX || in ice_vlan_fltr_exist()
3574 f_info->src_id != ICE_SRC_ID_VSI || in ice_vlan_fltr_exist()
3575 f_info->lkup_type != ICE_SW_LKUP_VLAN) in ice_vlan_fltr_exist()
3579 if (f_info->fltr_act != ICE_FWD_TO_VSI && in ice_vlan_fltr_exist()
3580 f_info->fltr_act != ICE_FWD_TO_VSI_LIST) in ice_vlan_fltr_exist()
3583 if (f_info->fltr_act == ICE_FWD_TO_VSI) { in ice_vlan_fltr_exist()
3584 if (hw_vsi_id != f_info->fwd_id.hw_vsi_id) in ice_vlan_fltr_exist()
3586 } else if (f_info->fltr_act == ICE_FWD_TO_VSI_LIST) { in ice_vlan_fltr_exist()
3940 struct ice_fltr_info f_info; in ice_cfg_dflt_vsi() local
3950 memset(&f_info, 0, sizeof(f_info)); in ice_cfg_dflt_vsi()
3952 f_info.lkup_type = ICE_SW_LKUP_DFLT; in ice_cfg_dflt_vsi()
3953 f_info.flag = direction; in ice_cfg_dflt_vsi()
3954 f_info.fltr_act = ICE_FWD_TO_VSI; in ice_cfg_dflt_vsi()
3955 f_info.fwd_id.hw_vsi_id = hw_vsi_id; in ice_cfg_dflt_vsi()
3956 f_info.vsi_handle = vsi_handle; in ice_cfg_dflt_vsi()
3958 if (f_info.flag & ICE_FLTR_RX) { in ice_cfg_dflt_vsi()
3959 f_info.src = hw->port_info->lport; in ice_cfg_dflt_vsi()
3960 f_info.src_id = ICE_SRC_ID_LPORT; in ice_cfg_dflt_vsi()
3961 } else if (f_info.flag & ICE_FLTR_TX) { in ice_cfg_dflt_vsi()
3962 f_info.src_id = ICE_SRC_ID_VSI; in ice_cfg_dflt_vsi()
3963 f_info.src = hw_vsi_id; in ice_cfg_dflt_vsi()
3964 f_info.flag |= ICE_FLTR_TX_ONLY; in ice_cfg_dflt_vsi()
3966 f_list_entry.fltr_info = f_info; in ice_cfg_dflt_vsi()