]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd9b911fd85aab2cf7825b2380fa54e1caeb53f9f
tree79ca0e6d3f49de50e4f20e4724400dbd47df5ba4
parent81593a068d1c54bb704127a6870d17ad94b1f072
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