diff options
author | Madalin Bucur <madalin.bucur@freescale.com> | 2014-09-17 15:38:32 (GMT) |
---|---|---|
committer | Madalin Bucur <madalin.bucur@freescale.com> | 2014-10-08 13:19:57 (GMT) |
commit | 757240ec24246529441da897bc66e65111c397c6 (patch) | |
tree | be84bc7915f271459c95592790dec9a846cab2c1 /drivers | |
parent | cee56d2b0c5775ea9452a19ecba8973a32254a28 (diff) | |
download | linux-fsl-qoriq-757240ec24246529441da897bc66e65111c397c6.tar.xz |
dpaa_eth: fix dpa_bp_drain()
The continue jumps to the end of the loop, condition is evaluated
and if ret is not > 0 the loop ends. Setting ret to 1 to continue
processing until pool is drained.
Signed-off-by: Madalin Bucur <madalin.bucur@freescale.com>
Change-Id: If0acf0eba9e1fc814ef61b939d717819a48c7e29
Reviewed-on: http://git.am.freescale.net:8181/19071
Reviewed-by: Bogdan Hamciuc <bogdan.hamciuc@freescale.com>
Reviewed-by: Marian Cristian Rotariu <marian.rotariu@freescale.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/dpaa_eth_common.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth_common.c b/drivers/net/ethernet/freescale/dpa/dpaa_eth_common.c index 3edf5dc..1e8026f 100644 --- a/drivers/net/ethernet/freescale/dpa/dpaa_eth_common.c +++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth_common.c @@ -759,6 +759,7 @@ void dpa_bp_drain(struct dpa_bp *bp) * drain them one by one */ num = 1; + ret = 1; continue; } else { /* Pool is fully drained */ |