1. 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
  2. 22 4月, 2016 1 次提交
  3. 20 4月, 2016 1 次提交
  4. 18 4月, 2016 1 次提交
  5. 14 4月, 2016 4 次提交
  6. 09 4月, 2016 3 次提交
  7. 15 3月, 2016 7 次提交
  8. 11 3月, 2016 1 次提交
  9. 02 3月, 2016 1 次提交
  10. 26 2月, 2016 2 次提交
  11. 24 2月, 2016 2 次提交
  12. 18 2月, 2016 1 次提交
  13. 17 2月, 2016 1 次提交
  14. 08 1月, 2016 4 次提交
  15. 08 12月, 2015 4 次提交
  16. 25 11月, 2015 1 次提交
    • A
      net: dsa: include gpio consumer header file · 85beabfe
      Arnd Bergmann 提交于
      After the introduction of the switch gpio reset API, I'm getting
      build errors in configurations that disable CONFIG_GPIOLIB:
      
      net/dsa/dsa.c:783:16: error: implicit declaration of function 'gpio_to_desc' [-Werror=implicit-function-declaration]
      
      The reason is that linux/gpio/consumer.h is not automatically
      included without gpiolib support. This adds an explicit #include
      statement to make it compile in all configurations. The reset
      functionality will not work without gpiolib, which is what you
      get when disabling the feature.
      
      As far as I can tell, gpiolib is supported on all architectures
      on which you can have DSA at the moment.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Fixes: cc30c163 ("net: dsa: Add support for a switch reset gpio")
      Acked-by: NAndrew Lunn <andrew@lunn.ch>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      85beabfe
  17. 24 11月, 2015 1 次提交
  18. 02 11月, 2015 1 次提交
  19. 22 10月, 2015 2 次提交
  20. 15 10月, 2015 1 次提交