/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
D | vporttbl.c | 73 hash_for_each_possible(esw->fdb_table.offloads.vports.table, e, hlist, key) in esw_vport_tbl_lookup() 90 mutex_lock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_get() 119 hash_add(esw->fdb_table.offloads.vports.table, &e->hlist, hkey); in mlx5_esw_vporttbl_get() 121 mutex_unlock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_get() 127 mutex_unlock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_get() 138 mutex_lock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_put() 149 mutex_unlock(&esw->fdb_table.offloads.vports.lock); in mlx5_esw_vporttbl_put()
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/steering/ |
D | dr_domain.c | 270 &dmn->info.caps.vports.esw_manager_caps); in dr_domain_query_esw_mgr() 275 dr_domain_fill_uplink_caps(dmn, &dmn->info.caps.vports.uplink_caps); in dr_domain_query_uplink() 295 ret = xa_insert(&caps->vports.vports_caps_xa, vport, in dr_domain_add_vport_cap() 321 return &caps->vports.esw_manager_caps; in mlx5dr_domain_get_vport_cap() 324 return &caps->vports.uplink_caps; in mlx5dr_domain_get_vport_cap() 327 vport_caps = xa_load(&caps->vports.vports_caps_xa, vport); in mlx5dr_domain_get_vport_cap() 344 xa_for_each(&dmn->info.caps.vports.vports_caps_xa, i, vport_caps) { in dr_domain_clear_vports() 345 vport_caps = xa_erase(&dmn->info.caps.vports.vports_caps_xa, i); in dr_domain_clear_vports() 367 xa_init(&dmn->info.caps.vports.vports_caps_xa); in dr_domain_query_fdb_caps() 384 xa_destroy(&dmn->info.caps.vports.vports_caps_xa); in dr_domain_query_fdb_caps() [all …]
|
D | dr_dbg.c | 574 xa_for_each(&caps->vports.vports_caps_xa, vports_num, vport_caps) in dr_dump_domain_info_caps() 582 xa_for_each(&caps->vports.vports_caps_xa, i, vport_caps) { in dr_dump_domain_info_caps() 583 vport_caps = xa_load(&caps->vports.vports_caps_xa, i); in dr_dump_domain_info_caps()
|
/Linux-v6.6/drivers/scsi/libfc/ |
D | fc_npiv.c | 35 list_add_tail(&vn_port->list, &n_port->vports); in libfc_vport_create() 61 list_for_each_entry(vn_port, &n_port->vports, list) { in fc_vport_id_lookup() 141 list_for_each_entry(vn_port, &n_port->vports, list) { in fc_vports_linkchange()
|
/Linux-v6.6/drivers/scsi/lpfc/ |
D | lpfc_vport.c | 768 struct lpfc_vport **vports; in lpfc_create_vport_work_array() local 770 vports = kcalloc(phba->max_vports + 1, sizeof(struct lpfc_vport *), in lpfc_create_vport_work_array() 772 if (vports == NULL) in lpfc_create_vport_work_array() 785 vports[index++] = port_iterator; in lpfc_create_vport_work_array() 788 return vports; in lpfc_create_vport_work_array() 792 lpfc_destroy_vport_work_array(struct lpfc_hba *phba, struct lpfc_vport **vports) in lpfc_destroy_vport_work_array() argument 795 if (vports == NULL) in lpfc_destroy_vport_work_array() 797 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) in lpfc_destroy_vport_work_array() 798 scsi_host_put(lpfc_shost_from_vport(vports[i])); in lpfc_destroy_vport_work_array() 799 kfree(vports); in lpfc_destroy_vport_work_array()
|
D | lpfc_hbadisc.c | 368 struct lpfc_vport **vports; in lpfc_check_inactive_vmid() local 371 vports = lpfc_create_vport_work_array(phba); in lpfc_check_inactive_vmid() 372 if (!vports) in lpfc_check_inactive_vmid() 376 if ((!vports[i]) && (i == 0)) in lpfc_check_inactive_vmid() 379 vport = vports[i]; in lpfc_check_inactive_vmid() 385 lpfc_destroy_vport_work_array(phba, vports); in lpfc_check_inactive_vmid() 605 struct lpfc_vport **vports; in lpfc_check_vmid_qfpa_issue() local 608 vports = lpfc_create_vport_work_array(phba); in lpfc_check_vmid_qfpa_issue() 609 if (!vports) in lpfc_check_vmid_qfpa_issue() 613 if ((!vports[i]) && (i == 0)) in lpfc_check_vmid_qfpa_issue() [all …]
|
D | lpfc_init.c | 885 struct lpfc_vport **vports; in lpfc_hba_down_prep() local 897 vports = lpfc_create_vport_work_array(phba); in lpfc_hba_down_prep() 898 if (vports != NULL) in lpfc_hba_down_prep() 900 vports[i] != NULL; i++) in lpfc_hba_down_prep() 901 lpfc_cleanup_discovery_resources(vports[i]); in lpfc_hba_down_prep() 902 lpfc_destroy_vport_work_array(phba, vports); in lpfc_hba_down_prep() 1516 struct lpfc_vport **vports; in lpfc_hb_timeout_handler() local 1528 vports = lpfc_create_vport_work_array(phba); in lpfc_hb_timeout_handler() 1529 if (vports != NULL) in lpfc_hb_timeout_handler() 1530 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_hb_timeout_handler() [all …]
|
D | lpfc_scsi.c | 166 struct lpfc_vport **vports; in lpfc_ramp_down_queue_handler() local 184 vports = lpfc_create_vport_work_array(phba); in lpfc_ramp_down_queue_handler() 185 if (vports != NULL) in lpfc_ramp_down_queue_handler() 186 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_ramp_down_queue_handler() 187 shost = lpfc_shost_from_vport(vports[i]); in lpfc_ramp_down_queue_handler() 200 lpfc_destroy_vport_work_array(phba, vports); in lpfc_ramp_down_queue_handler() 216 struct lpfc_vport **vports; in lpfc_scsi_dev_block() local 222 vports = lpfc_create_vport_work_array(phba); in lpfc_scsi_dev_block() 223 if (vports != NULL) in lpfc_scsi_dev_block() 224 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_scsi_dev_block() [all …]
|
D | lpfc_bsg.c | 1648 struct lpfc_vport **vports; in lpfc_bsg_diag_mode_enter() local 1665 vports = lpfc_create_vport_work_array(phba); in lpfc_bsg_diag_mode_enter() 1666 if (vports) { in lpfc_bsg_diag_mode_enter() 1667 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_bsg_diag_mode_enter() 1668 shost = lpfc_shost_from_vport(vports[i]); in lpfc_bsg_diag_mode_enter() 1671 lpfc_destroy_vport_work_array(phba, vports); in lpfc_bsg_diag_mode_enter() 1704 struct lpfc_vport **vports; in lpfc_bsg_diag_mode_exit() local 1707 vports = lpfc_create_vport_work_array(phba); in lpfc_bsg_diag_mode_exit() 1708 if (vports) { in lpfc_bsg_diag_mode_exit() 1709 for (i = 0; i <= phba->max_vpi && vports[i] != NULL; i++) { in lpfc_bsg_diag_mode_exit() [all …]
|
D | lpfc_nportdisc.c | 807 struct lpfc_vport **vports; in lpfc_rcv_logo() local 844 vports = lpfc_create_vport_work_array(phba); in lpfc_rcv_logo() 845 if (vports) { in lpfc_rcv_logo() 846 for (i = 0; i <= phba->max_vports && vports[i] != NULL; in lpfc_rcv_logo() 848 if ((!(vports[i]->fc_flag & in lpfc_rcv_logo() 850 (vports[i]->port_state > LPFC_FDISC)) { in lpfc_rcv_logo() 855 lpfc_destroy_vport_work_array(phba, vports); in lpfc_rcv_logo()
|
D | lpfc_ct.c | 2187 struct lpfc_vport **vports; in lpfc_fdmi_rprt_defer() local 2193 vports = lpfc_create_vport_work_array(phba); in lpfc_fdmi_rprt_defer() 2194 if (vports) { in lpfc_fdmi_rprt_defer() 2195 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_fdmi_rprt_defer() 2196 vport = vports[i]; in lpfc_fdmi_rprt_defer() 2207 lpfc_destroy_vport_work_array(phba, vports); in lpfc_fdmi_rprt_defer()
|
D | lpfc_els.c | 11179 struct lpfc_vport **vports; in lpfc_cancel_all_vport_retry_delay_timer() local 11189 vports = lpfc_create_vport_work_array(phba); in lpfc_cancel_all_vport_retry_delay_timer() 11191 if (vports) { in lpfc_cancel_all_vport_retry_delay_timer() 11192 for (i = 0; i <= phba->max_vports && vports[i] != NULL; i++) { in lpfc_cancel_all_vport_retry_delay_timer() 11193 ndlp = lpfc_findnode_did(vports[i], Fabric_DID); in lpfc_cancel_all_vport_retry_delay_timer() 11195 lpfc_cancel_retry_delay_tmo(vports[i], ndlp); in lpfc_cancel_all_vport_retry_delay_timer() 11196 lpfc_els_flush_cmd(vports[i]); in lpfc_cancel_all_vport_retry_delay_timer() 11198 lpfc_destroy_vport_work_array(phba, vports); in lpfc_cancel_all_vport_retry_delay_timer()
|
/Linux-v6.6/Documentation/scsi/ |
D | scsi_fc_transport.rst | 12 vports : 2.6.22 36 FC Virtual Ports (vports) 64 to create vports. The transport will create the vport object within the 73 vports. However, consideration was given to VF-based vports and it 80 if vports are to be associated with virtual machines, a XEN mgmt 94 The remainder of the tree under the vports scsi_host is the same 182 For the fc_host class object, the following attributes are added for vports: 185 Indicates the maximum number of NPIV-based vports that the 189 Indicates how many NPIV-based vports have been instantiated on the 337 The LLDD indicates support for vports by supplying a vport_create() [all …]
|
/Linux-v6.6/drivers/infiniband/ulp/opa_vnic/ |
D | opa_vnic_vema.c | 110 struct xarray vports; member 151 return xa_load(&port->vports, vport_num); in vema_get_vport_adapter() 210 rc = xa_insert(&port->vports, vport_num, adapter, GFP_KERNEL); in vema_add_vport() 874 xa_for_each(&port->vports, index, adapter) { in opa_vnic_event() 902 xa_for_each(&port->vports, index, adapter) in vema_unregister() 909 xa_destroy(&port->vports); in vema_unregister() 946 xa_init(&port->vports); in vema_register()
|
/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
D | eswitch.h | 263 } vports; member 346 struct xarray vports; member 686 xa_for_each(&((esw)->vports), index, vport) 693 mlx5_esw_for_each_entry_marked(&((esw)->vports), index, vport, last, filter) 707 xa_for_each_range(&((esw)->vports), \
|
D | eswitch.c | 114 vport = xa_load(&esw->vports, vport_num); in mlx5_eswitch_get_vport() 1714 err = xa_insert(&esw->vports, vport_num, vport, GFP_KERNEL); in mlx5_esw_vport_alloc() 1728 xa_erase(&esw->vports, vport->vport); in mlx5_esw_vport_free() 1739 xa_destroy(&esw->vports); in mlx5_esw_vports_cleanup() 1751 xa_init(&esw->vports); in mlx5_esw_vports_init() 1757 xa_set_mark(&esw->vports, idx, MLX5_ESW_VPT_HOST_FN); in mlx5_esw_vports_init() 1764 xa_set_mark(&esw->vports, idx, MLX5_ESW_VPT_VF); in mlx5_esw_vports_init() 1765 xa_set_mark(&esw->vports, idx, MLX5_ESW_VPT_HOST_FN); in mlx5_esw_vports_init() 1773 xa_set_mark(&esw->vports, base_sf_num + i, MLX5_ESW_VPT_SF); in mlx5_esw_vports_init() 1784 xa_set_mark(&esw->vports, base_sf_num + i, MLX5_ESW_VPT_SF); in mlx5_esw_vports_init() [all …]
|
D | eswitch_offloads.c | 3293 mutex_init(&esw->fdb_table.offloads.vports.lock); in esw_offloads_steering_init() 3294 hash_init(esw->fdb_table.offloads.vports.table); in esw_offloads_steering_init() 3349 mutex_destroy(&esw->fdb_table.offloads.vports.lock); in esw_offloads_steering_init() 3363 mutex_destroy(&esw->fdb_table.offloads.vports.lock); in esw_offloads_steering_cleanup()
|
/Linux-v6.6/include/scsi/ |
D | libfc.h | 712 struct list_head vports; member 880 INIT_LIST_HEAD(&lport->vports); in libfc_host_alloc()
|
D | scsi_transport_fc.h | 571 struct list_head vports; member 648 (((struct fc_host_attrs *)(x)->shost_data)->vports)
|
/Linux-v6.6/drivers/scsi/bnx2fc/ |
D | bnx2fc_fcoe.c | 953 list_for_each_entry(vport, &lport->vports, list) in bnx2fc_indicate_netevent() 1176 list_for_each_entry_safe(blport, tmp, &hba->vports, list) { in bnx2fc_free_vport() 1196 list_for_each_entry(v_port, &n_port->vports, list) in bnx2fc_vport_destroy() 1419 INIT_LIST_HEAD(&hba->vports); in bnx2fc_hba_create() 1575 list_add_tail(&blport->list, &hba->vports); in bnx2fc_if_create() 1873 list_for_each_entry(vport, &lport->vports, list) in bnx2fc_stop()
|
D | bnx2fc.h | 246 struct list_head vports; member
|
/Linux-v6.6/drivers/scsi/fcoe/ |
D | fcoe_transport.c | 269 list_for_each_entry(vn_port, &n_port->vports, list) { in fcoe_validate_vport_create()
|
/Linux-v6.6/Documentation/networking/devlink/ |
D | mlx5.rst | 70 An experimental mode where a single E-Switch is used and all the vports
|
/Linux-v6.6/drivers/scsi/ |
D | scsi_transport_fc.c | 438 INIT_LIST_HEAD(&fc_host->vports); in fc_host_setup() 2388 list_for_each_entry(vport, &fc_host->vports, peers) { in store_fc_host_vport_delete() 2890 list_for_each_entry_safe(vport, next_vport, &fc_host->vports, peers) { in fc_remove_host() 3873 list_add_tail(&vport->peers, &fc_host->vports); in fc_vport_setup()
|
/Linux-v6.6/Documentation/networking/ |
D | openvswitch.rst | 14 bridges), each of which can have multiple "vports" (analogous to ports
|