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

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
...@@ -229,9 +229,9 @@ static int rx_alloc_pkts(struct hinic_rxq *rxq) ...@@ -229,9 +229,9 @@ static int rx_alloc_pkts(struct hinic_rxq *rxq)
wmb(); /* write all the wqes before update PI */ wmb(); /* write all the wqes before update PI */
hinic_rq_update(rxq->rq, prod_idx); hinic_rq_update(rxq->rq, prod_idx);
tasklet_schedule(&rxq->rx_task);
} }
tasklet_schedule(&rxq->rx_task);
return i; return i;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment