diff options
Diffstat (limited to 'drivers/scsi/be2iscsi/be_main.h')
-rw-r--r-- | drivers/scsi/be2iscsi/be_main.h | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.h b/drivers/scsi/be2iscsi/be_main.h index c53a80ab796c..87ec21280a37 100644 --- a/drivers/scsi/be2iscsi/be_main.h +++ b/drivers/scsi/be2iscsi/be_main.h | |||
@@ -257,6 +257,11 @@ struct hba_parameters { | |||
257 | unsigned int num_sge; | 257 | unsigned int num_sge; |
258 | }; | 258 | }; |
259 | 259 | ||
260 | struct invalidate_command_table { | ||
261 | unsigned short icd; | ||
262 | unsigned short cid; | ||
263 | } __packed; | ||
264 | |||
260 | struct beiscsi_hba { | 265 | struct beiscsi_hba { |
261 | struct hba_parameters params; | 266 | struct hba_parameters params; |
262 | struct hwi_controller *phwi_ctrlr; | 267 | struct hwi_controller *phwi_ctrlr; |
@@ -329,6 +334,8 @@ struct beiscsi_hba { | |||
329 | struct work_struct work_cqs; /* The work being queued */ | 334 | struct work_struct work_cqs; /* The work being queued */ |
330 | struct be_ctrl_info ctrl; | 335 | struct be_ctrl_info ctrl; |
331 | unsigned int generation; | 336 | unsigned int generation; |
337 | struct invalidate_command_table inv_tbl[128]; | ||
338 | |||
332 | }; | 339 | }; |
333 | 340 | ||
334 | struct beiscsi_session { | 341 | struct beiscsi_session { |
@@ -491,8 +498,6 @@ struct hwi_async_entry { | |||
491 | struct list_head data_busy_list; | 498 | struct list_head data_busy_list; |
492 | }; | 499 | }; |
493 | 500 | ||
494 | #define BE_MIN_ASYNC_ENTRIES 128 | ||
495 | |||
496 | struct hwi_async_pdu_context { | 501 | struct hwi_async_pdu_context { |
497 | struct { | 502 | struct { |
498 | struct be_bus_address pa_base; | 503 | struct be_bus_address pa_base; |
@@ -533,7 +538,7 @@ struct hwi_async_pdu_context { | |||
533 | * This is a varying size list! Do not add anything | 538 | * This is a varying size list! Do not add anything |
534 | * after this entry!! | 539 | * after this entry!! |
535 | */ | 540 | */ |
536 | struct hwi_async_entry async_entry[BE_MIN_ASYNC_ENTRIES]; | 541 | struct hwi_async_entry async_entry[BE2_MAX_SESSIONS * 2]; |
537 | }; | 542 | }; |
538 | 543 | ||
539 | #define PDUCQE_CODE_MASK 0x0000003F | 544 | #define PDUCQE_CODE_MASK 0x0000003F |