Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7d71e994 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

net/mlx4_en: mlx4_en_netpoll() should schedule TX, not RX



I am not sure mlx4_en_netpoll() is doing anything useful right now.

mlx4 has different NAPI structures for RX and TX, and netpoll only wants
to drain TX queues.

Lets schedule NAPI polls on TX, not RX.

Signed-off-by: default avatarEric Dumazet <edumazet@google.com>
Cc: Maciej Żenczykowski <maze@google.com>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Acked-by: default avatarTariq Toukan <tariqt@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 23c731e8
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1197,8 +1197,8 @@ static void mlx4_en_netpoll(struct net_device *dev)
	struct mlx4_en_cq *cq;
	int i;

	for (i = 0; i < priv->rx_ring_num; i++) {
		cq = priv->rx_cq[i];
	for (i = 0; i < priv->tx_ring_num; i++) {
		cq = priv->tx_cq[i];
		napi_schedule(&cq->napi);
	}
}