mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
net-next/hinic: fix a bug in rx data flow
[ Upstream commit b1a2004841 ]
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: Xue Chaojing <xuechaojing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
25c748238d
commit
f04eee4042
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user