Skip to contentSkip to conversation

mlx4_en: using non collapsed CQ on TX

PATCH In review Yevgeny Petrilin 2 participants 2 messages Nov 15, 2011

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mlx4_en: using non collapsed CQ on TX

Moving to regular Completion Queue implementation (not collapsed) Completion for each transmitted packet is written to new entry.

---
 drivers/net/ethernet/mellanox/mlx4/en_cq.c |    7 +--
 drivers/net/ethernet/mellanox/mlx4/en_tx.c |   65 ++++++++++++++--------------
 2 files changed, 35 insertions(+), 37 deletions(-)
drivers/net/ethernet/mellanox/mlx4/en_cq.c +2 -5
index 227997d..2d1a342 100644
@@ -51,10 +51,7 @@ int mlx4_en_create_cq(struct mlx4_en_priv *priv,
 	int err;
 
 	cq->size = entries;
-	if (mode == RX)
-		cq->buf_size = cq->size * sizeof(struct mlx4_cqe);
-	else
-		cq->buf_size = sizeof(struct mlx4_cqe);
+	cq->buf_size = cq->size * sizeof(struct mlx4_cqe);
 
 	cq->ring = ring;
 	cq->is_tx = mode;
@@ -120,7 +117,7 @@ int mlx4_en_activate_cq(struct mlx4_en_priv *priv, struct mlx4_en_cq *cq,
 		cq->size = priv->rx_ring[cq->ring].actual_size;
 
 	err = mlx4_cq_alloc(mdev->dev, cq->size, &cq->wqres.mtt, &mdev->priv_uar,
-			    cq->wqres.db.dma, &cq->mcq, cq->vector, cq->is_tx);
+			    cq->wqres.db.dma, &cq->mcq, cq->vector, 0);
 	if (err)
 		return err;
 
drivers/net/ethernet/mellanox/mlx4/en_tx.c +33 -32

92 lines not on this page · raw message

Signature · 1 line
1.7.7
maintainer
#1 lore raw

From: Yevgeny Petrilin <[email protected]>
Date: Tue, 15 Nov 2011 12:27:32 +0200

Quoted 4 lines

Moving to regular Completion Queue implementation (not collapsed) Completion for each transmitted packet is written to new entry.

Can the people maintaining the Mellanox driver please coordinate your efforts?

I should not be seeing multiple engineers submit seperate patches on the same exact day to the mlx4 driver.

One person should be in charge for submitting all pending patches, adding "From: " lines to the body of the commit message (as needed) to indicate authorship properly.