RDMA/bnxt_re: Optimize the bnxt_re_init_hwrm_hdr usage
authorSelvin Xavier <selvin.xavier@broadcom.com>
Tue, 13 Jun 2023 18:12:19 +0000 (11:12 -0700)
committerJason Gunthorpe <jgg@nvidia.com>
Wed, 21 Jun 2023 17:13:17 +0000 (14:13 -0300)
commit7d3115eba3e3eef6e0cbe65f05285c5ab28360d7
treeeb95ec473e1fe9f57cc253bc671fd52a546b378e
parent390bf429cc6ce6844f834b1d9ddfbc1125aff1fc
RDMA/bnxt_re: Optimize the bnxt_re_init_hwrm_hdr usage

As of now bnxt_re_init_hwrm_hdr is taking only the opcode from the
caller. compl_ring and target_id field is always -1. These fields might be
changed when newer features are added. For now, removing these parameters
as they are hard coded. Also, remove the rdev field which is not used.

Also, initialize the structure bnxt_fw_msg during declaration itself.

Link: https://lore.kernel.org/r/1686679943-17117-4-git-send-email-selvin.xavier@broadcom.com
Suggested-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/bnxt_re/main.c