Skip to content

Commit 7c08bc1

Browse files
committed
RDMA/bnxt_re: Remove FMR leftovers
The bnxt_re_fmr struct is never referenced and the max_fmr items in bnxt_qplib_dev_attr are never read. Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Max Gurtovoy <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent d29d58e commit 7c08bc1

File tree

4 files changed

+0
-14
lines changed

4 files changed

+0
-14
lines changed

drivers/infiniband/hw/bnxt_re/ib_verbs.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -177,9 +177,6 @@ int bnxt_re_query_device(struct ib_device *ibdev,
177177
ib_attr->max_total_mcast_qp_attach = 0;
178178
ib_attr->max_ah = dev_attr->max_ah;
179179

180-
ib_attr->max_fmr = 0;
181-
ib_attr->max_map_per_fmr = 0;
182-
183180
ib_attr->max_srq = dev_attr->max_srq;
184181
ib_attr->max_srq_wr = dev_attr->max_srq_wqes;
185182
ib_attr->max_srq_sge = dev_attr->max_srq_sges;

drivers/infiniband/hw/bnxt_re/ib_verbs.h

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,6 @@ struct bnxt_re_frpl {
122122
u64 *page_list;
123123
};
124124

125-
struct bnxt_re_fmr {
126-
struct bnxt_re_dev *rdev;
127-
struct ib_fmr ib_fmr;
128-
struct bnxt_qplib_mrw qplib_fmr;
129-
};
130-
131125
struct bnxt_re_mw {
132126
struct bnxt_re_dev *rdev;
133127
struct ib_mw ib_mw;

drivers/infiniband/hw/bnxt_re/qplib_sp.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,9 +132,6 @@ int bnxt_qplib_get_dev_attr(struct bnxt_qplib_rcfw *rcfw,
132132
attr->max_raw_ethy_qp = le32_to_cpu(sb->max_raw_eth_qp);
133133
attr->max_ah = le32_to_cpu(sb->max_ah);
134134

135-
attr->max_fmr = le32_to_cpu(sb->max_fmr);
136-
attr->max_map_per_fmr = sb->max_map_per_fmr;
137-
138135
attr->max_srq = le16_to_cpu(sb->max_srq);
139136
attr->max_srq_wqes = le32_to_cpu(sb->max_srq_wr) - 1;
140137
attr->max_srq_sges = sb->max_srq_sge;

drivers/infiniband/hw/bnxt_re/qplib_sp.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,6 @@ struct bnxt_qplib_dev_attr {
6464
u32 max_mw;
6565
u32 max_raw_ethy_qp;
6666
u32 max_ah;
67-
u32 max_fmr;
68-
u32 max_map_per_fmr;
6967
u32 max_srq;
7068
u32 max_srq_wqes;
7169
u32 max_srq_sges;

0 commit comments

Comments
 (0)