r8152: check rx after napi is enabled
authorhayeswang <hayeswang@realtek.com>
Thu, 26 Jan 2017 01:38:34 +0000 (09:38 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Jan 2017 03:47:30 +0000 (22:47 -0500)
commit7489bdadb7d17d3c81e39b85688500f700beb790
tree79ca0e6d3f49de50e4f20e4724400dbd47df5ba4
parent248b213ad908b88db15941202ef7cb7eb137c1a0
r8152: check rx after napi is enabled

Schedule the napi after napi_enable() for rx, if it is necessary.

If the rx is completed when napi is disabled, the sheduling of napi
would be lost. Then, no one handles the rx packet until next napi
is scheduled.

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c