Recent firmware versions offer access to more DPNI statistics counters. Add the relevant ones to ethtool interface stats.
Also we can now make use of a new counter for in flight egress frames to avoid sleeping an arbitrary amount of time in the ndo_stop routine. v2: in patch 2/3, treat separately the error case for unsupported statistics pages Ioana Radulescu (3): dpaa2-eth: Minor refactoring in ethtool stats dpaa2-eth: Add new DPNI statistics counters dpaa2-eth: Poll Tx pending frames counter on if down drivers/net/ethernet/freescale/dpaa2/dpaa2-eth.c | 31 +++++++++++++++-- .../net/ethernet/freescale/dpaa2/dpaa2-ethtool.c | 37 +++++++++++++------- drivers/net/ethernet/freescale/dpaa2/dpni.c | 2 +- drivers/net/ethernet/freescale/dpaa2/dpni.h | 40 ++++++++++++++++++++++ 4 files changed, 93 insertions(+), 17 deletions(-) -- 2.7.4