]> 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)
commit3c8c5ca0bb8f36c77c18c865abbd86d105c352e2
treeeba50fdbb1f98f78cb90217c1407e21358f157f5
parent3e08e83cfb29c3c7f887946c546c9e541be90dbf
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