diff options
author | Krishna Gudipati <kgudipat@brocade.com> | 2011-07-20 20:03:09 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2011-07-27 06:51:44 -0400 |
commit | 3ec4f2c8bff2568e5a51ba083db2c073321ca2c1 (patch) | |
tree | 95618b9afd2e59f6fa85c33603f34535e1b0485e /drivers/scsi/bfa/bfa_svc.c | |
parent | 45191236b179877d259a40e13c5144628d4df37f (diff) |
[SCSI] bfa: Added support to configure QOS and collect stats.
- Added support to configure QOS on Brocade adapter ports.
- Added support to collect / reset QOS statistics.
Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/scsi/bfa/bfa_svc.c')
-rw-r--r-- | drivers/scsi/bfa/bfa_svc.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/drivers/scsi/bfa/bfa_svc.c b/drivers/scsi/bfa/bfa_svc.c index 9884d6edfb57..d0ed4dd6f35a 100644 --- a/drivers/scsi/bfa/bfa_svc.c +++ b/drivers/scsi/bfa/bfa_svc.c | |||
@@ -2230,6 +2230,11 @@ bfa_fcport_sm_linkdown(struct bfa_fcport_s *fcport, | |||
2230 | BFA_LOG(KERN_INFO, bfad, bfa_log_level, | 2230 | BFA_LOG(KERN_INFO, bfad, bfa_log_level, |
2231 | "Base port online: WWN = %s\n", pwwn_buf); | 2231 | "Base port online: WWN = %s\n", pwwn_buf); |
2232 | bfa_fcport_aen_post(fcport, BFA_PORT_AEN_ONLINE); | 2232 | bfa_fcport_aen_post(fcport, BFA_PORT_AEN_ONLINE); |
2233 | |||
2234 | /* If QoS is enabled and it is not online, send AEN */ | ||
2235 | if (fcport->cfg.qos_enabled && | ||
2236 | fcport->qos_attr.state != BFA_QOS_ONLINE) | ||
2237 | bfa_fcport_aen_post(fcport, BFA_PORT_AEN_QOS_NEG); | ||
2233 | break; | 2238 | break; |
2234 | 2239 | ||
2235 | case BFA_FCPORT_SM_LINKDOWN: | 2240 | case BFA_FCPORT_SM_LINKDOWN: |
@@ -3454,6 +3459,11 @@ bfa_fcport_isr(struct bfa_s *bfa, struct bfi_msg_s *msg) | |||
3454 | fcport->use_flash_cfg = BFA_FALSE; | 3459 | fcport->use_flash_cfg = BFA_FALSE; |
3455 | } | 3460 | } |
3456 | 3461 | ||
3462 | if (fcport->cfg.qos_enabled) | ||
3463 | fcport->qos_attr.state = BFA_QOS_OFFLINE; | ||
3464 | else | ||
3465 | fcport->qos_attr.state = BFA_QOS_DISABLED; | ||
3466 | |||
3457 | bfa_sm_send_event(fcport, BFA_FCPORT_SM_FWRSP); | 3467 | bfa_sm_send_event(fcport, BFA_FCPORT_SM_FWRSP); |
3458 | } | 3468 | } |
3459 | break; | 3469 | break; |