Lines Matching refs:vsi

33 			if (pf->vsi[i] && (pf->vsi[i]->seid == seid))  in i40e_dbg_find_vsi()
34 return pf->vsi[i]; in i40e_dbg_find_vsi()
90 pf->vsi[pf->lan_vsi]->netdev->name, in i40e_dbg_command_read()
121 struct i40e_vsi *vsi; in i40e_dbg_dump_vsi_seid() local
124 vsi = i40e_dbg_find_vsi(pf, seid); in i40e_dbg_dump_vsi_seid()
125 if (!vsi) { in i40e_dbg_dump_vsi_seid()
131 if (vsi->netdev) { in i40e_dbg_dump_vsi_seid()
132 struct net_device *nd = vsi->netdev; in i40e_dbg_dump_vsi_seid()
145 vsi->flags, vsi->netdev_registered, vsi->current_netdev_flags); in i40e_dbg_dump_vsi_seid()
149 i, vsi->state[i]); in i40e_dbg_dump_vsi_seid()
150 if (vsi == pf->vsi[pf->lan_vsi]) in i40e_dbg_dump_vsi_seid()
155 hash_for_each(vsi->mac_filter_hash, bkt, f, hlist) { in i40e_dbg_dump_vsi_seid()
162 vsi->active_filters, vsi->promisc_threshold, in i40e_dbg_dump_vsi_seid()
163 (test_bit(__I40E_VSI_OVERFLOW_PROMISC, vsi->state) ? in i40e_dbg_dump_vsi_seid()
165 nstat = i40e_get_vsi_stats_struct(vsi); in i40e_dbg_dump_vsi_seid()
207 (unsigned long int)vsi->net_stats_offsets.rx_packets, in i40e_dbg_dump_vsi_seid()
208 (unsigned long int)vsi->net_stats_offsets.rx_bytes, in i40e_dbg_dump_vsi_seid()
209 (unsigned long int)vsi->net_stats_offsets.rx_errors, in i40e_dbg_dump_vsi_seid()
210 (unsigned long int)vsi->net_stats_offsets.rx_dropped); in i40e_dbg_dump_vsi_seid()
213 (unsigned long int)vsi->net_stats_offsets.tx_packets, in i40e_dbg_dump_vsi_seid()
214 (unsigned long int)vsi->net_stats_offsets.tx_bytes, in i40e_dbg_dump_vsi_seid()
215 (unsigned long int)vsi->net_stats_offsets.tx_errors, in i40e_dbg_dump_vsi_seid()
216 (unsigned long int)vsi->net_stats_offsets.tx_dropped); in i40e_dbg_dump_vsi_seid()
219 (unsigned long int)vsi->net_stats_offsets.multicast, in i40e_dbg_dump_vsi_seid()
220 (unsigned long int)vsi->net_stats_offsets.collisions); in i40e_dbg_dump_vsi_seid()
223 (unsigned long int)vsi->net_stats_offsets.rx_length_errors, in i40e_dbg_dump_vsi_seid()
224 (unsigned long int)vsi->net_stats_offsets.rx_over_errors, in i40e_dbg_dump_vsi_seid()
225 (unsigned long int)vsi->net_stats_offsets.rx_crc_errors); in i40e_dbg_dump_vsi_seid()
228 (unsigned long int)vsi->net_stats_offsets.rx_frame_errors, in i40e_dbg_dump_vsi_seid()
229 (unsigned long int)vsi->net_stats_offsets.rx_fifo_errors, in i40e_dbg_dump_vsi_seid()
230 (unsigned long int)vsi->net_stats_offsets.rx_missed_errors); in i40e_dbg_dump_vsi_seid()
233 (unsigned long int)vsi->net_stats_offsets.tx_aborted_errors, in i40e_dbg_dump_vsi_seid()
234 (unsigned long int)vsi->net_stats_offsets.tx_carrier_errors, in i40e_dbg_dump_vsi_seid()
235 (unsigned long int)vsi->net_stats_offsets.tx_fifo_errors); in i40e_dbg_dump_vsi_seid()
238 (unsigned long int)vsi->net_stats_offsets.tx_heartbeat_errors, in i40e_dbg_dump_vsi_seid()
239 (unsigned long int)vsi->net_stats_offsets.tx_window_errors); in i40e_dbg_dump_vsi_seid()
242 (unsigned long int)vsi->net_stats_offsets.rx_compressed, in i40e_dbg_dump_vsi_seid()
243 (unsigned long int)vsi->net_stats_offsets.tx_compressed); in i40e_dbg_dump_vsi_seid()
246 vsi->tx_restart, vsi->tx_busy, in i40e_dbg_dump_vsi_seid()
247 vsi->rx_buf_failed, vsi->rx_page_failed); in i40e_dbg_dump_vsi_seid()
249 for (i = 0; i < vsi->num_queue_pairs; i++) { in i40e_dbg_dump_vsi_seid()
250 struct i40e_ring *rx_ring = READ_ONCE(vsi->rx_rings[i]); in i40e_dbg_dump_vsi_seid()
291 for (i = 0; i < vsi->num_queue_pairs; i++) { in i40e_dbg_dump_vsi_seid()
292 struct i40e_ring *tx_ring = READ_ONCE(vsi->tx_rings[i]); in i40e_dbg_dump_vsi_seid()
330 if (i40e_enabled_xdp_vsi(vsi)) { in i40e_dbg_dump_vsi_seid()
331 for (i = 0; i < vsi->num_queue_pairs; i++) { in i40e_dbg_dump_vsi_seid()
332 struct i40e_ring *xdp_ring = READ_ONCE(vsi->xdp_rings[i]); in i40e_dbg_dump_vsi_seid()
374 vsi->work_limit); in i40e_dbg_dump_vsi_seid()
377 vsi->max_frame, vsi->rx_buf_len, 0); in i40e_dbg_dump_vsi_seid()
380 vsi->num_q_vectors, vsi->base_vector); in i40e_dbg_dump_vsi_seid()
383 vsi->seid, vsi->id, vsi->uplink_seid); in i40e_dbg_dump_vsi_seid()
386 vsi->base_queue, vsi->num_queue_pairs, vsi->num_tx_desc, in i40e_dbg_dump_vsi_seid()
387 vsi->num_rx_desc); in i40e_dbg_dump_vsi_seid()
388 dev_info(&pf->pdev->dev, " type = %i\n", vsi->type); in i40e_dbg_dump_vsi_seid()
389 if (vsi->type == I40E_VSI_SRIOV) in i40e_dbg_dump_vsi_seid()
390 dev_info(&pf->pdev->dev, " VF ID = %i\n", vsi->vf_id); in i40e_dbg_dump_vsi_seid()
393 vsi->info.valid_sections, vsi->info.switch_id); in i40e_dbg_dump_vsi_seid()
396 vsi->info.sw_reserved[0], vsi->info.sw_reserved[1]); in i40e_dbg_dump_vsi_seid()
399 vsi->info.sec_flags, vsi->info.sec_reserved); in i40e_dbg_dump_vsi_seid()
402 vsi->info.pvid, vsi->info.fcoe_pvid, in i40e_dbg_dump_vsi_seid()
403 vsi->info.port_vlan_flags); in i40e_dbg_dump_vsi_seid()
406 vsi->info.pvlan_reserved[0], vsi->info.pvlan_reserved[1], in i40e_dbg_dump_vsi_seid()
407 vsi->info.pvlan_reserved[2]); in i40e_dbg_dump_vsi_seid()
410 vsi->info.ingress_table, vsi->info.egress_table); in i40e_dbg_dump_vsi_seid()
413 vsi->info.cas_pv_tag, vsi->info.cas_pv_flags, in i40e_dbg_dump_vsi_seid()
414 vsi->info.cas_pv_reserved); in i40e_dbg_dump_vsi_seid()
417 vsi->info.queue_mapping[0], vsi->info.queue_mapping[1], in i40e_dbg_dump_vsi_seid()
418 vsi->info.queue_mapping[2], vsi->info.queue_mapping[3], in i40e_dbg_dump_vsi_seid()
419 vsi->info.queue_mapping[4], vsi->info.queue_mapping[5], in i40e_dbg_dump_vsi_seid()
420 vsi->info.queue_mapping[6], vsi->info.queue_mapping[7]); in i40e_dbg_dump_vsi_seid()
423 vsi->info.queue_mapping[8], vsi->info.queue_mapping[9], in i40e_dbg_dump_vsi_seid()
424 vsi->info.queue_mapping[10], vsi->info.queue_mapping[11], in i40e_dbg_dump_vsi_seid()
425 vsi->info.queue_mapping[12], vsi->info.queue_mapping[13], in i40e_dbg_dump_vsi_seid()
426 vsi->info.queue_mapping[14], vsi->info.queue_mapping[15]); in i40e_dbg_dump_vsi_seid()
429 vsi->info.tc_mapping[0], vsi->info.tc_mapping[1], in i40e_dbg_dump_vsi_seid()
430 vsi->info.tc_mapping[2], vsi->info.tc_mapping[3], in i40e_dbg_dump_vsi_seid()
431 vsi->info.tc_mapping[4], vsi->info.tc_mapping[5], in i40e_dbg_dump_vsi_seid()
432 vsi->info.tc_mapping[6], vsi->info.tc_mapping[7]); in i40e_dbg_dump_vsi_seid()
435 vsi->info.queueing_opt_flags, in i40e_dbg_dump_vsi_seid()
436 vsi->info.queueing_opt_reserved[0], in i40e_dbg_dump_vsi_seid()
437 vsi->info.queueing_opt_reserved[1], in i40e_dbg_dump_vsi_seid()
438 vsi->info.queueing_opt_reserved[2]); in i40e_dbg_dump_vsi_seid()
441 vsi->info.up_enable_bits); in i40e_dbg_dump_vsi_seid()
444 vsi->info.sched_reserved, vsi->info.outer_up_table); in i40e_dbg_dump_vsi_seid()
447 vsi->info.cmd_reserved[0], vsi->info.cmd_reserved[1], in i40e_dbg_dump_vsi_seid()
448 vsi->info.cmd_reserved[2], vsi->info.cmd_reserved[3], in i40e_dbg_dump_vsi_seid()
449 vsi->info.cmd_reserved[4], vsi->info.cmd_reserved[5], in i40e_dbg_dump_vsi_seid()
450 vsi->info.cmd_reserved[6], vsi->info.cmd_reserved[7]); in i40e_dbg_dump_vsi_seid()
453 vsi->info.qs_handle[0], vsi->info.qs_handle[1], in i40e_dbg_dump_vsi_seid()
454 vsi->info.qs_handle[2], vsi->info.qs_handle[3], in i40e_dbg_dump_vsi_seid()
455 vsi->info.qs_handle[4], vsi->info.qs_handle[5], in i40e_dbg_dump_vsi_seid()
456 vsi->info.qs_handle[6], vsi->info.qs_handle[7]); in i40e_dbg_dump_vsi_seid()
459 vsi->info.stat_counter_idx, vsi->info.sched_id); in i40e_dbg_dump_vsi_seid()
462 vsi->info.resp_reserved[0], vsi->info.resp_reserved[1], in i40e_dbg_dump_vsi_seid()
463 vsi->info.resp_reserved[2], vsi->info.resp_reserved[3], in i40e_dbg_dump_vsi_seid()
464 vsi->info.resp_reserved[4], vsi->info.resp_reserved[5], in i40e_dbg_dump_vsi_seid()
465 vsi->info.resp_reserved[6], vsi->info.resp_reserved[7], in i40e_dbg_dump_vsi_seid()
466 vsi->info.resp_reserved[8], vsi->info.resp_reserved[9], in i40e_dbg_dump_vsi_seid()
467 vsi->info.resp_reserved[10], vsi->info.resp_reserved[11]); in i40e_dbg_dump_vsi_seid()
468 dev_info(&pf->pdev->dev, " idx = %d\n", vsi->idx); in i40e_dbg_dump_vsi_seid()
471 vsi->tc_config.numtc, vsi->tc_config.enabled_tc); in i40e_dbg_dump_vsi_seid()
475 i, vsi->tc_config.tc_info[i].qoffset, in i40e_dbg_dump_vsi_seid()
476 vsi->tc_config.tc_info[i].qcount, in i40e_dbg_dump_vsi_seid()
477 vsi->tc_config.tc_info[i].netdev_tc); in i40e_dbg_dump_vsi_seid()
481 vsi->bw_limit, vsi->bw_max_quanta); in i40e_dbg_dump_vsi_seid()
485 i, vsi->bw_ets_share_credits[i], in i40e_dbg_dump_vsi_seid()
486 vsi->bw_ets_limit_credits[i], in i40e_dbg_dump_vsi_seid()
487 vsi->bw_ets_max_quanta[i]); in i40e_dbg_dump_vsi_seid()
550 struct i40e_vsi *vsi; in i40e_dbg_dump_desc() local
553 vsi = i40e_dbg_find_vsi(pf, vsi_seid); in i40e_dbg_dump_desc()
554 if (!vsi) { in i40e_dbg_dump_desc()
558 if (vsi->type != I40E_VSI_MAIN && in i40e_dbg_dump_desc()
559 vsi->type != I40E_VSI_FDIR && in i40e_dbg_dump_desc()
560 vsi->type != I40E_VSI_VMDQ2) { in i40e_dbg_dump_desc()
563 vsi_seid, vsi->type); in i40e_dbg_dump_desc()
566 if (type == RING_TYPE_XDP && !i40e_enabled_xdp_vsi(vsi)) { in i40e_dbg_dump_desc()
570 if (ring_id >= vsi->num_queue_pairs || ring_id < 0) { in i40e_dbg_dump_desc()
574 if (!vsi->tx_rings || !vsi->tx_rings[0]->desc) { in i40e_dbg_dump_desc()
583 ring = kmemdup(vsi->rx_rings[ring_id], sizeof(*ring), GFP_KERNEL); in i40e_dbg_dump_desc()
586 ring = kmemdup(vsi->tx_rings[ring_id], sizeof(*ring), GFP_KERNEL); in i40e_dbg_dump_desc()
589 ring = kmemdup(vsi->xdp_rings[ring_id], sizeof(*ring), GFP_KERNEL); in i40e_dbg_dump_desc()
661 if (pf->vsi[i]) in i40e_dbg_dump_vsi_no_seid()
663 i, pf->vsi[i]->seid); in i40e_dbg_dump_vsi_no_seid()
738 struct i40e_vsi *vsi; in i40e_dbg_dump_vf() local
744 vsi = pf->vsi[vf->lan_vsi_idx]; in i40e_dbg_dump_vf()
746 vf_id, vf->lan_vsi_id, vsi->seid, vf->num_queue_pairs); in i40e_dbg_dump_vf()
783 struct i40e_vsi *vsi; in i40e_dbg_command_write() local
814 vsi_seid = pf->vsi[pf->lan_vsi]->seid; in i40e_dbg_command_write()
829 vsi = i40e_vsi_setup(pf, I40E_VSI_VMDQ2, vsi_seid, 0); in i40e_dbg_command_write()
830 if (vsi) in i40e_dbg_command_write()
832 vsi->seid, vsi->uplink_seid); in i40e_dbg_command_write()
844 vsi = i40e_dbg_find_vsi(pf, vsi_seid); in i40e_dbg_command_write()
845 if (!vsi) { in i40e_dbg_command_write()
852 i40e_vsi_release(vsi); in i40e_dbg_command_write()
871 vsi = i40e_dbg_find_vsi(pf, vsi_seid); in i40e_dbg_command_write()
872 if (!vsi) { in i40e_dbg_command_write()
890 vsi->tc_config.enabled_tc); in i40e_dbg_command_write()
934 vsi = i40e_dbg_find_vsi(pf, vsi_seid); in i40e_dbg_command_write()
935 if (!vsi) { in i40e_dbg_command_write()
942 ret = i40e_vsi_add_pvid(vsi, vid); in i40e_dbg_command_write()
962 vsi = i40e_dbg_find_vsi(pf, vsi_seid); in i40e_dbg_command_write()
963 if (!vsi) { in i40e_dbg_command_write()
969 i40e_vsi_remove_pvid(vsi); in i40e_dbg_command_write()
1053 vsi = pf->vsi[pf->lan_vsi]; in i40e_dbg_command_write()
1055 le16_to_cpu(vsi->info.switch_id) & in i40e_dbg_command_write()
1260 i40e_vsi_reset_stats(pf->vsi[i]); in i40e_dbg_command_write()
1263 vsi = i40e_dbg_find_vsi(pf, vsi_seid); in i40e_dbg_command_write()
1264 if (!vsi) { in i40e_dbg_command_write()
1270 i40e_vsi_reset_stats(vsi); in i40e_dbg_command_write()
1416 pf->vsi[pf->lan_vsi]->seid, in i40e_dbg_command_write()
1434 pf->vsi[pf->lan_vsi]->seid, in i40e_dbg_command_write()
1678 pf->vsi[pf->lan_vsi]->netdev->name, in i40e_dbg_netdev_ops_read()
1704 struct i40e_vsi *vsi; in i40e_dbg_netdev_ops_write() local
1737 vsi = i40e_dbg_find_vsi(pf, vsi_seid); in i40e_dbg_netdev_ops_write()
1738 if (!vsi) { in i40e_dbg_netdev_ops_write()
1741 } else if (!vsi->netdev) { in i40e_dbg_netdev_ops_write()
1745 vsi->netdev->netdev_ops->ndo_change_mtu(vsi->netdev, in i40e_dbg_netdev_ops_write()
1759 vsi = i40e_dbg_find_vsi(pf, vsi_seid); in i40e_dbg_netdev_ops_write()
1760 if (!vsi) { in i40e_dbg_netdev_ops_write()
1763 } else if (!vsi->netdev) { in i40e_dbg_netdev_ops_write()
1767 vsi->netdev->netdev_ops->ndo_set_rx_mode(vsi->netdev); in i40e_dbg_netdev_ops_write()
1780 vsi = i40e_dbg_find_vsi(pf, vsi_seid); in i40e_dbg_netdev_ops_write()
1781 if (!vsi) { in i40e_dbg_netdev_ops_write()
1784 } else if (!vsi->netdev) { in i40e_dbg_netdev_ops_write()
1788 for (i = 0; i < vsi->num_q_vectors; i++) in i40e_dbg_netdev_ops_write()
1789 napi_schedule(&vsi->q_vectors[i]->napi); in i40e_dbg_netdev_ops_write()