net-next/hinic: fix a bug in rx data flow
authorXue Chaojing <xuechaojing@huawei.com>
Tue, 20 Nov 2018 05:47:34 +0000 (05:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Nov 2018 18:38:08 +0000 (10:38 -0800)
commitb1a200484143a727ce293e0f200a543cc7584152
treed41c5a1aba9d4896863cb8bced0505638bfea768
parent9ea72dc9430306b77c73a8a21beb51437cde1d6d
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>
drivers/net/ethernet/huawei/hinic/hinic_rx.c