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.h | |
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.h')
-rw-r--r-- | drivers/scsi/lpfc/lpfc.h | 34 |
1 files changed, 19 insertions, 15 deletions
diff --git a/drivers/scsi/lpfc/lpfc.h b/drivers/scsi/lpfc/lpfc.h index 6127635e6275..fb56ff9d5da2 100644 --- a/drivers/scsi/lpfc/lpfc.h +++ b/drivers/scsi/lpfc/lpfc.h | |||
@@ -338,6 +338,20 @@ struct lpfc_vport { | |||
338 | struct lpfc_debugfs_trc *disc_trc; | 338 | struct lpfc_debugfs_trc *disc_trc; |
339 | atomic_t disc_trc_cnt; | 339 | atomic_t disc_trc_cnt; |
340 | #endif | 340 | #endif |
341 | /* Vport Config Parameters */ | ||
342 | uint32_t cfg_scan_down; | ||
343 | uint32_t cfg_lun_queue_depth; | ||
344 | uint32_t cfg_nodev_tmo; | ||
345 | uint32_t cfg_devloss_tmo; | ||
346 | uint32_t cfg_restrict_login; | ||
347 | uint32_t cfg_peer_port_login; | ||
348 | uint32_t cfg_fcp_class; | ||
349 | uint32_t cfg_use_adisc; | ||
350 | uint32_t cfg_fdmi_on; | ||
351 | uint32_t cfg_discovery_threads; | ||
352 | uint32_t cfg_max_luns; | ||
353 | |||
354 | uint32_t dev_loss_tmo_changed; | ||
341 | }; | 355 | }; |
342 | 356 | ||
343 | struct hbq_s { | 357 | struct hbq_s { |
@@ -413,28 +427,16 @@ struct lpfc_hba { | |||
413 | uint8_t wwpn[8]; | 427 | uint8_t wwpn[8]; |
414 | uint32_t RandomData[7]; | 428 | uint32_t RandomData[7]; |
415 | 429 | ||
416 | uint32_t cfg_log_verbose; | 430 | /* HBA Config Parameters */ |
417 | uint32_t cfg_lun_queue_depth; | ||
418 | uint32_t cfg_nodev_tmo; | ||
419 | uint32_t cfg_devloss_tmo; | ||
420 | uint32_t cfg_hba_queue_depth; | ||
421 | uint32_t cfg_peer_port_login; | ||
422 | uint32_t cfg_vport_restrict_login; | ||
423 | uint32_t cfg_npiv_enable; | ||
424 | uint32_t cfg_fcp_class; | ||
425 | uint32_t cfg_use_adisc; | ||
426 | uint32_t cfg_ack0; | 431 | uint32_t cfg_ack0; |
432 | uint32_t cfg_npiv_enable; | ||
427 | uint32_t cfg_topology; | 433 | uint32_t cfg_topology; |
428 | uint32_t cfg_scan_down; | ||
429 | uint32_t cfg_link_speed; | 434 | uint32_t cfg_link_speed; |
430 | uint32_t cfg_cr_delay; | 435 | uint32_t cfg_cr_delay; |
431 | uint32_t cfg_cr_count; | 436 | uint32_t cfg_cr_count; |
432 | uint32_t cfg_multi_ring_support; | 437 | uint32_t cfg_multi_ring_support; |
433 | uint32_t cfg_multi_ring_rctl; | 438 | uint32_t cfg_multi_ring_rctl; |
434 | uint32_t cfg_multi_ring_type; | 439 | uint32_t cfg_multi_ring_type; |
435 | uint32_t cfg_fdmi_on; | ||
436 | uint32_t cfg_discovery_threads; | ||
437 | uint32_t cfg_max_luns; | ||
438 | uint32_t cfg_poll; | 440 | uint32_t cfg_poll; |
439 | uint32_t cfg_poll_tmo; | 441 | uint32_t cfg_poll_tmo; |
440 | uint32_t cfg_use_msi; | 442 | uint32_t cfg_use_msi; |
@@ -442,8 +444,10 @@ struct lpfc_hba { | |||
442 | uint32_t cfg_sg_dma_buf_size; | 444 | uint32_t cfg_sg_dma_buf_size; |
443 | uint64_t cfg_soft_wwnn; | 445 | uint64_t cfg_soft_wwnn; |
444 | uint64_t cfg_soft_wwpn; | 446 | uint64_t cfg_soft_wwpn; |
447 | uint32_t cfg_hba_queue_depth; | ||
445 | 448 | ||
446 | uint32_t dev_loss_tmo_changed; | 449 | /* Config paramters that should be in the vport */ |
450 | uint32_t cfg_log_verbose; | ||
447 | 451 | ||
448 | lpfc_vpd_t vpd; /* vital product data */ | 452 | lpfc_vpd_t vpd; /* vital product data */ |
449 | 453 | ||