1. 05 6月, 2016 3 次提交
  2. 12 5月, 2016 3 次提交
  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. 22 4月, 2016 1 次提交
  5. 18 4月, 2016 1 次提交
  6. 14 4月, 2016 4 次提交
  7. 09 4月, 2016 3 次提交
  8. 15 3月, 2016 2 次提交
  9. 02 3月, 2016 1 次提交
  10. 26 2月, 2016 2 次提交
  11. 24 2月, 2016 1 次提交
  12. 08 12月, 2015 1 次提交
  13. 24 11月, 2015 1 次提交
  14. 02 11月, 2015 1 次提交
  15. 22 10月, 2015 2 次提交
  16. 11 10月, 2015 3 次提交
  17. 19 8月, 2015 1 次提交
  18. 14 8月, 2015 1 次提交
  19. 12 8月, 2015 2 次提交
  20. 10 8月, 2015 1 次提交
  21. 30 3月, 2015 1 次提交
  22. 10 3月, 2015 1 次提交
    • F
      net: dsa: utilize of_find_net_device_by_node · 769a0202
      Florian Fainelli 提交于
      Using of_find_device_by_node() restricts the search to platform_device that
      match the specified device_node pointer. This is not even remotely true for
      network devices backed by a pci_device for instance.
      
      of_find_net_device_by_node() allows us to do a more thorough lookup to find the
      struct net_device corresponding to a particular device_node pointer.
      
      For symetry with the non-OF code path, we hold the net_device pointer in
      dsa_probe() just like what dev_to_net_dev() does when we call this
      function.
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      769a0202
  23. 06 3月, 2015 1 次提交
  24. 26 2月, 2015 2 次提交