From: Achiad Shochat <ach...@mellanox.com>

For better round trip latency, handle rx completions before
tx completions.

Signed-off-by: Achiad Shochat <ach...@mellanox.com>
Signed-off-by: Saeed Mahameed <sae...@mellanox.com>
Signed-off-by: Or Gerlitz <ogerl...@mellanox.com>
---
 drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c 
b/drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c
index 088bc42..9f31572 100644
--- a/drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c
+++ b/drivers/net/ethernet/mellanox/mlx5/core/en_txrx.c
@@ -60,13 +60,13 @@ int mlx5e_napi_poll(struct napi_struct *napi, int budget)
 
        clear_bit(MLX5E_CHANNEL_NAPI_SCHED, &c->flags);
 
-       for (i = 0; i < c->num_tc; i++)
-               busy |= mlx5e_poll_tx_cq(&c->sq[i].cq);
-
        busy |= mlx5e_poll_rx_cq(&c->rq.cq, budget);
 
        busy |= mlx5e_post_rx_wqes(c->rq.cq.sqrq);
 
+       for (i = 0; i < c->num_tc; i++)
+               busy |= mlx5e_poll_tx_cq(&c->sq[i].cq);
+
        if (busy)
                return budget;
 
-- 
2.3.7

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to