]> git.baikalelectronics.ru Git - kernel.git/commit
r8152: re-schedule napi for tx
authorhayeswang <hayeswang@realtek.com>
Thu, 26 Jan 2017 01:38:33 +0000 (09:38 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Jan 2017 03:47:30 +0000 (22:47 -0500)
commit81593a068d1c54bb704127a6870d17ad94b1f072
tree603bb08737e6cff5ab0d694cf904d539d58925c9
parent9ca7a0663b4a533d7889100cb3fa8a49be21c6b4
r8152: re-schedule napi for tx

Re-schedule napi after napi_complete() for tx, if it is necessay.

In r8152_poll(), if the tx is completed after tx_bottom() and before
napi_complete(), the scheduling of napi would be lost. Then, no
one handles the next tx until the next napi_schedule() is called.

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