Commit 880245fd authored by Jacob Moroni's avatar Jacob Moroni Committed by Jason Gunthorpe
Browse files

RDMA/irdma: Remove unused struct irdma_cq fields

These fields were set but not used anywhere, so remove them.

Link: https://patch.msgid.link/r/20250923142128.943240-1-jmoroni@google.com


Signed-off-by: default avatarJacob Moroni <jmoroni@google.com>
Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
parent 4bab6d95
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -2544,8 +2544,6 @@ static int irdma_create_cq(struct ib_cq *ibcq,
			goto cq_free_rsrc;
		}

		iwcq->iwpbl = iwpbl;
		iwcq->cq_mem_size = 0;
		cqmr = &iwpbl->cq_mr;

		if (rf->sc_dev.hw_attrs.uk_attrs.feature_flags &
@@ -2560,7 +2558,6 @@ static int irdma_create_cq(struct ib_cq *ibcq,
				err_code = -EPROTO;
				goto cq_free_rsrc;
			}
			iwcq->iwpbl_shadow = iwpbl_shadow;
			cqmr_shadow = &iwpbl_shadow->cq_mr;
			info.shadow_area_pa = cqmr_shadow->cq_pbl.addr;
			cqmr->split = true;
+0 −6
Original line number Diff line number Diff line
@@ -140,21 +140,15 @@ struct irdma_srq {
struct irdma_cq {
	struct ib_cq ibcq;
	struct irdma_sc_cq sc_cq;
	u16 cq_head;
	u16 cq_size;
	u16 cq_num;
	bool user_mode;
	atomic_t armed;
	enum irdma_cmpl_notify last_notify;
	u32 polled_cmpls;
	u32 cq_mem_size;
	struct irdma_dma_mem kmem;
	struct irdma_dma_mem kmem_shadow;
	struct completion free_cq;
	refcount_t refcnt;
	spinlock_t lock; /* for poll cq */
	struct irdma_pbl *iwpbl;
	struct irdma_pbl *iwpbl_shadow;
	struct list_head resize_list;
	struct irdma_cq_poll_info cur_cqe;
	struct list_head cmpl_generated;