Skip to content

Commit ecbcc1b

Browse files
jakemoroniopsiff
authored andcommitted
RDMA/irdma: Remove unused struct irdma_cq fields
[ Upstream commit 880245f ] These fields were set but not used anywhere, so remove them. Link: https://patch.msgid.link/r/[email protected] Signed-off-by: Jacob Moroni <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]> Stable-dep-of: 5575b76 ("RDMA/irdma: Set irdma_cq cq_num field during CQ create") Signed-off-by: Sasha Levin <[email protected]> (cherry picked from commit d559ddd687edd1addbd14d2acc8a1b4a1da4be11) Signed-off-by: Wentao Guan <[email protected]>
1 parent ad05154 commit ecbcc1b

File tree

2 files changed

+0
-9
lines changed

2 files changed

+0
-9
lines changed

drivers/infiniband/hw/irdma/verbs.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2115,8 +2115,6 @@ static int irdma_create_cq(struct ib_cq *ibcq,
21152115
goto cq_free_rsrc;
21162116
}
21172117

2118-
iwcq->iwpbl = iwpbl;
2119-
iwcq->cq_mem_size = 0;
21202118
cqmr = &iwpbl->cq_mr;
21212119

21222120
if (rf->sc_dev.hw_attrs.uk_attrs.feature_flags &
@@ -2131,7 +2129,6 @@ static int irdma_create_cq(struct ib_cq *ibcq,
21312129
err_code = -EPROTO;
21322130
goto cq_free_rsrc;
21332131
}
2134-
iwcq->iwpbl_shadow = iwpbl_shadow;
21352132
cqmr_shadow = &iwpbl_shadow->cq_mr;
21362133
info.shadow_area_pa = cqmr_shadow->cq_pbl.addr;
21372134
cqmr->split = true;

drivers/infiniband/hw/irdma/verbs.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -113,21 +113,15 @@ struct irdma_mr {
113113
struct irdma_cq {
114114
struct ib_cq ibcq;
115115
struct irdma_sc_cq sc_cq;
116-
u16 cq_head;
117-
u16 cq_size;
118116
u16 cq_num;
119117
bool user_mode;
120118
atomic_t armed;
121119
enum irdma_cmpl_notify last_notify;
122-
u32 polled_cmpls;
123-
u32 cq_mem_size;
124120
struct irdma_dma_mem kmem;
125121
struct irdma_dma_mem kmem_shadow;
126122
struct completion free_cq;
127123
refcount_t refcnt;
128124
spinlock_t lock; /* for poll cq */
129-
struct irdma_pbl *iwpbl;
130-
struct irdma_pbl *iwpbl_shadow;
131125
struct list_head resize_list;
132126
struct irdma_cq_poll_info cur_cqe;
133127
struct list_head cmpl_generated;

0 commit comments

Comments
 (0)