Skip to content
Commit a7b8d60b authored by Hayes Wang's avatar Hayes Wang Committed by David S. Miller
Browse files

r8152: check budget for r8152_poll()



According to the document of napi, there is no rx process when the
budget is 0. Therefore, r8152_poll() has to return 0 directly when the
budget is equal to 0.

Fixes: d2187f8e ("r8152: divide the tx and rx bottom functions")
Signed-off-by: default avatarHayes Wang <hayeswang@realtek.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 904de985
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment