OSDN Git Service

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)
commit52b6a4ffe2b6e60cdc9fae5bc71496f99801aa8f
treeeba50fdbb1f98f78cb90217c1407e21358f157f5
parentd84c3a4ded969ec18e42244487362942942ee4de
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