diff options
author | James Smart <James.Smart@Emulex.Com> | 2007-08-02 11:09:59 -0400 |
---|---|---|
committer | James Bottomley <jejb@mulgrave.localdomain> | 2007-08-01 13:19:24 -0400 |
commit | 3de2a653a127c468284c48e233719dc39769e354 (patch) | |
tree | c57fd1c8b8ce28d2e2e87ddbff0ecb10ac1524f9 /drivers/scsi/lpfc/lpfc_vport.c | |
parent | 549e55cd2a1b83ea45ac17fb6c309654a3d371a4 (diff) |
[SCSI] lpfc 8.2.2 : Attribute and Parameter splits for vport and physical port
- Split attributes up into vport and non-vport attributes.
- Move vport specific cfg params to vport
Many of the vport-specific behaviors were still global attributes
on the physical port. Move them to the vport itself.
Signed-off-by: James Smart <James.Smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi/lpfc/lpfc_vport.c')
-rw-r--r-- | drivers/scsi/lpfc/lpfc_vport.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/scsi/lpfc/lpfc_vport.c b/drivers/scsi/lpfc/lpfc_vport.c index e066855b0783..70e1bc34fd48 100644 --- a/drivers/scsi/lpfc/lpfc_vport.c +++ b/drivers/scsi/lpfc/lpfc_vport.c | |||
@@ -198,8 +198,8 @@ int | |||
198 | lpfc_vport_create(struct fc_vport *fc_vport, bool disable) | 198 | lpfc_vport_create(struct fc_vport *fc_vport, bool disable) |
199 | { | 199 | { |
200 | struct lpfc_nodelist *ndlp; | 200 | struct lpfc_nodelist *ndlp; |
201 | struct lpfc_vport *pport = | 201 | struct Scsi_Host *shost = fc_vport->shost; |
202 | (struct lpfc_vport *) fc_vport->shost->hostdata; | 202 | struct lpfc_vport *pport = (struct lpfc_vport *) shost->hostdata; |
203 | struct lpfc_hba *phba = pport->phba; | 203 | struct lpfc_hba *phba = pport->phba; |
204 | struct lpfc_vport *vport = NULL; | 204 | struct lpfc_vport *vport = NULL; |
205 | int instance; | 205 | int instance; |
@@ -237,7 +237,7 @@ lpfc_vport_create(struct fc_vport *fc_vport, bool disable) | |||
237 | goto error_out; | 237 | goto error_out; |
238 | } | 238 | } |
239 | 239 | ||
240 | vport = lpfc_create_port(phba, instance, fc_vport); | 240 | vport = lpfc_create_port(phba, instance, &fc_vport->dev); |
241 | if (!vport) { | 241 | if (!vport) { |
242 | lpfc_printf_log(phba, KERN_ERR, LOG_VPORT, | 242 | lpfc_printf_log(phba, KERN_ERR, LOG_VPORT, |
243 | "%d:1811 Create VPORT failed: vpi x%x\n", | 243 | "%d:1811 Create VPORT failed: vpi x%x\n", |