[MLX4] added new Registry parameter for number of FC_EXCHs and added a sanity check...
[mirror/winof/.git] / hw / mlx4 / kernel / bus / inc / device.h
index 98aa4d6..ed0d329 100644 (file)
@@ -142,9 +142,13 @@ enum qp_region {
        MLX4_QP_REGION_COUNT            /* Must be last */
 };
 
+#if 0
+// not in use now
+// should be set as default to numFcExch
 enum {
        MLX4_NUM_FEXCH          = 64 * 1024,
 };
+#endif
 
 
 struct mlx4_caps {
@@ -202,8 +206,10 @@ struct mlx4_caps {
        int                     log_num_macs;
        int                     log_num_vlans;
        int                     log_num_prios;
+       int                     num_fc_exch;
        enum mlx4_port_type     port_type[MLX4_MAX_PORTS + 1];
        int                     reserved_fexch_mpts_base;   
+       int                     total_reserved_qps;
 };
 
 struct mlx4_buf_list {