Skip to content

Commit 3fe9882

Browse files
selvintxavierjgunthorpe
authored andcommitted
RDMA/bnxt_re: Move the interface version to chip context structure
FW interface version check is required for multiple features. Moving the interface version to chip context structure. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Selvin Xavier <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
1 parent ba75fe7 commit 3fe9882

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

drivers/infiniband/hw/bnxt_re/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1078,7 +1078,7 @@ static void bnxt_re_query_hwrm_intf_version(struct bnxt_re_dev *rdev)
10781078
}
10791079

10801080
cctx = rdev->chip_ctx;
1081-
rdev->qplib_ctx.hwrm_intf_ver =
1081+
cctx->hwrm_intf_ver =
10821082
(u64)le16_to_cpu(resp.hwrm_intf_major) << 48 |
10831083
(u64)le16_to_cpu(resp.hwrm_intf_minor) << 32 |
10841084
(u64)le16_to_cpu(resp.hwrm_intf_build) << 16 |

drivers/infiniband/hw/bnxt_re/qplib_res.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ struct bnxt_qplib_chip_ctx {
5757
u16 hw_stats_size;
5858
u16 hwrm_cmd_max_timeout;
5959
struct bnxt_qplib_drv_modes modes;
60+
u64 hwrm_intf_ver;
6061
};
6162

6263
#define PTR_CNT_PER_PG (PAGE_SIZE / sizeof(void *))
@@ -242,7 +243,6 @@ struct bnxt_qplib_ctx {
242243
struct bnxt_qplib_tqm_ctx tqm_ctx;
243244
struct bnxt_qplib_stats stats;
244245
struct bnxt_qplib_vf_res vf_res;
245-
u64 hwrm_intf_ver;
246246
};
247247

248248
struct bnxt_qplib_res {

0 commit comments

Comments
 (0)