|
@@ -616,21 +616,6 @@ bfa_fcs_vport_delete_comp(struct bfa_fcs_vport_s *vport)
|
|
|
bfa_sm_send_event(vport, BFA_FCS_VPORT_SM_DELCOMP);
|
|
|
}
|
|
|
|
|
|
-u32
|
|
|
-bfa_fcs_vport_get_max(struct bfa_fcs_s *fcs)
|
|
|
-{
|
|
|
- struct bfa_ioc_attr_s ioc_attr;
|
|
|
-
|
|
|
- bfa_get_attr(fcs->bfa, &ioc_attr);
|
|
|
-
|
|
|
- if (ioc_attr.pci_attr.device_id == BFA_PCI_DEVICE_ID_CT)
|
|
|
- return BFA_FCS_MAX_VPORTS_SUPP_CT;
|
|
|
- else
|
|
|
- return BFA_FCS_MAX_VPORTS_SUPP_CB;
|
|
|
-}
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
/**
|
|
|
* fcs_vport_api Virtual port API
|
|
|
*/
|
|
@@ -667,7 +652,7 @@ bfa_fcs_vport_create(struct bfa_fcs_vport_s *vport, struct bfa_fcs_s *fcs,
|
|
|
return BFA_STATUS_VPORT_EXISTS;
|
|
|
|
|
|
if (bfa_fcs_fabric_vport_count(&fcs->fabric) ==
|
|
|
- bfa_fcs_vport_get_max(fcs))
|
|
|
+ bfa_lps_get_max_vport(fcs->bfa))
|
|
|
return BFA_STATUS_VPORT_MAX;
|
|
|
|
|
|
vport->lps = bfa_lps_alloc(fcs->bfa);
|