diff options
author | Jing Huang <huangj@brocade.com> | 2010-07-08 22:46:26 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-27 13:04:04 -0400 |
commit | d9883548a0b0afec4786e6c5cd8d03d43a30b779 (patch) | |
tree | d7ec50fa682ef49063c80f8d77ca85a4fa38b052 /drivers/scsi/bfa/include/fcs | |
parent | ed96932470e4ca3aab29518a748dc1162853b456 (diff) |
[SCSI] bfa: PBC vport create
This patch enables creating PBC vport.
During fcs init, fcs will read PBC vport using bfa iocfc API and invoke fcb
callback to add the pbc vport entries into a list. The pbc vport list will be
traversed in the subsequent pci probe process and vport will be created using
fc transport provided vport create function.
Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/include/fcs')
-rw-r--r-- | drivers/scsi/bfa/include/fcs/bfa_fcs.h | 4 | ||||
-rw-r--r-- | drivers/scsi/bfa/include/fcs/bfa_fcs_vport.h | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/drivers/scsi/bfa/include/fcs/bfa_fcs.h b/drivers/scsi/bfa/include/fcs/bfa_fcs.h index f2fd35fdee2..54e5b81ab2a 100644 --- a/drivers/scsi/bfa/include/fcs/bfa_fcs.h +++ b/drivers/scsi/bfa/include/fcs/bfa_fcs.h | |||
@@ -61,8 +61,8 @@ struct bfa_fcs_s { | |||
61 | /* | 61 | /* |
62 | * bfa fcs API functions | 62 | * bfa fcs API functions |
63 | */ | 63 | */ |
64 | void bfa_fcs_attach(struct bfa_fcs_s *fcs, struct bfa_s *bfa, struct bfad_s *bfad, | 64 | void bfa_fcs_attach(struct bfa_fcs_s *fcs, struct bfa_s *bfa, |
65 | bfa_boolean_t min_cfg); | 65 | struct bfad_s *bfad, bfa_boolean_t min_cfg); |
66 | void bfa_fcs_init(struct bfa_fcs_s *fcs); | 66 | void bfa_fcs_init(struct bfa_fcs_s *fcs); |
67 | void bfa_fcs_driver_info_init(struct bfa_fcs_s *fcs, | 67 | void bfa_fcs_driver_info_init(struct bfa_fcs_s *fcs, |
68 | struct bfa_fcs_driver_info_s *driver_info); | 68 | struct bfa_fcs_driver_info_s *driver_info); |
diff --git a/drivers/scsi/bfa/include/fcs/bfa_fcs_vport.h b/drivers/scsi/bfa/include/fcs/bfa_fcs_vport.h index cd33f2cd5c3..0af26243086 100644 --- a/drivers/scsi/bfa/include/fcs/bfa_fcs_vport.h +++ b/drivers/scsi/bfa/include/fcs/bfa_fcs_vport.h | |||
@@ -49,6 +49,10 @@ bfa_status_t bfa_fcs_vport_create(struct bfa_fcs_vport_s *vport, | |||
49 | struct bfa_fcs_s *fcs, u16 vf_id, | 49 | struct bfa_fcs_s *fcs, u16 vf_id, |
50 | struct bfa_port_cfg_s *port_cfg, | 50 | struct bfa_port_cfg_s *port_cfg, |
51 | struct bfad_vport_s *vport_drv); | 51 | struct bfad_vport_s *vport_drv); |
52 | bfa_status_t bfa_fcs_pbc_vport_create(struct bfa_fcs_vport_s *vport, | ||
53 | struct bfa_fcs_s *fcs, uint16_t vf_id, | ||
54 | struct bfa_port_cfg_s *port_cfg, | ||
55 | struct bfad_vport_s *vport_drv); | ||
52 | bfa_status_t bfa_fcs_vport_delete(struct bfa_fcs_vport_s *vport); | 56 | bfa_status_t bfa_fcs_vport_delete(struct bfa_fcs_vport_s *vport); |
53 | bfa_status_t bfa_fcs_vport_start(struct bfa_fcs_vport_s *vport); | 57 | bfa_status_t bfa_fcs_vport_start(struct bfa_fcs_vport_s *vport); |
54 | bfa_status_t bfa_fcs_vport_stop(struct bfa_fcs_vport_s *vport); | 58 | bfa_status_t bfa_fcs_vport_stop(struct bfa_fcs_vport_s *vport); |