summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEli Cohen <eli@dev.mellanox.co.il>2013-10-24 12:01:03 +0300
committerRoland Dreier <roland@purestorage.com>2013-11-08 14:43:01 -0800
commit1b77d2bd753d119eedcbc08fda58934307676554 (patch)
tree7f2e6dfe67f82b37c17e83a73dd5f00751a47505 /include
parentc2a3431e6153ed90911704356bc1e869624e118d (diff)
downloadlinux-1b77d2bd753d119eedcbc08fda58934307676554.tar.gz
linux-1b77d2bd753d119eedcbc08fda58934307676554.tar.bz2
linux-1b77d2bd753d119eedcbc08fda58934307676554.zip
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')
-rw-r--r--include/linux/mlx5/device.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mlx5/device.h b/include/linux/mlx5/device.h
index 3d789f43e34b..da78875807fc 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,
};