diff options
author | Bogdan Hamciuc <bogdan.hamciuc@freescale.com> | 2013-06-14 21:20:36 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-07-12 22:50:37 (GMT) |
commit | 66425bae51b45f3cf4a41605b8a3cfa8c9fc1de9 (patch) | |
tree | f95b1c070de121113fba147953feb2575395b05a | |
parent | acd3507a34439567754ca3e92c24dcb47537b34f (diff) | |
download | linux-fsl-qoriq-66425bae51b45f3cf4a41605b8a3cfa8c9fc1de9.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: Iab893fbbc585ba6892cc18712c6343bc8faad57b
Reviewed-on: http://git.am.freescale.net:8181/3047
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>
0 files changed, 0 insertions, 0 deletions