Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net into net
[platform/adaptation/renesas_rcar/renesas_kernel.git] / drivers / net / ethernet / cadence / macb.c
index 352190b..7903943 100644 (file)
@@ -693,6 +693,11 @@ static int macb_poll(struct napi_struct *napi, int budget)
                 * get notified when new packets arrive.
                 */
                macb_writel(bp, IER, MACB_RX_INT_FLAGS);
+
+               /* Packets received while interrupts were disabled */
+               status = macb_readl(bp, RSR);
+               if (unlikely(status))
+                       napi_reschedule(napi);
        }
 
        /* TODO: Handle errors */