1. 05 6月, 2016 4 次提交
  2. 12 5月, 2016 2 次提交
  3. 29 4月, 2016 1 次提交
    • F
      net: dsa: Provide CPU port statistics to master netdev · badf3ada
      Florian Fainelli 提交于
      This patch overloads the DSA master netdev, aka CPU Ethernet MAC to also
      include switch-side statistics, which is useful for debugging purposes,
      when the switch is not properly connected to the Ethernet MAC (duplex
      mismatch, (RG)MII electrical issues etc.).
      
      We accomplish this by retaining the original copy of the master netdev's
      ethtool_ops, and just overload the 3 operations we care about:
      get_sset_count, get_strings and get_ethtool_stats so as to intercept
      these calls and call into the original master_netdev ethtool_ops, plus
      our own.
      
      We take this approach as opposed to providing a set of DSA helper
      functions that would retrive the CPU port's statistics, because the
      entire purpose of DSA is to allow unmodified Ethernet MAC drivers to be
      used as CPU conduit interfaces, therefore, statistics overlay in such
      drivers would simply not scale.
      
      The new ethtool -S <iface> output would therefore look like this now:
      <iface> statistics
      p<2 digits cpu port number>_<switch MIB counter names>
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      badf3ada
  4. 20 4月, 2016 1 次提交
  5. 09 4月, 2016 3 次提交
  6. 15 3月, 2016 4 次提交
  7. 02 3月, 2016 1 次提交
  8. 26 2月, 2016 2 次提交
  9. 24 2月, 2016 2 次提交
  10. 18 2月, 2016 1 次提交
  11. 17 2月, 2016 1 次提交
  12. 08 1月, 2016 3 次提交
  13. 08 12月, 2015 1 次提交
  14. 02 11月, 2015 1 次提交
  15. 22 10月, 2015 2 次提交
  16. 15 10月, 2015 2 次提交
  17. 13 10月, 2015 1 次提交
  18. 11 10月, 2015 3 次提交
  19. 07 10月, 2015 1 次提交
  20. 03 10月, 2015 4 次提交