mlx5: Use enum to indicate adapter page size
The Connect-IB adapter has an inherent page size which equals 4K. Define an new enum that equals the page shift and use it instead of using the value 12 throughout the code. Signed-off-by: Eli Cohen <eli@mellanox.com> Signed-off-by: Roland Dreier <roland@purestorage.com>
This commit is contained in:
parent
c2a3431e61
commit
1b77d2bd75
5 changed files with 11 additions and 6 deletions
|
@ -230,6 +230,10 @@ enum {
|
|||
MLX5_MAX_PAGE_SHIFT = 31
|
||||
};
|
||||
|
||||
enum {
|
||||
MLX5_ADAPTER_PAGE_SHIFT = 12
|
||||
};
|
||||
|
||||
enum {
|
||||
MLX5_CAP_OFF_DCT = 41,
|
||||
MLX5_CAP_OFF_CMDIF_CSUM = 46,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue