mlx5: Fix missing device local_dma_lkey
The mlx5 driver exposes device capability IB_DEVICE_LOCAL_DMA_LKEY but does not set the the device local_dma_lkey. This breaks rpcrdma drivers. Query and set this lkey when creating the device resources. Signed-off-by: Sagi Grimberg <sagig@mellanox.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
This commit is contained in:
parent
c13dcf9f2d
commit
a3c874200c
4 changed files with 42 additions and 1 deletions
|
@ -402,6 +402,17 @@ struct mlx5_cmd_teardown_hca_mbox_out {
|
|||
u8 rsvd[8];
|
||||
};
|
||||
|
||||
struct mlx5_cmd_query_special_contexts_mbox_in {
|
||||
struct mlx5_inbox_hdr hdr;
|
||||
u8 rsvd[8];
|
||||
};
|
||||
|
||||
struct mlx5_cmd_query_special_contexts_mbox_out {
|
||||
struct mlx5_outbox_hdr hdr;
|
||||
__be32 dump_fill_mkey;
|
||||
__be32 resd_lkey;
|
||||
};
|
||||
|
||||
struct mlx5_cmd_layout {
|
||||
u8 type;
|
||||
u8 rsvd0[3];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue