diff options
author | Lendacky, Thomas | 2014-10-22 11:26:17 -0500 |
---|---|---|
committer | David S. Miller | 2014-10-22 17:50:31 -0400 |
commit | 55ca6bcd733b739d5667d48d7591899f376dcfb8 (patch) | |
tree | 733f7f0efc83317cb6448986f0142c8c6e0b0d91 /sound/drivers/opl3 | |
parent | 386f1c9650b7fe4849d2942bd42f41f0ca3aedfb (diff) |
amd-xgbe: Fix napi Rx budget accounting
Currently the amd-xgbe driver increments the packets processed counter
each time a descriptor is processed. Since a packet can be represented
by more than one descriptor incrementing the counter in this way is not
appropriate. Also, since multiple descriptors cause the budget check
to be short circuited, sometimes the returned value from the poll
function would be larger than the budget value resulting in a WARN_ONCE
being triggered.
Update the polling logic to properly account for the number of packets
processed and exit when the budget value is reached.
Signed-off-by: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'sound/drivers/opl3')
0 files changed, 0 insertions, 0 deletions