aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorEli Cohen <eli@dev.mellanox.co.il>2013-10-24 05:01:03 -0400
committerRoland Dreier <roland@purestorage.com>2013-11-08 17:43:01 -0500
commit1b77d2bd753d119eedcbc08fda58934307676554 (patch)
tree7f2e6dfe67f82b37c17e83a73dd5f00751a47505 /include/linux
parentc2a3431e6153ed90911704356bc1e869624e118d (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')
-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 {
231}; 231};
232 232
233enum { 233enum {
234 MLX5_ADAPTER_PAGE_SHIFT = 12
235};
236
237enum {
234 MLX5_CAP_OFF_DCT = 41, 238 MLX5_CAP_OFF_DCT = 41,
235 MLX5_CAP_OFF_CMDIF_CSUM = 46, 239 MLX5_CAP_OFF_CMDIF_CSUM = 46,
236}; 240};