@@ -937,25 +937,6 @@ bfa_fcs_lport_get_rport_by_pwwn(struct bfa_fcs_lport_s *port, wwn_t pwwn)
937937 return NULL ;
938938}
939939
940- /*
941- * NWWN based Lookup for a R-Port in the Port R-Port Queue
942- */
943- struct bfa_fcs_rport_s *
944- bfa_fcs_lport_get_rport_by_nwwn (struct bfa_fcs_lport_s * port , wwn_t nwwn )
945- {
946- struct bfa_fcs_rport_s * rport ;
947- struct list_head * qe ;
948-
949- list_for_each (qe , & port -> rport_q ) {
950- rport = (struct bfa_fcs_rport_s * ) qe ;
951- if (wwn_is_equal (rport -> nwwn , nwwn ))
952- return rport ;
953- }
954-
955- bfa_trc (port -> fcs , nwwn );
956- return NULL ;
957- }
958-
959940/*
960941 * PWWN & PID based Lookup for a R-Port in the Port R-Port Queue
961942 */
@@ -5645,54 +5626,6 @@ bfa_fcs_get_base_port(struct bfa_fcs_s *fcs)
56455626 return & fcs -> fabric .bport ;
56465627}
56475628
5648- wwn_t
5649- bfa_fcs_lport_get_rport (struct bfa_fcs_lport_s * port , wwn_t wwn , int index ,
5650- int nrports , bfa_boolean_t bwwn )
5651- {
5652- struct list_head * qh , * qe ;
5653- struct bfa_fcs_rport_s * rport = NULL ;
5654- int i ;
5655- struct bfa_fcs_s * fcs ;
5656-
5657- if (port == NULL || nrports == 0 )
5658- return (wwn_t ) 0 ;
5659-
5660- fcs = port -> fcs ;
5661- bfa_trc (fcs , (u32 ) nrports );
5662-
5663- i = 0 ;
5664- qh = & port -> rport_q ;
5665- qe = bfa_q_first (qh );
5666-
5667- while ((qe != qh ) && (i < nrports )) {
5668- rport = (struct bfa_fcs_rport_s * ) qe ;
5669- if (bfa_ntoh3b (rport -> pid ) > 0xFFF000 ) {
5670- qe = bfa_q_next (qe );
5671- bfa_trc (fcs , (u32 ) rport -> pwwn );
5672- bfa_trc (fcs , rport -> pid );
5673- bfa_trc (fcs , i );
5674- continue ;
5675- }
5676-
5677- if (bwwn ) {
5678- if (!memcmp (& wwn , & rport -> pwwn , 8 ))
5679- break ;
5680- } else {
5681- if (i == index )
5682- break ;
5683- }
5684-
5685- i ++ ;
5686- qe = bfa_q_next (qe );
5687- }
5688-
5689- bfa_trc (fcs , i );
5690- if (rport )
5691- return rport -> pwwn ;
5692- else
5693- return (wwn_t ) 0 ;
5694- }
5695-
56965629void
56975630bfa_fcs_lport_get_rport_quals (struct bfa_fcs_lport_s * port ,
56985631 struct bfa_rport_qualifier_s rports [], int * nrports )
@@ -5823,54 +5756,6 @@ bfa_fcs_lookup_port(struct bfa_fcs_s *fcs, u16 vf_id, wwn_t lpwwn)
58235756 return NULL ;
58245757}
58255758
5826- /*
5827- * API corresponding to NPIV_VPORT_GETINFO.
5828- */
5829- void
5830- bfa_fcs_lport_get_info (struct bfa_fcs_lport_s * port ,
5831- struct bfa_lport_info_s * port_info )
5832- {
5833-
5834- bfa_trc (port -> fcs , port -> fabric -> fabric_name );
5835-
5836- if (port -> vport == NULL ) {
5837- /*
5838- * This is a Physical port
5839- */
5840- port_info -> port_type = BFA_LPORT_TYPE_PHYSICAL ;
5841-
5842- /*
5843- * @todo : need to fix the state & reason
5844- */
5845- port_info -> port_state = 0 ;
5846- port_info -> offline_reason = 0 ;
5847-
5848- port_info -> port_wwn = bfa_fcs_lport_get_pwwn (port );
5849- port_info -> node_wwn = bfa_fcs_lport_get_nwwn (port );
5850-
5851- port_info -> max_vports_supp =
5852- bfa_lps_get_max_vport (port -> fcs -> bfa );
5853- port_info -> num_vports_inuse =
5854- port -> fabric -> num_vports ;
5855- port_info -> max_rports_supp = BFA_FCS_MAX_RPORTS_SUPP ;
5856- port_info -> num_rports_inuse = port -> num_rports ;
5857- } else {
5858- /*
5859- * This is a virtual port
5860- */
5861- port_info -> port_type = BFA_LPORT_TYPE_VIRTUAL ;
5862-
5863- /*
5864- * @todo : need to fix the state & reason
5865- */
5866- port_info -> port_state = 0 ;
5867- port_info -> offline_reason = 0 ;
5868-
5869- port_info -> port_wwn = bfa_fcs_lport_get_pwwn (port );
5870- port_info -> node_wwn = bfa_fcs_lport_get_nwwn (port );
5871- }
5872- }
5873-
58745759void
58755760bfa_fcs_lport_get_stats (struct bfa_fcs_lport_s * fcs_port ,
58765761 struct bfa_lport_stats_s * port_stats )
@@ -6567,15 +6452,6 @@ bfa_fcs_vport_offline(struct bfa_fcs_vport_s *vport)
65676452 bfa_sm_send_event (vport , BFA_FCS_VPORT_SM_OFFLINE );
65686453}
65696454
6570- /*
6571- * Cleanup notification from fabric SM on link timer expiry.
6572- */
6573- void
6574- bfa_fcs_vport_cleanup (struct bfa_fcs_vport_s * vport )
6575- {
6576- vport -> vport_stats .fab_cleanup ++ ;
6577- }
6578-
65796455/*
65806456 * Stop notification from fabric SM. To be invoked from within FCS.
65816457 */
@@ -6698,24 +6574,6 @@ bfa_fcs_pbc_vport_create(struct bfa_fcs_vport_s *vport, struct bfa_fcs_s *fcs,
66986574 return rc ;
66996575}
67006576
6701- /*
6702- * Use this function to findout if this is a pbc vport or not.
6703- *
6704- * @param[in] vport - pointer to bfa_fcs_vport_t.
6705- *
6706- * @returns None
6707- */
6708- bfa_boolean_t
6709- bfa_fcs_is_pbc_vport (struct bfa_fcs_vport_s * vport )
6710- {
6711-
6712- if (vport && (vport -> lport .port_cfg .preboot_vp == BFA_TRUE ))
6713- return BFA_TRUE ;
6714- else
6715- return BFA_FALSE ;
6716-
6717- }
6718-
67196577/*
67206578 * Use this function initialize the vport.
67216579 *
0 commit comments