diff options
author | Eli Cohen <eli@dev.mellanox.co.il> | 2013-10-24 09:01:03 (GMT) |
---|---|---|
committer | Roland Dreier <roland@purestorage.com> | 2013-11-08 22:43:01 (GMT) |
commit | 1b77d2bd753d119eedcbc08fda58934307676554 (patch) | |
tree | 7f2e6dfe67f82b37c17e83a73dd5f00751a47505 /include/linux/mlx5 | |
parent | c2a3431e6153ed90911704356bc1e869624e118d (diff) | |
download | linux-fsl-qoriq-1b77d2bd753d119eedcbc08fda58934307676554.tar.xz |
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 3d789f4..da78875 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, }; |