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

Commit f04eee40 authored by Xue Chaojing's avatar Xue Chaojing Committed by Greg Kroah-Hartman
Browse files

net-next/hinic: fix a bug in rx data flow



[ Upstream commit b1a200484143a727ce293e0f200a543cc7584152 ]

In rx_alloc_pkts(), there is a loop call of tasklet, which causes
100% cpu utilization, even no packets are being received. This patch
fixes this bug.

Signed-off-by: default avatarXue Chaojing <xuechaojing@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 25c74823
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -207,9 +207,9 @@ static int rx_alloc_pkts(struct hinic_rxq *rxq)
		wmb();  /* write all the wqes before update PI */

		hinic_rq_update(rxq->rq, prod_idx);
		tasklet_schedule(&rxq->rx_task);
	}

	tasklet_schedule(&rxq->rx_task);
	return i;
}