diff options
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/mlx4/device.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/linux/mlx4/device.h b/include/linux/mlx4/device.h index 7fbdc89de495..c30a314e095c 100644 --- a/include/linux/mlx4/device.h +++ b/include/linux/mlx4/device.h | |||
| @@ -56,6 +56,13 @@ enum { | |||
| 56 | MLX4_MAX_PORTS = 2 | 56 | MLX4_MAX_PORTS = 2 |
| 57 | }; | 57 | }; |
| 58 | 58 | ||
| 59 | /* base qkey for use in sriov tunnel-qp/proxy-qp communication. | ||
| 60 | * These qkeys must not be allowed for general use. This is a 64k range, | ||
| 61 | * and to test for violation, we use the mask (protect against future chg). | ||
| 62 | */ | ||
| 63 | #define MLX4_RESERVED_QKEY_BASE (0xFFFF0000) | ||
| 64 | #define MLX4_RESERVED_QKEY_MASK (0xFFFF0000) | ||
| 65 | |||
| 59 | enum { | 66 | enum { |
| 60 | MLX4_BOARD_ID_LEN = 64 | 67 | MLX4_BOARD_ID_LEN = 64 |
| 61 | }; | 68 | }; |
| @@ -293,6 +300,8 @@ struct mlx4_caps { | |||
| 293 | int max_qp_init_rdma; | 300 | int max_qp_init_rdma; |
| 294 | int max_qp_dest_rdma; | 301 | int max_qp_dest_rdma; |
| 295 | int sqp_start; | 302 | int sqp_start; |
| 303 | u32 base_sqpn; | ||
| 304 | u32 base_tunnel_sqpn; | ||
| 296 | int num_srqs; | 305 | int num_srqs; |
| 297 | int max_srq_wqes; | 306 | int max_srq_wqes; |
| 298 | int max_srq_sge; | 307 | int max_srq_sge; |
| @@ -772,4 +781,6 @@ int mlx4_wol_write(struct mlx4_dev *dev, u64 config, int port); | |||
| 772 | int mlx4_counter_alloc(struct mlx4_dev *dev, u32 *idx); | 781 | int mlx4_counter_alloc(struct mlx4_dev *dev, u32 *idx); |
| 773 | void mlx4_counter_free(struct mlx4_dev *dev, u32 idx); | 782 | void mlx4_counter_free(struct mlx4_dev *dev, u32 idx); |
| 774 | 783 | ||
| 784 | int mlx4_get_parav_qkey(struct mlx4_dev *dev, u32 qpn, u32 *qkey); | ||
| 785 | |||
| 775 | #endif /* MLX4_DEVICE_H */ | 786 | #endif /* MLX4_DEVICE_H */ |
