]> git.baikalelectronics.ru Git - kernel.git/commit
dpaa2-eth: Poll Tx pending frames counter on if down
authorIoana Radulescu <ruxandra.radulescu@nxp.com>
Mon, 2 Sep 2019 10:23:19 +0000 (13:23 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Sep 2019 22:24:06 +0000 (00:24 +0200)
commit35b7da149bbf1c8a332d058dc1b6acd6ac061b64
treeeba50fdbb1f98f78cb90217c1407e21358f157f5
parent8774736f0045ea6e332d093a89dac200d6656440
dpaa2-eth: Poll Tx pending frames counter on if down

Starting with firmware version MC10.18.0, a new counter for in flight
Tx frames is offered. Use it when bringing down the interface to
determine when all pending Tx frames have been processed by hardware
instead of sleeping a fixed amount of time.

Signed-off-by: Ioana Radulescu <ruxandra.radulescu@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c