Re: [PATCH] net: fec: only clear a queue's work bit if the queue was emptied

2016-05-04 Thread David Miller
From: Uwe Kleine-König Date: Tue, 3 May 2016 16:38:53 +0200 > In the receive path a queue's work bit was cleared unconditionally even > if fec_enet_rx_queue only read out a part of the available packets from > the hardware. This resulted in not reading any

RE: [PATCH] net: fec: only clear a queue's work bit if the queue was emptied

2016-05-03 Thread Fugang Duan
From: Uwe Kleine-König Sent: Tuesday, May 03, 2016 10:39 PM > To: Fugang Duan ; David S . Miller > > Cc: ker...@pengutronix.de; netdev@vger.kernel.org > Subject: [PATCH] net: fec: only clear a queue's work bit if the

[PATCH] net: fec: only clear a queue's work bit if the queue was emptied

2016-05-03 Thread Uwe Kleine-König
In the receive path a queue's work bit was cleared unconditionally even if fec_enet_rx_queue only read out a part of the available packets from the hardware. This resulted in not reading any packets in the next napi turn and so packets were delayed or lost. The obvious fix is to only clear a

Re: [PATCH] net: fec: only clear a queue's work bit if the queue was emptied

2016-05-03 Thread Lucas Stach
Am Dienstag, den 03.05.2016, 16:38 +0200 schrieb Uwe Kleine-König: > In the receive path a queue's work bit was cleared unconditionally even > if fec_enet_rx_queue only read out a part of the available packets from > the hardware. This resulted in not reading any packets in the next napi > turn