]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
RDMA/irdma: Remove unused struct irdma_cq fields
authorJacob Moroni <jmoroni@google.com>
Tue, 23 Sep 2025 14:21:28 +0000 (14:21 +0000)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 24 Sep 2025 13:52:57 +0000 (10:52 -0300)
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: Jacob Moroni <jmoroni@google.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/irdma/verbs.c
drivers/infiniband/hw/irdma/verbs.h

index 3e5196ee61efa76261a13ea40a11ffc6cd6b626c..76ce6137f2ba3255c0b1685ac91601d4a410b611 100644 (file)
@@ -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;
index 49972b0600a3c0a62df0ad25623b099afd34d136..ed21c1b56e8ec63ee3a46d26580eaa10e671da09 100644 (file)
@@ -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;