mlx4_en: using non collapsed CQ on TX
Subsystems (4)
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
@@ -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
David Miller
maintainerFrom: 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.
Signed-off-by Yevgeny Petrilin <[email protected]>
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.