mlx4: Modify proxy/tunnel QP mechanism so that guests do no calculations
[cascardo/linux.git] / drivers / net / ethernet / mellanox / mlx4 / fw.h
index ced1de5..85abe9c 100644 (file)
@@ -134,11 +134,12 @@ struct mlx4_func_cap {
        int     max_eq;
        int     reserved_eq;
        int     mcg_quota;
-       u32     base_qpn;
-       u32     base_tunnel_qpn;
-       u32     base_proxy_qpn;
-       u8      physical_port[MLX4_MAX_PORTS + 1];
-       u8      port_flags[MLX4_MAX_PORTS + 1];
+       u32     qp0_tunnel_qpn;
+       u32     qp0_proxy_qpn;
+       u32     qp1_tunnel_qpn;
+       u32     qp1_proxy_qpn;
+       u8      physical_port;
+       u8      port_flags;
 };
 
 struct mlx4_adapter {
@@ -195,7 +196,8 @@ struct mlx4_set_ib_param {
 };
 
 int mlx4_QUERY_DEV_CAP(struct mlx4_dev *dev, struct mlx4_dev_cap *dev_cap);
-int mlx4_QUERY_FUNC_CAP(struct mlx4_dev *dev, struct mlx4_func_cap *func_cap);
+int mlx4_QUERY_FUNC_CAP(struct mlx4_dev *dev, u32 gen_or_port,
+                       struct mlx4_func_cap *func_cap);
 int mlx4_QUERY_FUNC_CAP_wrapper(struct mlx4_dev *dev, int slave,
                                struct mlx4_vhcr *vhcr,
                                struct mlx4_cmd_mailbox *inbox,