diff options
author | Krishna Gudipati <kgudipat@brocade.com> | 2010-03-03 20:43:19 -0500 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-03-04 05:43:40 -0500 |
commit | 5b098082e22c168b7df4c5c3cd924047cee7d995 (patch) | |
tree | f4d40a769b8793382f7e11c1439f1bccb29729d8 /drivers/scsi/bfa/bfad.c | |
parent | ab5336189a12b6561a1b5708d782a4e27e2e3b79 (diff) |
[SCSI] bfa: Changes to support FDMI Driver Parameter
Added a FCS function to be called during driver init, to set the FDMI
Driver parameter.
fdmi.c: Created a disabled state when fdmi is disabled.
bfad.c:
* Added fdmi_enable driver parameter.
* Added support to call bfa_fcs_set_fdmi_param() to initialize fcs
fdmi setting.
Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/bfad.c')
-rw-r--r-- | drivers/scsi/bfa/bfad.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/scsi/bfa/bfad.c b/drivers/scsi/bfa/bfad.c index b52b773d49d9..8e2b2a26cb74 100644 --- a/drivers/scsi/bfa/bfad.c +++ b/drivers/scsi/bfa/bfad.c | |||
@@ -53,6 +53,7 @@ static int log_level = BFA_LOG_WARNING; | |||
53 | static int ioc_auto_recover = BFA_TRUE; | 53 | static int ioc_auto_recover = BFA_TRUE; |
54 | static int ipfc_enable = BFA_FALSE; | 54 | static int ipfc_enable = BFA_FALSE; |
55 | static int ipfc_mtu = -1; | 55 | static int ipfc_mtu = -1; |
56 | static int fdmi_enable = BFA_TRUE; | ||
56 | int bfa_lun_queue_depth = BFAD_LUN_QUEUE_DEPTH; | 57 | int bfa_lun_queue_depth = BFAD_LUN_QUEUE_DEPTH; |
57 | int bfa_linkup_delay = -1; | 58 | int bfa_linkup_delay = -1; |
58 | 59 | ||
@@ -74,6 +75,7 @@ module_param(log_level, int, S_IRUGO | S_IWUSR); | |||
74 | module_param(ioc_auto_recover, int, S_IRUGO | S_IWUSR); | 75 | module_param(ioc_auto_recover, int, S_IRUGO | S_IWUSR); |
75 | module_param(ipfc_enable, int, S_IRUGO | S_IWUSR); | 76 | module_param(ipfc_enable, int, S_IRUGO | S_IWUSR); |
76 | module_param(ipfc_mtu, int, S_IRUGO | S_IWUSR); | 77 | module_param(ipfc_mtu, int, S_IRUGO | S_IWUSR); |
78 | module_param(fdmi_enable, int, S_IRUGO | S_IWUSR); | ||
77 | module_param(bfa_linkup_delay, int, S_IRUGO | S_IWUSR); | 79 | module_param(bfa_linkup_delay, int, S_IRUGO | S_IWUSR); |
78 | 80 | ||
79 | /* | 81 | /* |
@@ -748,6 +750,7 @@ bfad_drv_init(struct bfad_s *bfad) | |||
748 | bfa_fcs_aen_init(&bfad->bfa_fcs, bfad->aen); | 750 | bfa_fcs_aen_init(&bfad->bfa_fcs, bfad->aen); |
749 | bfa_fcs_init(&bfad->bfa_fcs, &bfad->bfa, bfad, BFA_FALSE); | 751 | bfa_fcs_init(&bfad->bfa_fcs, &bfad->bfa, bfad, BFA_FALSE); |
750 | bfa_fcs_driver_info_init(&bfad->bfa_fcs, &driver_info); | 752 | bfa_fcs_driver_info_init(&bfad->bfa_fcs, &driver_info); |
753 | bfa_fcs_set_fdmi_param(&bfad->bfa_fcs, fdmi_enable); | ||
751 | spin_unlock_irqrestore(&bfad->bfad_lock, flags); | 754 | spin_unlock_irqrestore(&bfad->bfad_lock, flags); |
752 | 755 | ||
753 | bfad->bfad_flags |= BFAD_DRV_INIT_DONE; | 756 | bfad->bfad_flags |= BFAD_DRV_INIT_DONE; |