Lines Matching refs:rinfo

4497 ice_add_special_words(struct ice_adv_rule_info *rinfo,  in ice_add_special_words()  argument
4505 if (ice_tun_type_match_word(rinfo->tun_type, &mask)) { in ice_add_special_words()
4526 ice_get_compat_fv_bitmap(struct ice_hw *hw, struct ice_adv_rule_info *rinfo, in ice_get_compat_fv_bitmap() argument
4533 switch (rinfo->tun_type) { in ice_get_compat_fv_bitmap()
4566 u16 lkups_cnt, struct ice_adv_rule_info *rinfo, u16 *rid) in ice_add_adv_recipe() argument
4620 ice_get_compat_fv_bitmap(hw, rinfo, fv_bitmap); in ice_add_adv_recipe()
4629 status = ice_add_special_words(rinfo, lkup_exts); in ice_add_adv_recipe()
4641 rm->priority = (u8)rinfo->priority; in ice_add_adv_recipe()
4658 *rid = ice_find_recp(hw, lkup_exts, rinfo->tun_type); in ice_add_adv_recipe()
4663 rm->tun_type = rinfo->tun_type; in ice_add_adv_recipe()
5010 struct ice_adv_rule_info *rinfo) in ice_find_adv_rule_entry() argument
5028 if (rinfo->sw_act.flag == list_itr->rule_info.sw_act.flag && in ice_find_adv_rule_entry()
5029 rinfo->tun_type == list_itr->rule_info.tun_type && in ice_find_adv_rule_entry()
5165 u16 lkups_cnt, struct ice_adv_rule_info *rinfo, in ice_add_adv_rule() argument
5204 ice_find_dummy_packet(lkups, lkups_cnt, rinfo->tun_type, &pkt, &pkt_len, in ice_add_adv_rule()
5211 if (!(rinfo->sw_act.fltr_act == ICE_FWD_TO_VSI || in ice_add_adv_rule()
5212 rinfo->sw_act.fltr_act == ICE_FWD_TO_Q || in ice_add_adv_rule()
5213 rinfo->sw_act.fltr_act == ICE_FWD_TO_QGRP || in ice_add_adv_rule()
5214 rinfo->sw_act.fltr_act == ICE_DROP_PACKET)) in ice_add_adv_rule()
5217 vsi_handle = rinfo->sw_act.vsi_handle; in ice_add_adv_rule()
5221 if (rinfo->sw_act.fltr_act == ICE_FWD_TO_VSI) in ice_add_adv_rule()
5222 rinfo->sw_act.fwd_id.hw_vsi_id = in ice_add_adv_rule()
5224 if (rinfo->sw_act.flag & ICE_FLTR_TX) in ice_add_adv_rule()
5225 rinfo->sw_act.src = ice_get_hw_vsi_num(hw, vsi_handle); in ice_add_adv_rule()
5227 status = ice_add_adv_recipe(hw, lkups, lkups_cnt, rinfo, &rid); in ice_add_adv_rule()
5230 m_entry = ice_find_adv_rule_entry(hw, lkups, lkups_cnt, rid, rinfo); in ice_add_adv_rule()
5242 rinfo); in ice_add_adv_rule()
5246 added_entry->vsi_handle = rinfo->sw_act.vsi_handle; in ice_add_adv_rule()
5254 if (!rinfo->flags_info.act_valid) { in ice_add_adv_rule()
5258 act |= rinfo->flags_info.act & (ICE_SINGLE_ACT_LAN_ENABLE | in ice_add_adv_rule()
5262 switch (rinfo->sw_act.fltr_act) { in ice_add_adv_rule()
5264 act |= (rinfo->sw_act.fwd_id.hw_vsi_id << in ice_add_adv_rule()
5270 act |= (rinfo->sw_act.fwd_id.q_id << ICE_SINGLE_ACT_Q_INDEX_S) & in ice_add_adv_rule()
5274 q_rgn = rinfo->sw_act.qgrp_size > 0 ? in ice_add_adv_rule()
5275 (u8)ilog2(rinfo->sw_act.qgrp_size) : 0; in ice_add_adv_rule()
5277 act |= (rinfo->sw_act.fwd_id.q_id << ICE_SINGLE_ACT_Q_INDEX_S) & in ice_add_adv_rule()
5298 if (rinfo->rx) { in ice_add_adv_rule()
5304 s_rule->pdata.lkup_tx_rx.src = cpu_to_le16(rinfo->sw_act.src); in ice_add_adv_rule()
5315 if (rinfo->tun_type != ICE_NON_TUN) { in ice_add_adv_rule()
5316 status = ice_fill_adv_packet_tun(hw, rinfo->tun_type, in ice_add_adv_rule()
5344 adv_fltr->rule_info = *rinfo; in ice_add_adv_rule()
5351 if (rinfo->sw_act.fltr_act == ICE_FWD_TO_VSI) in ice_add_adv_rule()
5359 added_entry->vsi_handle = rinfo->sw_act.vsi_handle; in ice_add_adv_rule()
5537 u16 lkups_cnt, struct ice_adv_rule_info *rinfo) in ice_rem_adv_rule() argument
5561 status = ice_add_special_words(rinfo, &lkup_exts); in ice_rem_adv_rule()
5565 rid = ice_find_recp(hw, &lkup_exts, rinfo->tun_type); in ice_rem_adv_rule()
5571 list_elem = ice_find_adv_rule_entry(hw, lkups, lkups_cnt, rid, rinfo); in ice_rem_adv_rule()
5580 vsi_handle = rinfo->sw_act.vsi_handle; in ice_rem_adv_rule()
5583 vsi_handle = rinfo->sw_act.vsi_handle; in ice_rem_adv_rule()
5639 struct ice_adv_rule_info rinfo; in ice_rem_adv_rule_by_id() local
5649 rinfo = list_itr->rule_info; in ice_rem_adv_rule_by_id()
5650 rinfo.sw_act.vsi_handle = remove_entry->vsi_handle; in ice_rem_adv_rule_by_id()
5652 list_itr->lkups_cnt, &rinfo); in ice_rem_adv_rule_by_id()