diff options
author | Yishai Hadas <yishaih@mellanox.com> | 2020-03-24 07:01:43 +0100 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-03-27 16:59:05 +0100 |
commit | 0a2fd01c28ae490a639a32a52b81fb2df48b92a0 (patch) | |
tree | 6aef7684363833f4f5246727bcc1ff8fb7537dd4 /drivers/infiniband/hw/mlx5/mlx5_ib.h | |
parent | IB/mlx5: Limit the scope of struct mlx5_bfreg_info to mlx5_ib (diff) | |
download | linux-0a2fd01c28ae490a639a32a52b81fb2df48b92a0.tar.xz linux-0a2fd01c28ae490a639a32a52b81fb2df48b92a0.zip |
IB/mlx5: Move to fully dynamic UAR mode once user space supports it
Move to fully dynamic UAR mode once user space supports it. In this case
we prevent any legacy mode of UARs on the allocated context and prevent
redundant allocation of the static ones.
Link: https://lore.kernel.org/r/20200324060143.1569116-6-leon@kernel.org
Signed-off-by: Yishai Hadas <yishaih@mellanox.com>
Reviewed-by: Michael Guralnik <michaelgur@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/mlx5/mlx5_ib.h')
-rw-r--r-- | drivers/infiniband/hw/mlx5/mlx5_ib.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/infiniband/hw/mlx5/mlx5_ib.h b/drivers/infiniband/hw/mlx5/mlx5_ib.h index ae6289133cd8..b88414acb993 100644 --- a/drivers/infiniband/hw/mlx5/mlx5_ib.h +++ b/drivers/infiniband/hw/mlx5/mlx5_ib.h @@ -139,6 +139,7 @@ struct mlx5_bfreg_info { struct mutex lock; u32 ver; u8 lib_uar_4k : 1; + u8 lib_uar_dyn : 1; u32 num_sys_pages; u32 num_static_sys_pages; u32 total_num_bfregs; |