summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLendacky, Thomas <Thomas.Lendacky@amd.com>2014-10-22 16:26:17 (GMT)
committerDavid S. Miller <davem@davemloft.net>2014-10-22 21:50:31 (GMT)
commit55ca6bcd733b739d5667d48d7591899f376dcfb8 (patch)
tree733f7f0efc83317cb6448986f0142c8c6e0b0d91 /Makefile
parent386f1c9650b7fe4849d2942bd42f41f0ca3aedfb (diff)
downloadlinux-55ca6bcd733b739d5667d48d7591899f376dcfb8.tar.xz
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 'Makefile')
0 files changed, 0 insertions, 0 deletions