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

Commit b1a20048 authored by Xue Chaojing's avatar Xue Chaojing Committed by David S. Miller
Browse files

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



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>
parent 9ea72dc9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -229,9 +229,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;
}