diff options
author | Eli Cohen <eli@dev.mellanox.co.il> | 2010-10-07 14:24:16 (GMT) |
---|---|---|
committer | Roland Dreier <rolandd@cisco.com> | 2010-10-11 21:33:17 (GMT) |
commit | 5a0fd09428e47fb08d5a887515d92bb2447f4b65 (patch) | |
tree | 83a6642cb0dfd99dff733dde7b4c7aa40df2d920 /include/linux/mlx4 | |
parent | 0498628f974d4132ba34b06fc24786a00401b79c (diff) | |
download | linux-fsl-qoriq-5a0fd09428e47fb08d5a887515d92bb2447f4b65.tar.xz |
IB/mlx4: Limit size of fast registration WRs
Fix the limit on the size of max fast registration WRs that can be
posted to match hardware capabilities.
Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'include/linux/mlx4')
-rw-r--r-- | include/linux/mlx4/device.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index 7a7f9c1..ada6938 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h @@ -171,6 +171,10 @@ enum { MLX4_NUM_FEXCH = 64 * 1024, }; +enum { + MLX4_MAX_FAST_REG_PAGES = 511, +}; + static inline u64 mlx4_fw_ver(u64 major, u64 minor, u64 subminor) { return (major << 32) | (minor << 16) | subminor; |