Instead always setting all the TX cqs to use comletion vector 0,
let the mlx4_core to distribute them to avoid situation where some eqs
are very loaded while other do nothing.

Signed-off-by: Yevgeny Petrilin <[email protected]>
---
 drivers/net/mlx4/en_cq.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/mlx4/en_cq.c b/drivers/net/mlx4/en_cq.c
index 21786ad..f3dc8b7 100644
--- a/drivers/net/mlx4/en_cq.c
+++ b/drivers/net/mlx4/en_cq.c
@@ -56,7 +56,7 @@ int mlx4_en_create_cq(struct mlx4_en_priv *priv,
                cq->vector   = ring % mdev->dev->caps.num_comp_vectors;
        } else {
                cq->buf_size = sizeof(struct mlx4_cqe);
-               cq->vector   = 0;
+               cq->vector   = MLX4_LEAST_ATTACHED_VECTOR;
        }
 
        cq->ring = ring;
-- 
1.6.1.3

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to