diff options
author | Krishna Gudipati <kgudipat@brocade.com> | 2010-03-05 22:35:33 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-03-07 02:27:05 -0500 |
commit | 86e32dabbad0d860b2be3c30a33c10a134d4ccf1 (patch) | |
tree | e480ba9c619607bd0fa0b0ced11ce08d811129ec /drivers/scsi/bfa/bfa_lps.c | |
parent | 72041ed8fc8ed92c11af90949bab7b08f3e34fd3 (diff) |
[SCSI] bfa: Fix to copy fpma MAC when requested by user space application.
Copy fpma MAC when requested by user space application. Added FPMA
mac address to the lport attributes structure.
Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/bfa_lps.c')
-rw-r--r-- | drivers/scsi/bfa/bfa_lps.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/drivers/scsi/bfa/bfa_lps.c b/drivers/scsi/bfa/bfa_lps.c index 4c98bdab3119..730616f6e671 100644 --- a/drivers/scsi/bfa/bfa_lps.c +++ b/drivers/scsi/bfa/bfa_lps.c | |||
@@ -613,9 +613,9 @@ bfa_lps_get_max_vport(struct bfa_s *bfa) | |||
613 | bfa_get_attr(bfa, &ioc_attr); | 613 | bfa_get_attr(bfa, &ioc_attr); |
614 | 614 | ||
615 | if (ioc_attr.pci_attr.device_id == BFA_PCI_DEVICE_ID_CT) | 615 | if (ioc_attr.pci_attr.device_id == BFA_PCI_DEVICE_ID_CT) |
616 | return (BFA_LPS_MAX_VPORTS_SUPP_CT); | 616 | return BFA_LPS_MAX_VPORTS_SUPP_CT; |
617 | else | 617 | else |
618 | return (BFA_LPS_MAX_VPORTS_SUPP_CB); | 618 | return BFA_LPS_MAX_VPORTS_SUPP_CB; |
619 | } | 619 | } |
620 | 620 | ||
621 | /** | 621 | /** |
@@ -837,6 +837,14 @@ bfa_lps_get_lsrjt_expl(struct bfa_lps_s *lps) | |||
837 | return lps->lsrjt_expl; | 837 | return lps->lsrjt_expl; |
838 | } | 838 | } |
839 | 839 | ||
840 | /** | ||
841 | * Return fpma/spma MAC for lport | ||
842 | */ | ||
843 | struct mac_s | ||
844 | bfa_lps_get_lp_mac(struct bfa_lps_s *lps) | ||
845 | { | ||
846 | return lps->lp_mac; | ||
847 | } | ||
840 | 848 | ||
841 | /** | 849 | /** |
842 | * LPS firmware message class handler. | 850 | * LPS firmware message class handler. |