summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorBogdan Hamciuc <bogdan.hamciuc@freescale.com>2013-06-14 21:20:36 (GMT)
committerFleming Andrew-AFLEMING <AFLEMING@freescale.com>2013-07-05 21:40:10 (GMT)
commite8a66453a9b71d4d5290bd4962cc6ec2fda1b848 (patch)
tree26537733a162a6a0e412d8f22a2f7aaa6a56f007 /lib
parent5150425a9186c9f66bcae725ed478e345c82b22e (diff)
downloadlinux-fsl-qoriq-e8a66453a9b71d4d5290bd4962cc6ec2fda1b848.tar.xz
dpaa_eth: Fix pool counters on error path
When system memory is depleted, the Rx buffers are put back into their pool. Bad accounting on that error path made it so the software software counters remained behind the hardware counters, eventually allowing for negative totals. Fix this and keep the software pool counters in sync with the hardware counters. Signed-off-by: Ioana Radulescu <ruxandra.radulescu@freescale.com> Signed-off-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com> Change-Id: I46191bc38f12aa6a25378eba3e5891bc3f18cbc6 Reviewed-on: http://git.am.freescale.net:8181/3049 Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com> Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com> Reviewed-by: Bucur Madalin-Cristian-B32716 <madalin.bucur@freescale.com> Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions