Lines Matching refs:vsi

48 static void	ixl_vf_vsi_release(struct ixl_pf *pf, struct ixl_vsi *vsi);
174 vf->vsi.seid = vsi_ctx.seid; in ixl_vf_alloc_vsi()
175 vf->vsi.vsi_num = vsi_ctx.vsi_number; in ixl_vf_alloc_vsi()
176 vf->vsi.num_rx_queues = vf->qtag.num_active; in ixl_vf_alloc_vsi()
177 vf->vsi.num_tx_queues = vf->qtag.num_active; in ixl_vf_alloc_vsi()
183 code = i40e_aq_config_vsi_bw_limit(hw, vf->vsi.seid, 0, 0, NULL); in ixl_vf_alloc_vsi()
190 memcpy(&vf->vsi.info, &vsi_ctx.info, sizeof(vf->vsi.info)); in ixl_vf_alloc_vsi()
201 vf->vsi.flags |= IXL_FLAGS_IS_VF; in ixl_vf_setup_vsi()
207 vf->vsi.dev = pf->dev; in ixl_vf_setup_vsi()
209 ixl_init_filters(&vf->vsi); in ixl_vf_setup_vsi()
211 error = i40e_aq_set_vsi_broadcast(hw, vf->vsi.seid, TRUE, NULL); in ixl_vf_setup_vsi()
215 ixl_reconfigure_filters(&vf->vsi); in ixl_vf_setup_vsi()
235 qtable = i40e_read_rx_ctl(hw, I40E_VSILAN_QTABLE(index, vf->vsi.vsi_num)); in ixl_vf_map_vsi_queue()
238 i40e_write_rx_ctl(hw, I40E_VSILAN_QTABLE(index, vf->vsi.vsi_num), qtable); in ixl_vf_map_vsi_queue()
254 i40e_write_rx_ctl(hw, I40E_VSILAN_QBASE(vf->vsi.vsi_num), in ixl_vf_map_queues()
263 for (i = 0; i < vf->vsi.num_tx_queues; i++) { in ixl_vf_map_queues()
276 for (i = 0; i < vf->vsi.num_tx_queues; i++) in ixl_vf_map_queues()
289 ixl_vf_vsi_release(struct ixl_pf *pf, struct ixl_vsi *vsi) in ixl_vf_vsi_release() argument
295 if (vsi->seid == 0) in ixl_vf_vsi_release()
298 i40e_aq_delete_element(hw, vsi->seid, NULL); in ixl_vf_vsi_release()
327 ixl_vf_vsi_release(pf, &vf->vsi); in ixl_vf_release_resources()
345 vf->vsi.num_tx_queues = 0; in ixl_vf_release_resources()
346 vf->vsi.num_rx_queues = 0; in ixl_vf_release_resources()
424 if (vf->vsi.seid != 0) in ixl_reinit_vf()
425 ixl_disable_rings(pf, &vf->vsi, &vf->qtag); in ixl_reinit_vf()
542 reply.num_queue_pairs = vf->vsi.num_tx_queues; in ixl_vf_get_resources_msg()
546 reply.vsi_res[0].vsi_id = vf->vsi.vsi_num; in ixl_vf_get_resources_msg()
548 reply.vsi_res[0].num_queue_pairs = vf->vsi.num_tx_queues; in ixl_vf_get_resources_msg()
582 txq.rdylist = le16_to_cpu(vf->vsi.info.qs_handle[0]); in ixl_vf_config_tx_queue()
676 if (info->num_queue_pairs == 0 || info->num_queue_pairs > vf->vsi.num_tx_queues) { in ixl_vf_config_vsi_msg()
678 vf->vf_num, info->num_queue_pairs, vf->vsi.num_tx_queues); in ixl_vf_config_vsi_msg()
684 if (info->vsi_id != vf->vsi.vsi_num) { in ixl_vf_config_vsi_msg()
686 vf->vf_num, info->vsi_id, vf->vsi.vsi_num); in ixl_vf_config_vsi_msg()
695 if (pair->txq.vsi_id != vf->vsi.vsi_num || in ixl_vf_config_vsi_msg()
696 pair->rxq.vsi_id != vf->vsi.vsi_num || in ixl_vf_config_vsi_msg()
698 pair->txq.queue_id >= vf->vsi.num_tx_queues) { in ixl_vf_config_vsi_msg()
821 vector->vsi_id != vf->vsi.vsi_num) { in ixl_vf_config_irq_msg()
829 if (largest_rxq >= vf->vsi.num_rx_queues) { in ixl_vf_config_irq_msg()
839 if (largest_txq >= vf->vsi.num_tx_queues) { in ixl_vf_config_irq_msg()
870 if (select->vsi_id != vf->vsi.vsi_num || in ixl_vf_enable_queues_msg()
881 if (i >= vf->vsi.num_tx_queues) { in ixl_vf_enable_queues_msg()
906 if (i >= vf->vsi.num_rx_queues) { in ixl_vf_enable_queues_msg()
944 if (select->vsi_id != vf->vsi.vsi_num || in ixl_vf_disable_queues_msg()
955 if (i >= vf->vsi.num_tx_queues) { in ixl_vf_disable_queues_msg()
981 if (i >= vf->vsi.num_rx_queues) { in ixl_vf_disable_queues_msg()
1037 struct ixl_vsi *vsi; in ixl_vf_add_mac_msg() local
1040 vsi = &vf->vsi; in ixl_vf_add_mac_msg()
1043 if (addr_list->vsi_id != vsi->vsi_num) { in ixl_vf_add_mac_msg()
1059 ixl_add_filter(vsi, addr->addr, IXL_VLAN_ANY); in ixl_vf_add_mac_msg()
1071 struct ixl_vsi *vsi; in ixl_vf_del_mac_msg() local
1074 vsi = &vf->vsi; in ixl_vf_del_mac_msg()
1077 if (addr_list->vsi_id != vsi->vsi_num) { in ixl_vf_del_mac_msg()
1094 ixl_del_filter(&vf->vsi, addr->addr, IXL_VLAN_ANY); in ixl_vf_del_mac_msg()
1105 vsi_ctx.seid = vf->vsi.seid; in ixl_vf_enable_vlan_strip()
1124 if (filter_list->vsi_id != vf->vsi.vsi_num) { in ixl_vf_add_vlan_msg()
1151 ixl_add_filter(&vf->vsi, vf->mac, filter_list->vlan_id[i]); in ixl_vf_add_vlan_msg()
1165 if (filter_list->vsi_id != vf->vsi.vsi_num) { in ixl_vf_del_vlan_msg()
1186 ixl_del_filter(&vf->vsi, vf->mac, filter_list->vlan_id[i]); in ixl_vf_del_vlan_msg()
1209 if (info->vsi_id != vf->vsi.vsi_num) { in ixl_vf_config_promisc_msg()
1215 code = i40e_aq_set_vsi_unicast_promiscuous(hw, vf->vsi.seid, in ixl_vf_config_promisc_msg()
1219 " error %s\n", vf->vsi.seid, i40e_stat_str(hw, code), in ixl_vf_config_promisc_msg()
1226 code = i40e_aq_set_vsi_multicast_promiscuous(hw, vf->vsi.seid, in ixl_vf_config_promisc_msg()
1230 " error %s\n", vf->vsi.seid, i40e_stat_str(hw, code), in ixl_vf_config_promisc_msg()
1247 if (queue->vsi_id != vf->vsi.vsi_num) { in ixl_vf_get_stats_msg()
1253 ixl_update_eth_stats(&vf->vsi); in ixl_vf_get_stats_msg()
1256 I40E_SUCCESS, &vf->vsi.eth_stats, sizeof(vf->vsi.eth_stats)); in ixl_vf_get_stats_msg()
1280 if (key->vsi_id != vf->vsi.vsi_num) { in ixl_vf_config_rss_key_msg()
1282 vf->vf_num, key->vsi_id, vf->vsi.vsi_num); in ixl_vf_config_rss_key_msg()
1297 status = i40e_aq_set_rss_key(hw, vf->vsi.vsi_num, &key_data); in ixl_vf_config_rss_key_msg()
1336 if (lut->vsi_id != vf->vsi.vsi_num) { in ixl_vf_config_rss_lut_msg()
1338 vf->vf_num, lut->vsi_id, vf->vsi.vsi_num); in ixl_vf_config_rss_lut_msg()
1346 status = i40e_aq_set_rss_lut(hw, vf->vsi.vsi_num, false, lut->lut, lut->lut_entries); in ixl_vf_config_rss_lut_msg()
1394 event.event_data.link_event.link_status = pf->vsi.link_active; in ixl_notify_vf_link_state()
1621 struct ixl_vsi *vsi = &pf->vsi; in ixl_config_pf_vsi_loopback() local
1627 ctxt.seid = vsi->seid; in ixl_config_pf_vsi_loopback()
1658 pf_vsi = &pf->vsi; in ixl_if_iov_init()
1710 if (pf->vfs[i].vsi.seid != 0) in ixl_if_iov_uninit()
1711 i40e_aq_delete_element(hw, pf->vfs[i].vsi.seid, NULL); in ixl_if_iov_uninit()
1713 ixl_free_filters(&pf->vfs[i].vsi.ftl); in ixl_if_iov_uninit()
1735 sysctl_ctx_free(&vfs[i].vsi.sysctl_ctx); in ixl_if_iov_uninit()
1783 vf->vsi.back = pf; in ixl_if_iov_vf_add()
1822 ixl_vsi_add_sysctls(&vf->vsi, sysctl_name, false); in ixl_if_iov_vf_add()