RE: [PATCH 2/2] net: fec: optimize IRQ handler

2017-12-06 Thread Andy Duan
From: Lucas Stach Sent: Thursday, December 07, 2017 1:25 AM >fep->work_rx and fep->work_tx are both non-zero, as long as the NAPI >softirq hasn't finished its work. So if the current IRQ does not signal any RX >or >TX completion, but some unrelated event, the path to schedule the NAPI >context i

[PATCH 2/2] net: fec: optimize IRQ handler

2017-12-06 Thread Lucas Stach
fep->work_rx and fep->work_tx are both non-zero, as long as the NAPI softirq hasn't finished its work. So if the current IRQ does not signal any RX or TX completion, but some unrelated event, the path to schedule the NAPI context is still entered. The handler works correctly as in this case napi_s