mlx5: Fix naming convention with respect to UARs
This establishes a solid naming conventions for UARs. A UAR (User Access Region) can have size identical to a system page or can be fixed 4KB depending on a value queried by firmware. Each UAR always has 4 blue flame register which are used to post doorbell to send queue. In addition, a UAR has section used for posting doorbells to CQs or EQs. In this patch we change names to reflect this conventions. Signed-off-by: Eli Cohen <eli@mellanox.com> Reviewed-by: Matan Barak <matanb@mellanox.com> Signed-off-by: Leon Romanovsky <leon@kernel.org> Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
This commit is contained in:

committed by
Leon Romanovsky

parent
f4044dac63
commit
2f5ff26478
@@ -212,10 +212,11 @@ enum {
|
||||
};
|
||||
|
||||
enum {
|
||||
MLX5_BF_REGS_PER_PAGE = 4,
|
||||
MLX5_MAX_UAR_PAGES = 1 << 8,
|
||||
MLX5_NON_FP_BF_REGS_PER_PAGE = 2,
|
||||
MLX5_MAX_UUARS = MLX5_MAX_UAR_PAGES * MLX5_NON_FP_BF_REGS_PER_PAGE,
|
||||
MLX5_BFREGS_PER_UAR = 4,
|
||||
MLX5_MAX_UARS = 1 << 8,
|
||||
MLX5_NON_FP_BFREGS_PER_UAR = 2,
|
||||
MLX5_MAX_BFREGS = MLX5_MAX_UARS *
|
||||
MLX5_NON_FP_BFREGS_PER_UAR,
|
||||
};
|
||||
|
||||
enum {
|
||||
|
Reference in New Issue
Block a user