Lines Matching refs:lkups
3820 devm_kfree(ice_hw_to_dev(hw), lst_itr->lkups); in ice_rem_adv_rule_info()
5357 ice_add_adv_recipe(struct ice_hw *hw, struct ice_adv_lkup_elem *lkups, in ice_add_adv_recipe() argument
5384 if (lkups[i].type >= ICE_PROTOCOL_LAST) { in ice_add_adv_recipe()
5389 count = ice_fill_valid_words(&lkups[i], lkup_exts); in ice_add_adv_recipe()
5605 ice_find_dummy_packet(struct ice_adv_lkup_elem *lkups, u16 lkups_cnt, in ice_find_dummy_packet() argument
5631 if (lkups[i].type == ICE_UDP_ILOS) in ice_find_dummy_packet()
5633 else if (lkups[i].type == ICE_TCP_IL) in ice_find_dummy_packet()
5635 else if (lkups[i].type == ICE_IPV6_OFOS) in ice_find_dummy_packet()
5637 else if (lkups[i].type == ICE_VLAN_OFOS || in ice_find_dummy_packet()
5638 lkups[i].type == ICE_VLAN_EX) in ice_find_dummy_packet()
5640 else if (lkups[i].type == ICE_VLAN_IN) in ice_find_dummy_packet()
5642 else if (lkups[i].type == ICE_ETYPE_OL && in ice_find_dummy_packet()
5643 lkups[i].h_u.ethertype.ethtype_id == in ice_find_dummy_packet()
5645 lkups[i].m_u.ethertype.ethtype_id == in ice_find_dummy_packet()
5648 else if (lkups[i].type == ICE_ETYPE_IL && in ice_find_dummy_packet()
5649 lkups[i].h_u.ethertype.ethtype_id == in ice_find_dummy_packet()
5651 lkups[i].m_u.ethertype.ethtype_id == in ice_find_dummy_packet()
5654 else if (lkups[i].type == ICE_IPV6_IL) in ice_find_dummy_packet()
5656 else if (lkups[i].type == ICE_GTP_NO_PAY) in ice_find_dummy_packet()
5658 else if (lkups[i].type == ICE_PPPOE) { in ice_find_dummy_packet()
5660 if (lkups[i].h_u.pppoe_hdr.ppp_prot_id == in ice_find_dummy_packet()
5663 } else if (lkups[i].type == ICE_L2TPV3) in ice_find_dummy_packet()
5686 ice_fill_adv_dummy_packet(struct ice_adv_lkup_elem *lkups, u16 lkups_cnt, in ice_fill_adv_dummy_packet() argument
5709 type = lkups[i].type; in ice_fill_adv_dummy_packet()
5721 switch (lkups[i].type) { in ice_fill_adv_dummy_packet()
5785 u16 mask = lkups[i].m_raw[j]; in ice_fill_adv_dummy_packet()
5790 ptr[j] = (ptr[j] & ~mask) | (lkups[i].h_raw[j] & mask); in ice_fill_adv_dummy_packet()
5886 ice_find_adv_rule_entry(struct ice_hw *hw, struct ice_adv_lkup_elem *lkups, in ice_find_adv_rule_entry() argument
5901 if (memcmp(&list_itr->lkups[i], &lkups[i], in ice_find_adv_rule_entry()
5902 sizeof(*lkups))) { in ice_find_adv_rule_entry()
6043 ice_add_adv_rule(struct ice_hw *hw, struct ice_adv_lkup_elem *lkups, in ice_add_adv_rule() argument
6072 for (j = 0; j < ARRAY_SIZE(lkups->m_raw); j++) in ice_add_adv_rule()
6073 if (lkups[i].m_raw[j]) in ice_add_adv_rule()
6084 profile = ice_find_dummy_packet(lkups, lkups_cnt, rinfo->tun_type); in ice_add_adv_rule()
6108 status = ice_add_adv_recipe(hw, lkups, lkups_cnt, rinfo, &rid); in ice_add_adv_rule()
6111 m_entry = ice_find_adv_rule_entry(hw, lkups, lkups_cnt, rid, rinfo); in ice_add_adv_rule()
6192 status = ice_fill_adv_dummy_packet(lkups, lkups_cnt, s_rule, profile); in ice_add_adv_rule()
6226 adv_fltr->lkups = devm_kmemdup(ice_hw_to_dev(hw), lkups, in ice_add_adv_rule()
6227 lkups_cnt * sizeof(*lkups), GFP_KERNEL); in ice_add_adv_rule()
6228 if (!adv_fltr->lkups) { in ice_add_adv_rule()
6252 devm_kfree(ice_hw_to_dev(hw), adv_fltr->lkups); in ice_add_adv_rule()
6432 ice_rem_adv_rule(struct ice_hw *hw, struct ice_adv_lkup_elem *lkups, in ice_rem_adv_rule() argument
6446 if (lkups[i].type >= ICE_PROTOCOL_LAST) in ice_rem_adv_rule()
6449 count = ice_fill_valid_words(&lkups[i], &lkup_exts); in ice_rem_adv_rule()
6467 list_elem = ice_find_adv_rule_entry(hw, lkups, lkups_cnt, rid, rinfo); in ice_rem_adv_rule()
6508 devm_kfree(ice_hw_to_dev(hw), list_elem->lkups); in ice_rem_adv_rule()
6546 return ice_rem_adv_rule(hw, list_itr->lkups, in ice_rem_adv_rule_by_id()
6598 status = ice_rem_adv_rule(hw, list_itr->lkups, in ice_rem_adv_rule_for_vsi()
6631 status = ice_add_adv_rule(hw, adv_fltr->lkups, lk_cnt, rinfo, in ice_replay_vsi_adv_rule()