]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - rpmsg/rpmsg.git/commit
net: ethernet: ti: icssg-prueth: optimize napi rx during netif down
authorGrygorii Strashko <grygorii.strashko@ti.com>
Fri, 22 Nov 2019 09:51:27 +0000 (11:51 +0200)
committerSekhar Nori <nsekhar@ti.com>
Tue, 26 Nov 2019 09:05:12 +0000 (14:35 +0530)
commit664049c2478bffb6b8c4669a9a7898652863bb95
tree9bd41ff77a1c6b22f3b8372c8f072838c92b36ae
parent9bf8c93602f145688c0b694cb928c90026a9d1b5
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>
drivers/net/ethernet/ti/icssg_prueth.c