diff options
author | Jing Huang <huangj@brocade.com> | 2010-07-08 22:57:33 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2010-07-27 13:04:17 -0400 |
commit | 36d345a703b7b3f80a56ee37abb7908c52d1cd67 (patch) | |
tree | fe038e44b6c274a55814d1bae84f0cc21ad4b15a /drivers/scsi/bfa/bfa_fcpim_priv.h | |
parent | 4b5e759dca9fb26d921c1267283350004dbf197b (diff) |
[SCSI] bfa: add dynamic queue selection
Add new bfa functionality to support dynamic queue selection (IO redirection).
IO redirection can only be enabled when QoS is disabled.
Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/bfa/bfa_fcpim_priv.h')
-rw-r--r-- | drivers/scsi/bfa/bfa_fcpim_priv.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/scsi/bfa/bfa_fcpim_priv.h b/drivers/scsi/bfa/bfa_fcpim_priv.h index 3db39da72427..762516cb5cb2 100644 --- a/drivers/scsi/bfa/bfa_fcpim_priv.h +++ b/drivers/scsi/bfa/bfa_fcpim_priv.h | |||
@@ -49,7 +49,8 @@ struct bfa_fcpim_mod_s { | |||
49 | int num_tskim_reqs; | 49 | int num_tskim_reqs; |
50 | u32 path_tov; | 50 | u32 path_tov; |
51 | u16 q_depth; | 51 | u16 q_depth; |
52 | u16 rsvd; | 52 | u8 reqq; /* Request queue to be used */ |
53 | u8 rsvd; | ||
53 | struct list_head itnim_q; /* queue of active itnim */ | 54 | struct list_head itnim_q; /* queue of active itnim */ |
54 | struct list_head ioim_free_q; /* free IO resources */ | 55 | struct list_head ioim_free_q; /* free IO resources */ |
55 | struct list_head ioim_resfree_q; /* IOs waiting for f/w */ | 56 | struct list_head ioim_resfree_q; /* IOs waiting for f/w */ |
@@ -58,6 +59,7 @@ struct bfa_fcpim_mod_s { | |||
58 | u32 ios_active; /* current active IOs */ | 59 | u32 ios_active; /* current active IOs */ |
59 | u32 delay_comp; | 60 | u32 delay_comp; |
60 | struct bfa_fcpim_stats_s stats; | 61 | struct bfa_fcpim_stats_s stats; |
62 | bfa_boolean_t ioredirect; | ||
61 | }; | 63 | }; |
62 | 64 | ||
63 | struct bfa_ioim_s; | 65 | struct bfa_ioim_s; |
@@ -82,6 +84,7 @@ struct bfa_ioim_s { | |||
82 | struct bfa_cb_qe_s hcb_qe; /* bfa callback qelem */ | 84 | struct bfa_cb_qe_s hcb_qe; /* bfa callback qelem */ |
83 | bfa_cb_cbfn_t io_cbfn; /* IO completion handler */ | 85 | bfa_cb_cbfn_t io_cbfn; /* IO completion handler */ |
84 | struct bfa_ioim_sp_s *iosp; /* slow-path IO handling */ | 86 | struct bfa_ioim_sp_s *iosp; /* slow-path IO handling */ |
87 | u8 reqq; /* Request queue for I/O */ | ||
85 | }; | 88 | }; |
86 | 89 | ||
87 | struct bfa_ioim_sp_s { | 90 | struct bfa_ioim_sp_s { |