7203-fsl-dpaa2-eth-Update-description-of-DPNI-counters.patch 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From 727de4692d731655dea96702aa099f4f4d3a5203 Mon Sep 17 00:00:00 2001
  2. From: Bogdan Hamciuc <bogdan.hamciuc@nxp.com>
  3. Date: Mon, 21 Mar 2016 16:10:01 +0200
  4. Subject: [PATCH 203/226] fsl-dpaa2: eth: Update description of DPNI counters
  5. Update description of DPNI counters presented with "ethtool -S".
  6. Signed-off-by: Bogdan Hamciuc <bogdan.hamciuc@nxp.com>
  7. (cherry picked from commit f68aab60355d00af13fdff2ded7bf38809beacd3)
  8. ---
  9. drivers/staging/fsl-dpaa2/ethernet/dpaa2-ethtool.c | 9 ++++++---
  10. 1 file changed, 6 insertions(+), 3 deletions(-)
  11. --- a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-ethtool.c
  12. +++ b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-ethtool.c
  13. @@ -39,15 +39,18 @@
  14. char dpaa2_ethtool_stats[][ETH_GSTRING_LEN] = {
  15. "rx frames",
  16. "rx bytes",
  17. - "rx frames dropped",
  18. - "rx err frames",
  19. + /* rx frames filtered/policed */
  20. + "rx filtered frames",
  21. + /* rx frames dropped with errors */
  22. + "rx discarded frames",
  23. "rx mcast frames",
  24. "rx mcast bytes",
  25. "rx bcast frames",
  26. "rx bcast bytes",
  27. "tx frames",
  28. "tx bytes",
  29. - "tx err frames",
  30. + /* tx frames dropped with errors */
  31. + "tx discarded frames",
  32. };
  33. #define DPAA2_ETH_NUM_STATS ARRAY_SIZE(dpaa2_ethtool_stats)