diff options
author | Jack Morgenstein <jackm@dev.mellanox.co.il> | 2011-12-12 23:12:13 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-13 13:56:05 -0500 |
commit | f5311ac109b21c9b47118655a5b6d887bcc686f8 (patch) | |
tree | 08b36eb29661485c60f101bb9f3f50be8a0eff2c /include/linux/mlx4 | |
parent | f9baff509f8a05a79626defdbdf4f4aa4efd373b (diff) |
mlx4_core: Reduce number of PD bits to 17
When SRIOV is enabled on the chip (at FW burning time),
the HCA uses only 17 bits for the PD. The remaining 7 high-order bits
are ignored.
Change the allocator to return only 17 bits for the PD. The MSB 7
bits will be used to encode the slave number for consistency
checking later on in the resource tracker.
Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/mlx4')
-rw-r--r-- | include/linux/mlx4/device.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index 3333018d2913..e4be34a908a7 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h | |||
@@ -248,6 +248,7 @@ struct mlx4_caps { | |||
248 | u64 trans_code[MLX4_MAX_PORTS + 1]; | 248 | u64 trans_code[MLX4_MAX_PORTS + 1]; |
249 | int local_ca_ack_delay; | 249 | int local_ca_ack_delay; |
250 | int num_uars; | 250 | int num_uars; |
251 | u32 uar_page_size; | ||
251 | int bf_reg_size; | 252 | int bf_reg_size; |
252 | int bf_regs_per_page; | 253 | int bf_regs_per_page; |
253 | int max_sq_sg; | 254 | int max_sq_sg; |