Commits
Grygorii Strashko committed 653f358d056
net: ethernet: ti: icssg-prueth: optimize napi rx during netif down The RX NAPI handler emac_rx_packet() will return errors now in case there are still packets to process while interface is going down or not ready which will cause break of the RX NAPI polling function and NAPI resceduling. In other words, leftover packets will be processed one by one. In such cases (interface is going down or not ready) it's valid to still have unprocessed packets in RX queues and such packets expected just to be dropped by RX NAPI handler emac_rx_packet(). Hence, update emac_rx_packet() to not return errors for packets received while interface is going down or not ready, so they will be processed in batch by NAPI polling function. Acked-by : Murali Karicheri <m-karicheri2@ti.com> Signed-off-by: Grygorii Strashko <grygorii.strashko@ti.com> Signed-off-by: Sekhar Nori <nsekhar@ti.com>