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: Xue Chaojing <xuechaojing@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Šī revīzija ir iekļauta:
Xue Chaojing
2018-11-20 05:47:34 +00:00
revīziju iesūtīja David S. Miller
vecāks 9ea72dc943
revīzija b1a2004841

Parādīt failu

@@ -229,9 +229,9 @@ skb_out:
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;
}