linux/drivers/net/ethernet/amd/xgbe
Lendacky, Thomas 55ca6bcd73 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>
2014-10-22 17:50:31 -04:00
..
Makefile amd-xgbe: Add traffic class support 2014-07-30 18:46:53 -07:00
xgbe-common.h amd-xgbe: Checkpatch driver fixes 2014-09-05 15:11:20 -07:00
xgbe-dcb.c amd-xgbe: Checkpatch driver fixes 2014-09-05 15:11:20 -07:00
xgbe-debugfs.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2014-09-07 21:41:53 -07:00
xgbe-desc.c amd-xgbe: Checkpatch driver fixes 2014-09-05 15:11:20 -07:00
xgbe-dev.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2014-09-07 21:41:53 -07:00
xgbe-drv.c amd-xgbe: Fix napi Rx budget accounting 2014-10-22 17:50:31 -04:00
xgbe-ethtool.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2014-09-07 21:41:53 -07:00
xgbe-main.c Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2014-09-07 21:41:53 -07:00
xgbe-mdio.c amd-xgbe: Checkpatch driver fixes 2014-09-05 15:11:20 -07:00
xgbe-ptp.c amd-xgbe: Checkpatch driver fixes 2014-09-05 15:11:20 -07:00
xgbe.h Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net 2014-09-07 21:41:53 -07:00