]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-eth: fix condition for number of buffer acquire retries
authorIoana Ciornei <ioana.ciornei@nxp.com>
Wed, 24 Jun 2020 11:34:19 +0000 (14:34 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 25 Jun 2020 23:03:39 +0000 (16:03 -0700)
commit4ce76dc9bb30325687469d071abc8c3ff7e09700
treed4a9eeb84a006026262d36b7fdb0e878270aafdf
parentcf53d43a713a5b2745a21dd0c2d7aa176c09abdf
dpaa2-eth: fix condition for number of buffer acquire retries

We should keep retrying to acquire buffers through the software portals
as long as the function returns -EBUSY and the number of retries is
__below__ DPAA2_ETH_SWP_BUSY_RETRIES.

Fixes: 4f506f35b1ca ("dpaa2-eth: Avoid unbounded while loops")
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c