[PATCH 08/12] net-next/hinic: fix a bug in rx data flow
Ike Panhc
ike.pan at canonical.com
Mon Mar 18 08:29:56 UTC 2019
From: Xue Chaojing <xuechaojing at huawei.com>
BugLink: https://bugs.launchpad.net/bugs/1820187
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 at huawei.com>
Signed-off-by: David S. Miller <davem at davemloft.net>
(cherry picked from commit b1a200484143a727ce293e0f200a543cc7584152)
Signed-off-by: Ike Panhc <ike.pan at canonical.com>
---
drivers/net/ethernet/huawei/hinic/hinic_rx.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/huawei/hinic/hinic_rx.c b/drivers/net/ethernet/huawei/hinic/hinic_rx.c
index 93e8f207f6da..f86f2e693224 100644
--- a/drivers/net/ethernet/huawei/hinic/hinic_rx.c
+++ b/drivers/net/ethernet/huawei/hinic/hinic_rx.c
@@ -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;
}
--
2.17.1
More information about the kernel-team
mailing list