Skip to content

Commit bfead3b

Browse files
Jayamohan KallickalJames Bottomley
authored andcommitted
[SCSI] be2iscsi: Adding msix and mcc_rings V3
This patch enables msix for be2iscsi. It also enables use of mcc_rings for fw commands. Since the mcc eq creation is dependent on msix I am sending as one patch Signed-off-by: Jayamohan Kallickal <[email protected]> Signed-off-by: James Bottomley <[email protected]>
1 parent b4a9c7e commit bfead3b

File tree

8 files changed

+1030
-331
lines changed

8 files changed

+1030
-331
lines changed

drivers/scsi/be2iscsi/be.h

Lines changed: 9 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@
2020

2121
#include <linux/pci.h>
2222
#include <linux/if_vlan.h>
23-
24-
#define FW_VER_LEN 32
23+
#include <linux/blk-iopoll.h>
24+
#define FW_VER_LEN 32
25+
#define MCC_Q_LEN 128
26+
#define MCC_CQ_LEN 256
2527

2628
struct be_dma_mem {
2729
void *va;
@@ -74,18 +76,14 @@ static inline void queue_tail_inc(struct be_queue_info *q)
7476

7577
struct be_eq_obj {
7678
struct be_queue_info q;
77-
char desc[32];
78-
79-
/* Adaptive interrupt coalescing (AIC) info */
80-
bool enable_aic;
81-
u16 min_eqd; /* in usecs */
82-
u16 max_eqd; /* in usecs */
83-
u16 cur_eqd; /* in usecs */
79+
struct beiscsi_hba *phba;
80+
struct be_queue_info *cq;
81+
struct blk_iopoll iopoll;
8482
};
8583

8684
struct be_mcc_obj {
87-
struct be_queue_info *q;
88-
struct be_queue_info *cq;
85+
struct be_queue_info q;
86+
struct be_queue_info cq;
8987
};
9088

9189
struct be_ctrl_info {
@@ -176,8 +174,4 @@ static inline void swap_dws(void *wrb, int len)
176174
} while (len);
177175
#endif /* __BIG_ENDIAN */
178176
}
179-
180-
extern void beiscsi_cq_notify(struct be_ctrl_info *ctrl, u16 qid, bool arm,
181-
u16 num_popped);
182-
183177
#endif /* BEISCSI_H */

0 commit comments

Comments
 (0)