aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/iser/iscsi_iser.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/infiniband/ulp/iser/iscsi_iser.h')
-rw-r--r--drivers/infiniband/ulp/iser/iscsi_iser.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/infiniband/ulp/iser/iscsi_iser.h b/drivers/infiniband/ulp/iser/iscsi_iser.h
index 4fcb25604d80..6c3743b6860e 100644
--- a/drivers/infiniband/ulp/iser/iscsi_iser.h
+++ b/drivers/infiniband/ulp/iser/iscsi_iser.h
@@ -145,6 +145,8 @@
145 ISER_MAX_TX_MISC_PDUS + \ 145 ISER_MAX_TX_MISC_PDUS + \
146 ISER_MAX_RX_MISC_PDUS) 146 ISER_MAX_RX_MISC_PDUS)
147 147
148#define ISER_WC_BATCH_COUNT 16
149
148#define ISER_VER 0x10 150#define ISER_VER 0x10
149#define ISER_WSV 0x08 151#define ISER_WSV 0x08
150#define ISER_RSV 0x04 152#define ISER_RSV 0x04
@@ -273,6 +275,7 @@ struct iscsi_iser_task;
273 * 275 *
274 * @device: pointer to device handle 276 * @device: pointer to device handle
275 * @cq: completion queue 277 * @cq: completion queue
278 * @wcs: work completion array
276 * @tasklet: Tasklet handle 279 * @tasklet: Tasklet handle
277 * @active_qps: Number of active QPs attached 280 * @active_qps: Number of active QPs attached
278 * to completion context 281 * to completion context
@@ -280,6 +283,7 @@ struct iscsi_iser_task;
280struct iser_comp { 283struct iser_comp {
281 struct iser_device *device; 284 struct iser_device *device;
282 struct ib_cq *cq; 285 struct ib_cq *cq;
286 struct ib_wc wcs[ISER_WC_BATCH_COUNT];
283 struct tasklet_struct tasklet; 287 struct tasklet_struct tasklet;
284 int active_qps; 288 int active_qps;
285}; 289};