diff options
author | Eli Cohen <eli@dev.mellanox.co.il> | 2013-10-24 12:01:03 +0300 |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-11-08 14:43:01 -0800 |
commit | 1b77d2bd753d119eedcbc08fda58934307676554 (patch) | |
tree | 7f2e6dfe67f82b37c17e83a73dd5f00751a47505 /include/linux/mlx5 | |
parent | c2a3431e6153ed90911704356bc1e869624e118d (diff) |
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>
Diffstat (limited to 'include/linux/mlx5')
-rw-r--r-- | include/linux/mlx5/device.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mlx5/device.h b/include/linux/mlx5/device.h index 3d789f43e34..da78875807f 100644 --- a/include/linux/mlx5/device.h +++ b/include/linux/mlx5/device.h @@ -231,6 +231,10 @@ enum { }; enum { + MLX5_ADAPTER_PAGE_SHIFT = 12 +}; + +enum { MLX5_CAP_OFF_DCT = 41, MLX5_CAP_OFF_CMDIF_CSUM = 46, }; |