mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 17:43:52 +02:00
RDMA/mana_ib: Query feature_flags bitmask from FW
Extend the mana_ib_gd_query_adapter_caps function to retrieve and store the feature_flags from the firmware response. Signed-off-by: Shiraz Saleem <shirazsaleem@microsoft.com> Signed-off-by: Konstantin Taranov <kotaranov@microsoft.com> Link: https://patch.msgid.link/1738751713-16169-2-git-send-email-kotaranov@linux.microsoft.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
This commit is contained in:
parent
d9d9434a3f
commit
bad4480934
|
|
@ -665,7 +665,7 @@ int mana_ib_gd_query_adapter_caps(struct mana_ib_dev *dev)
|
|||
|
||||
mana_gd_init_req_hdr(&req.hdr, MANA_IB_GET_ADAPTER_CAP, sizeof(req),
|
||||
sizeof(resp));
|
||||
req.hdr.resp.msg_version = GDMA_MESSAGE_V3;
|
||||
req.hdr.resp.msg_version = GDMA_MESSAGE_V4;
|
||||
req.hdr.dev_id = dev->gdma_dev->dev_id;
|
||||
|
||||
err = mana_gd_send_request(mdev_to_gc(dev), sizeof(req),
|
||||
|
|
@ -694,6 +694,7 @@ int mana_ib_gd_query_adapter_caps(struct mana_ib_dev *dev)
|
|||
caps->max_inline_data_size = resp.max_inline_data_size;
|
||||
caps->max_send_sge_count = resp.max_send_sge_count;
|
||||
caps->max_recv_sge_count = resp.max_recv_sge_count;
|
||||
caps->feature_flags = resp.feature_flags;
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -58,6 +58,7 @@ struct mana_ib_adapter_caps {
|
|||
u32 max_send_sge_count;
|
||||
u32 max_recv_sge_count;
|
||||
u32 max_inline_data_size;
|
||||
u64 feature_flags;
|
||||
};
|
||||
|
||||
struct mana_ib_queue {
|
||||
|
|
@ -230,6 +231,7 @@ struct mana_ib_query_adapter_caps_resp {
|
|||
u32 max_send_sge_count;
|
||||
u32 max_recv_sge_count;
|
||||
u32 max_inline_data_size;
|
||||
u64 feature_flags;
|
||||
}; /* HW Data */
|
||||
|
||||
struct mana_rnic_create_adapter_req {
|
||||
|
|
|
|||
|
|
@ -152,6 +152,7 @@ struct gdma_general_req {
|
|||
#define GDMA_MESSAGE_V1 1
|
||||
#define GDMA_MESSAGE_V2 2
|
||||
#define GDMA_MESSAGE_V3 3
|
||||
#define GDMA_MESSAGE_V4 4
|
||||
|
||||
struct gdma_general_resp {
|
||||
struct gdma_resp_hdr hdr;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user