Lines Matching refs:vsi

372 ice_vc_get_vlan_caps(struct ice_hw *hw, struct ice_vf *vf, struct ice_vsi *vsi,  in ice_vc_get_vlan_caps()  argument
397 ice_vf_vsi_cfg_svm_legacy_vlan_mode(vsi); in ice_vc_get_vlan_caps()
403 ice_vf_vsi_cfg_dvm_legacy_vlan_mode(vsi); in ice_vc_get_vlan_caps()
422 struct ice_vsi *vsi; in ice_vc_get_vf_res_msg() local
446 vsi = ice_get_vf_vsi(vf); in ice_vc_get_vf_res_msg()
447 if (!vsi) { in ice_vc_get_vf_res_msg()
452 vfres->vf_cap_flags |= ice_vc_get_vlan_caps(hw, vf, vsi, in ice_vc_get_vf_res_msg()
500 vfres->num_queue_pairs = vsi->num_txq; in ice_vc_get_vf_res_msg()
508 vfres->vsi_res[0].num_queue_pairs = vsi->num_txq; in ice_vc_get_vf_res_msg()
562 static bool ice_vc_isvalid_q_id(struct ice_vsi *vsi, u8 qid) in ice_vc_isvalid_q_id() argument
565 return qid < vsi->alloc_txq; in ice_vc_isvalid_q_id()
777 struct ice_vsi *vsi; in ice_vc_handle_rss_cfg() local
807 vsi = ice_get_vf_vsi(vf); in ice_vc_handle_rss_cfg()
808 if (!vsi) { in ice_vc_handle_rss_cfg()
838 ctx->info.q_opt_rss |= (vsi->info.q_opt_rss & in ice_vc_handle_rss_cfg()
840 ctx->info.q_opt_tc = vsi->info.q_opt_tc; in ice_vc_handle_rss_cfg()
841 ctx->info.q_opt_flags = vsi->info.q_opt_rss; in ice_vc_handle_rss_cfg()
846 status = ice_update_vsi(hw, vsi->idx, ctx, NULL); in ice_vc_handle_rss_cfg()
852 vsi->info.q_opt_rss = ctx->info.q_opt_rss; in ice_vc_handle_rss_cfg()
874 if (ice_add_rss_cfg(hw, vsi, &cfg)) { in ice_vc_handle_rss_cfg()
877 vsi->vsi_num, v_ret); in ice_vc_handle_rss_cfg()
882 status = ice_rem_rss_cfg(hw, vsi->idx, &cfg); in ice_vc_handle_rss_cfg()
911 struct ice_vsi *vsi; in ice_vc_config_rss_key() local
933 vsi = ice_get_vf_vsi(vf); in ice_vc_config_rss_key()
934 if (!vsi) { in ice_vc_config_rss_key()
939 if (ice_set_rss_key(vsi, vrk->key)) in ice_vc_config_rss_key()
957 struct ice_vsi *vsi; in ice_vc_config_rss_lut() local
979 vsi = ice_get_vf_vsi(vf); in ice_vc_config_rss_lut()
980 if (!vsi) { in ice_vc_config_rss_lut()
985 if (ice_set_rss_lut(vsi, vrl->lut, ICE_LUT_VSI_SIZE)) in ice_vc_config_rss_lut()
1004 struct ice_vsi *vsi; in ice_vc_config_rss_hfunc() local
1021 vsi = ice_get_vf_vsi(vf); in ice_vc_config_rss_hfunc()
1022 if (!vsi) { in ice_vc_config_rss_hfunc()
1030 if (ice_set_rss_hfunc(vsi, hfunc)) in ice_vc_config_rss_hfunc()
1053 struct ice_vsi *vsi; in ice_vc_cfg_promiscuous_mode_msg() local
1068 vsi = ice_get_vf_vsi(vf); in ice_vc_cfg_promiscuous_mode_msg()
1069 if (!vsi) { in ice_vc_cfg_promiscuous_mode_msg()
1090 vlan_ops = ice_get_compat_vsi_vlan_ops(vsi); in ice_vc_cfg_promiscuous_mode_msg()
1092 ret = vlan_ops->ena_rx_filtering(vsi); in ice_vc_cfg_promiscuous_mode_msg()
1094 ret = vlan_ops->dis_rx_filtering(vsi); in ice_vc_cfg_promiscuous_mode_msg()
1101 ice_vf_get_promisc_masks(vf, vsi, &ucast_m, &mcast_m); in ice_vc_cfg_promiscuous_mode_msg()
1106 ret = ice_set_dflt_vsi(vsi); in ice_vc_cfg_promiscuous_mode_msg()
1109 if (ice_is_dflt_vsi_in_use(vsi->port_info)) in ice_vc_cfg_promiscuous_mode_msg()
1110 ret = ice_clear_dflt_vsi(vsi); in ice_vc_cfg_promiscuous_mode_msg()
1117 mcast_err = ice_vf_set_vsi_promisc(vf, vsi, mcast_m); in ice_vc_cfg_promiscuous_mode_msg()
1119 mcast_err = ice_vf_clear_vsi_promisc(vf, vsi, mcast_m); in ice_vc_cfg_promiscuous_mode_msg()
1129 ucast_err = ice_vf_set_vsi_promisc(vf, vsi, ucast_m); in ice_vc_cfg_promiscuous_mode_msg()
1131 ucast_err = ice_vf_clear_vsi_promisc(vf, vsi, ucast_m); in ice_vc_cfg_promiscuous_mode_msg()
1134 mcast_err = ice_vf_set_vsi_promisc(vf, vsi, mcast_m); in ice_vc_cfg_promiscuous_mode_msg()
1136 mcast_err = ice_vf_clear_vsi_promisc(vf, vsi, mcast_m); in ice_vc_cfg_promiscuous_mode_msg()
1190 struct ice_vsi *vsi; in ice_vc_get_stats_msg() local
1202 vsi = ice_get_vf_vsi(vf); in ice_vc_get_stats_msg()
1203 if (!vsi) { in ice_vc_get_stats_msg()
1208 ice_update_eth_stats(vsi); in ice_vc_get_stats_msg()
1210 stats = vsi->eth_stats; in ice_vc_get_stats_msg()
1239 static void ice_vf_ena_txq_interrupt(struct ice_vsi *vsi, u32 q_idx) in ice_vf_ena_txq_interrupt() argument
1241 struct ice_hw *hw = &vsi->back->hw; in ice_vf_ena_txq_interrupt()
1242 u32 pfq = vsi->txq_map[q_idx]; in ice_vf_ena_txq_interrupt()
1262 static void ice_vf_ena_rxq_interrupt(struct ice_vsi *vsi, u32 q_idx) in ice_vf_ena_rxq_interrupt() argument
1264 struct ice_hw *hw = &vsi->back->hw; in ice_vf_ena_rxq_interrupt()
1265 u32 pfq = vsi->rxq_map[q_idx]; in ice_vf_ena_rxq_interrupt()
1292 struct ice_vsi *vsi; in ice_vc_ena_qs_msg() local
1311 vsi = ice_get_vf_vsi(vf); in ice_vc_ena_qs_msg()
1312 if (!vsi) { in ice_vc_ena_qs_msg()
1323 if (!ice_vc_isvalid_q_id(vsi, vf_q_id)) { in ice_vc_ena_qs_msg()
1332 if (ice_vsi_ctrl_one_rx_ring(vsi, true, vf_q_id, true)) { in ice_vc_ena_qs_msg()
1333 dev_err(ice_pf_to_dev(vsi->back), "Failed to enable Rx ring %d on VSI %d\n", in ice_vc_ena_qs_msg()
1334 vf_q_id, vsi->vsi_num); in ice_vc_ena_qs_msg()
1339 ice_vf_ena_rxq_interrupt(vsi, vf_q_id); in ice_vc_ena_qs_msg()
1345 if (!ice_vc_isvalid_q_id(vsi, vf_q_id)) { in ice_vc_ena_qs_msg()
1354 ice_vf_ena_txq_interrupt(vsi, vf_q_id); in ice_vc_ena_qs_msg()
1379 ice_vf_vsi_dis_single_txq(struct ice_vf *vf, struct ice_vsi *vsi, u16 q_id) in ice_vf_vsi_dis_single_txq() argument
1386 dev_dbg(ice_pf_to_dev(vsi->back), "Queue %u on VSI %u is not enabled, but stopping it anyway\n", in ice_vf_vsi_dis_single_txq()
1387 q_id, vsi->vsi_num); in ice_vf_vsi_dis_single_txq()
1389 ring = vsi->tx_rings[q_id]; in ice_vf_vsi_dis_single_txq()
1393 ice_fill_txq_meta(vsi, ring, &txq_meta); in ice_vf_vsi_dis_single_txq()
1395 err = ice_vsi_stop_tx_ring(vsi, ICE_NO_RESET, vf->vf_id, ring, &txq_meta); in ice_vf_vsi_dis_single_txq()
1397 dev_err(ice_pf_to_dev(vsi->back), "Failed to stop Tx ring %d on VSI %d\n", in ice_vf_vsi_dis_single_txq()
1398 q_id, vsi->vsi_num); in ice_vf_vsi_dis_single_txq()
1420 struct ice_vsi *vsi; in ice_vc_dis_qs_msg() local
1440 vsi = ice_get_vf_vsi(vf); in ice_vc_dis_qs_msg()
1441 if (!vsi) { in ice_vc_dis_qs_msg()
1450 if (!ice_vc_isvalid_q_id(vsi, vf_q_id)) { in ice_vc_dis_qs_msg()
1455 if (ice_vf_vsi_dis_single_txq(vf, vsi, vf_q_id)) { in ice_vc_dis_qs_msg()
1466 if (ice_vsi_stop_all_rx_rings(vsi)) { in ice_vc_dis_qs_msg()
1467 dev_err(ice_pf_to_dev(vsi->back), "Failed to stop all Rx rings on VSI %d\n", in ice_vc_dis_qs_msg()
1468 vsi->vsi_num); in ice_vc_dis_qs_msg()
1476 if (!ice_vc_isvalid_q_id(vsi, vf_q_id)) { in ice_vc_dis_qs_msg()
1485 if (ice_vsi_ctrl_one_rx_ring(vsi, false, vf_q_id, in ice_vc_dis_qs_msg()
1487 dev_err(ice_pf_to_dev(vsi->back), "Failed to stop Rx ring %d on VSI %d\n", in ice_vc_dis_qs_msg()
1488 vf_q_id, vsi->vsi_num); in ice_vc_dis_qs_msg()
1517 ice_cfg_interrupt(struct ice_vf *vf, struct ice_vsi *vsi, in ice_cfg_interrupt() argument
1531 if (!ice_vc_isvalid_q_id(vsi, vsi_q_id)) in ice_cfg_interrupt()
1536 vsi->rx_rings[vsi_q_id]->q_vector = q_vector; in ice_cfg_interrupt()
1537 ice_cfg_rxq_interrupt(vsi, vsi_q_id, in ice_cfg_interrupt()
1546 if (!ice_vc_isvalid_q_id(vsi, vsi_q_id)) in ice_cfg_interrupt()
1551 vsi->tx_rings[vsi_q_id]->q_vector = q_vector; in ice_cfg_interrupt()
1552 ice_cfg_txq_interrupt(vsi, vsi_q_id, in ice_cfg_interrupt()
1573 struct ice_vsi *vsi; in ice_vc_cfg_irq_map_msg() local
1590 vsi = ice_get_vf_vsi(vf); in ice_vc_cfg_irq_map_msg()
1591 if (!vsi) { in ice_vc_cfg_irq_map_msg()
1620 q_vector = vsi->q_vectors[vector_id - ICE_NONQ_VECS_VF]; in ice_vc_cfg_irq_map_msg()
1627 v_ret = ice_cfg_interrupt(vf, vsi, map, q_vector); in ice_vc_cfg_irq_map_msg()
1652 struct ice_vsi *vsi; in ice_vc_cfg_qs_msg() local
1675 vsi = ice_get_vf_vsi(vf); in ice_vc_cfg_qs_msg()
1676 if (!vsi) in ice_vc_cfg_qs_msg()
1680 qci->num_queue_pairs > min_t(u16, vsi->alloc_txq, vsi->alloc_rxq)) { in ice_vc_cfg_qs_msg()
1682 vf->vf_id, min_t(u16, vsi->alloc_txq, vsi->alloc_rxq)); in ice_vc_cfg_qs_msg()
1703 !ice_vc_isvalid_q_id(vsi, qpi->txq.queue_id)) { in ice_vc_cfg_qs_msg()
1712 if (q_idx >= vsi->alloc_txq || q_idx >= vsi->alloc_rxq) { in ice_vc_cfg_qs_msg()
1718 vsi->tx_rings[i]->dma = qpi->txq.dma_ring_addr; in ice_vc_cfg_qs_msg()
1719 vsi->tx_rings[i]->count = qpi->txq.ring_len; in ice_vc_cfg_qs_msg()
1722 if (ice_vf_vsi_dis_single_txq(vf, vsi, q_idx)) in ice_vc_cfg_qs_msg()
1726 if (ice_vsi_cfg_single_txq(vsi, vsi->tx_rings, q_idx)) { in ice_vc_cfg_qs_msg()
1738 vsi->rx_rings[i]->dma = qpi->rxq.dma_ring_addr; in ice_vc_cfg_qs_msg()
1739 vsi->rx_rings[i]->count = qpi->rxq.ring_len; in ice_vc_cfg_qs_msg()
1742 vsi->rx_rings[q_idx]->flags |= in ice_vc_cfg_qs_msg()
1745 vsi->rx_rings[q_idx]->flags &= in ice_vc_cfg_qs_msg()
1752 vsi->rx_buf_len = qpi->rxq.databuffer_size; in ice_vc_cfg_qs_msg()
1753 vsi->rx_rings[i]->rx_buf_len = vsi->rx_buf_len; in ice_vc_cfg_qs_msg()
1758 vsi->max_frame = qpi->rxq.max_pkt_size; in ice_vc_cfg_qs_msg()
1764 vsi->max_frame += VLAN_HLEN; in ice_vc_cfg_qs_msg()
1766 if (ice_vsi_cfg_single_rxq(vsi, q_idx)) { in ice_vc_cfg_qs_msg()
1786 ice_write_qrxflxp_cntxt(&vsi->back->hw, in ice_vc_cfg_qs_msg()
1787 vsi->rxq_map[q_idx], in ice_vc_cfg_qs_msg()
1803 if (ice_vsi_ctrl_one_rx_ring(vsi, false, i, true)) in ice_vc_cfg_qs_msg()
1806 if (ice_vf_vsi_dis_single_txq(vf, vsi, i)) in ice_vc_cfg_qs_msg()
1922 ice_vc_add_mac_addr(struct ice_vf *vf, struct ice_vsi *vsi, in ice_vc_add_mac_addr() argument
1938 ret = ice_fltr_add_mac(vsi, mac_addr, ICE_FWD_TO_VSI); in ice_vc_add_mac_addr()
2020 ice_vc_del_mac_addr(struct ice_vf *vf, struct ice_vsi *vsi, in ice_vc_del_mac_addr() argument
2031 status = ice_fltr_remove_mac(vsi, mac_addr, ICE_FWD_TO_VSI); in ice_vc_del_mac_addr()
2061 (struct ice_vf *vf, struct ice_vsi *vsi, in ice_vc_handle_mac_addr_msg()
2068 struct ice_vsi *vsi; in ice_vc_handle_mac_addr_msg() local
2097 vsi = ice_get_vf_vsi(vf); in ice_vc_handle_mac_addr_msg()
2098 if (!vsi) { in ice_vc_handle_mac_addr_msg()
2111 result = ice_vc_cfg_mac(vf, vsi, &al->list[i]); in ice_vc_handle_mac_addr_msg()
2242 static int ice_vf_ena_vlan_promisc(struct ice_vsi *vsi, struct ice_vlan *vlan) in ice_vf_ena_vlan_promisc() argument
2247 status = ice_fltr_set_vsi_promisc(&vsi->back->hw, vsi->idx, promisc_m, in ice_vf_ena_vlan_promisc()
2263 static int ice_vf_dis_vlan_promisc(struct ice_vsi *vsi, struct ice_vlan *vlan) in ice_vf_dis_vlan_promisc() argument
2268 status = ice_fltr_clear_vsi_promisc(&vsi->back->hw, vsi->idx, promisc_m, in ice_vf_dis_vlan_promisc()
2287 static bool ice_vf_has_max_vlans(struct ice_vf *vf, struct ice_vsi *vsi) in ice_vf_has_max_vlans() argument
2293 return ((ice_vsi_num_non_zero_vlans(vsi) + in ice_vf_has_max_vlans()
2312 struct ice_vsi *vsi; in ice_vc_process_vlan_msg() local
2342 vsi = ice_get_vf_vsi(vf); in ice_vc_process_vlan_msg()
2343 if (!vsi) { in ice_vc_process_vlan_msg()
2348 if (add_v && ice_vf_has_max_vlans(vf, vsi)) { in ice_vc_process_vlan_msg()
2378 if (ice_vf_has_max_vlans(vf, vsi)) { in ice_vc_process_vlan_msg()
2396 status = vsi->inner_vlan_ops.add_vlan(vsi, &vlan); in ice_vc_process_vlan_msg()
2405 status = vsi->inner_vlan_ops.ena_tx_filtering(vsi); in ice_vc_process_vlan_msg()
2413 if (vsi->inner_vlan_ops.ena_rx_filtering(vsi)) { in ice_vc_process_vlan_msg()
2420 status = ice_vf_ena_vlan_promisc(vsi, &vlan); in ice_vc_process_vlan_msg()
2438 num_vf_vlan = vsi->num_vlan; in ice_vc_process_vlan_msg()
2451 status = vsi->inner_vlan_ops.del_vlan(vsi, &vlan); in ice_vc_process_vlan_msg()
2458 if (!ice_vsi_has_non_zero_vlans(vsi)) { in ice_vc_process_vlan_msg()
2459 vsi->inner_vlan_ops.dis_tx_filtering(vsi); in ice_vc_process_vlan_msg()
2460 vsi->inner_vlan_ops.dis_rx_filtering(vsi); in ice_vc_process_vlan_msg()
2464 ice_vf_dis_vlan_promisc(vsi, &vlan); in ice_vc_process_vlan_msg()
2506 static bool ice_vsi_is_rxq_crc_strip_dis(struct ice_vsi *vsi) in ice_vsi_is_rxq_crc_strip_dis() argument
2510 ice_for_each_alloc_rxq(vsi, i) in ice_vsi_is_rxq_crc_strip_dis()
2511 if (vsi->rx_rings[i]->flags & ICE_RX_FLAGS_CRC_STRIP_DIS) in ice_vsi_is_rxq_crc_strip_dis()
2526 struct ice_vsi *vsi; in ice_vc_ena_vlan_stripping() local
2538 vsi = ice_get_vf_vsi(vf); in ice_vc_ena_vlan_stripping()
2539 if (!vsi) { in ice_vc_ena_vlan_stripping()
2544 if (vsi->inner_vlan_ops.ena_stripping(vsi, ETH_P_8021Q)) in ice_vc_ena_vlan_stripping()
2563 struct ice_vsi *vsi; in ice_vc_dis_vlan_stripping() local
2575 vsi = ice_get_vf_vsi(vf); in ice_vc_dis_vlan_stripping()
2576 if (!vsi) { in ice_vc_dis_vlan_stripping()
2581 if (vsi->inner_vlan_ops.dis_stripping(vsi)) in ice_vc_dis_vlan_stripping()
2639 struct ice_vsi *vsi; in ice_vc_set_rss_hena() local
2656 vsi = ice_get_vf_vsi(vf); in ice_vc_set_rss_hena()
2657 if (!vsi) { in ice_vc_set_rss_hena()
2666 status = ice_rem_vsi_rss_cfg(&pf->hw, vsi->idx); in ice_vc_set_rss_hena()
2683 status = ice_add_avf_rss_cfg(&pf->hw, vsi, vrh->hena); in ice_vc_set_rss_hena()
2760 struct ice_vsi *vsi = ice_get_vf_vsi(vf); in ice_vf_init_vlan_stripping() local
2764 if (!vsi) in ice_vf_init_vlan_stripping()
2770 if (ice_vf_is_port_vlan_ena(vf) && !ice_is_dvm_ena(&vsi->back->hw)) in ice_vf_init_vlan_stripping()
2776 err = vsi->inner_vlan_ops.ena_stripping(vsi, ETH_P_8021Q); in ice_vf_init_vlan_stripping()
2782 return vsi->inner_vlan_ops.dis_stripping(vsi); in ice_vf_init_vlan_stripping()
3109 ice_vc_vlan_action(struct ice_vsi *vsi, in ice_vc_vlan_action() argument
3115 err = vlan_action(vsi, vlan); in ice_vc_vlan_action()
3129 ice_vc_del_vlans(struct ice_vf *vf, struct ice_vsi *vsi, in ice_vc_del_vlans() argument
3144 err = ice_vc_vlan_action(vsi, in ice_vc_del_vlans()
3145 vsi->outer_vlan_ops.del_vlan, in ice_vc_del_vlans()
3151 ice_vf_dis_vlan_promisc(vsi, &vlan); in ice_vc_del_vlans()
3154 if (!ice_vsi_has_non_zero_vlans(vsi) && ice_is_dvm_ena(&vsi->back->hw)) { in ice_vc_del_vlans()
3155 err = vsi->outer_vlan_ops.dis_tx_filtering(vsi); in ice_vc_del_vlans()
3165 err = ice_vc_vlan_action(vsi, in ice_vc_del_vlans()
3166 vsi->inner_vlan_ops.del_vlan, in ice_vc_del_vlans()
3174 if (!ice_is_dvm_ena(&vsi->back->hw)) { in ice_vc_del_vlans()
3176 ice_vf_dis_vlan_promisc(vsi, &vlan); in ice_vc_del_vlans()
3179 if (!ice_vsi_has_non_zero_vlans(vsi)) { in ice_vc_del_vlans()
3180 err = vsi->inner_vlan_ops.dis_tx_filtering(vsi); in ice_vc_del_vlans()
3201 struct ice_vsi *vsi; in ice_vc_remove_vlan_v2_msg() local
3214 vsi = ice_get_vf_vsi(vf); in ice_vc_remove_vlan_v2_msg()
3215 if (!vsi) { in ice_vc_remove_vlan_v2_msg()
3220 if (ice_vc_del_vlans(vf, vsi, vfl)) in ice_vc_remove_vlan_v2_msg()
3235 ice_vc_add_vlans(struct ice_vf *vf, struct ice_vsi *vsi, in ice_vc_add_vlans() argument
3250 err = ice_vc_vlan_action(vsi, in ice_vc_add_vlans()
3251 vsi->outer_vlan_ops.add_vlan, in ice_vc_add_vlans()
3257 err = ice_vf_ena_vlan_promisc(vsi, &vlan); in ice_vc_add_vlans()
3263 if (vf->spoofchk && vlan.vid && ice_is_dvm_ena(&vsi->back->hw)) { in ice_vc_add_vlans()
3264 err = vsi->outer_vlan_ops.ena_tx_filtering(vsi); in ice_vc_add_vlans()
3274 err = ice_vc_vlan_action(vsi, in ice_vc_add_vlans()
3275 vsi->inner_vlan_ops.add_vlan, in ice_vc_add_vlans()
3283 if (!ice_is_dvm_ena(&vsi->back->hw)) { in ice_vc_add_vlans()
3285 err = ice_vf_ena_vlan_promisc(vsi, &vlan); in ice_vc_add_vlans()
3292 err = vsi->inner_vlan_ops.ena_tx_filtering(vsi); in ice_vc_add_vlans()
3314 ice_vc_validate_add_vlan_filter_list(struct ice_vsi *vsi, in ice_vc_validate_add_vlan_filter_list() argument
3318 u16 num_requested_filters = ice_vsi_num_non_zero_vlans(vsi) + in ice_vc_validate_add_vlan_filter_list()
3337 struct ice_vsi *vsi; in ice_vc_add_vlan_v2_msg() local
3349 vsi = ice_get_vf_vsi(vf); in ice_vc_add_vlan_v2_msg()
3350 if (!vsi) { in ice_vc_add_vlan_v2_msg()
3355 if (!ice_vc_validate_add_vlan_filter_list(vsi, in ice_vc_add_vlan_v2_msg()
3362 if (ice_vc_add_vlans(vf, vsi, vfl)) in ice_vc_add_vlan_v2_msg()
3458 ice_vc_ena_vlan_offload(struct ice_vsi *vsi, in ice_vc_ena_vlan_offload() argument
3459 int (*ena_offload)(struct ice_vsi *vsi, u16 tpid), in ice_vc_ena_vlan_offload() argument
3469 err = ena_offload(vsi, tpid); in ice_vc_ena_vlan_offload()
3492 static void ice_vsi_update_l2tsel(struct ice_vsi *vsi, enum ice_l2tsel l2tsel) in ice_vsi_update_l2tsel() argument
3494 struct ice_hw *hw = &vsi->back->hw; in ice_vsi_update_l2tsel()
3503 for (i = 0; i < vsi->alloc_rxq; i++) { in ice_vsi_update_l2tsel()
3504 u16 pfq = vsi->rxq_map[i]; in ice_vsi_update_l2tsel()
3532 struct ice_vsi *vsi; in ice_vc_ena_vlan_stripping_v2_msg() local
3544 vsi = ice_get_vf_vsi(vf); in ice_vc_ena_vlan_stripping_v2_msg()
3545 if (!vsi) { in ice_vc_ena_vlan_stripping_v2_msg()
3556 if (ice_vsi_is_rxq_crc_strip_dis(vsi)) { in ice_vc_ena_vlan_stripping_v2_msg()
3563 if (ice_vc_ena_vlan_offload(vsi, in ice_vc_ena_vlan_stripping_v2_msg()
3564 vsi->outer_vlan_ops.ena_stripping, in ice_vc_ena_vlan_stripping_v2_msg()
3580 ice_vsi_update_l2tsel(vsi, l2tsel); in ice_vc_ena_vlan_stripping_v2_msg()
3588 ice_vc_ena_vlan_offload(vsi, vsi->inner_vlan_ops.ena_stripping, in ice_vc_ena_vlan_stripping_v2_msg()
3616 struct ice_vsi *vsi; in ice_vc_dis_vlan_stripping_v2_msg() local
3628 vsi = ice_get_vf_vsi(vf); in ice_vc_dis_vlan_stripping_v2_msg()
3629 if (!vsi) { in ice_vc_dis_vlan_stripping_v2_msg()
3642 if (vsi->outer_vlan_ops.dis_stripping(vsi)) { in ice_vc_dis_vlan_stripping_v2_msg()
3657 ice_vsi_update_l2tsel(vsi, l2tsel); in ice_vc_dis_vlan_stripping_v2_msg()
3664 if (ethertype_setting && vsi->inner_vlan_ops.dis_stripping(vsi)) { in ice_vc_dis_vlan_stripping_v2_msg()
3691 struct ice_vsi *vsi; in ice_vc_ena_vlan_insertion_v2_msg() local
3703 vsi = ice_get_vf_vsi(vf); in ice_vc_ena_vlan_insertion_v2_msg()
3704 if (!vsi) { in ice_vc_ena_vlan_insertion_v2_msg()
3717 ice_vc_ena_vlan_offload(vsi, vsi->outer_vlan_ops.ena_insertion, in ice_vc_ena_vlan_insertion_v2_msg()
3725 ice_vc_ena_vlan_offload(vsi, vsi->inner_vlan_ops.ena_insertion, in ice_vc_ena_vlan_insertion_v2_msg()
3750 struct ice_vsi *vsi; in ice_vc_dis_vlan_insertion_v2_msg() local
3762 vsi = ice_get_vf_vsi(vf); in ice_vc_dis_vlan_insertion_v2_msg()
3763 if (!vsi) { in ice_vc_dis_vlan_insertion_v2_msg()
3775 if (ethertype_setting && vsi->outer_vlan_ops.dis_insertion(vsi)) { in ice_vc_dis_vlan_insertion_v2_msg()
3781 if (ethertype_setting && vsi->inner_vlan_ops.dis_insertion(vsi)) { in ice_vc_dis_vlan_insertion_v2_msg()
3849 struct ice_vsi *vsi; in ice_vc_repr_add_mac() local
3861 vsi = ice_get_vf_vsi(vf); in ice_vc_repr_add_mac()
3862 if (!vsi) { in ice_vc_repr_add_mac()