1. 02 11月, 2015 1 次提交
  2. 26 10月, 2015 1 次提交
  3. 24 10月, 2015 1 次提交
  4. 23 10月, 2015 1 次提交
    • M
      bnxt_en: New Broadcom ethernet driver. · c0c050c5
      Michael Chan 提交于
      Broadcom ethernet driver for the new family of NetXtreme-C/E
      ethernet devices.
      
      v5:
        - Removed empty blank lines at end of files (noted by David Miller).
        - Moved busy poll helper functions to bnxt.h to at least make the
          .c file look less cluttered with #ifdef (noted by Stephen Hemminger).
      
      v4:
        - Broke up 2 long message strings with "\n" (suggested by John Linville)
        - Constify an array of strings (suggested by Stephen Hemminger)
        - Improve bnxt_vf_pciid() (suggested by Stephen Hemminger)
        - Use PCI_VDEVICE() to populate pci_device_id table for more compact
          source.
      
      v3:
        - Fixed 2 more sparse warnings.
        - Removed some unused structures in .h files.
      
      v2:
        - Fixed all kbuild test robot reported warnings.
        - Fixed many of the checkpatch.pl errors and warnings.
        - Fixed the Kconfig description (noted by Dmitry Kravkov).
      Acked-by: NEddie Wai <eddie.wai@broadcom.com>
      Acked-by: NJeffrey Huang <huangjw@broadcom.com>
      Signed-off-by: NPrashant Sreedharan <prashant@broadcom.com>
      Signed-off-by: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c0c050c5
  5. 21 10月, 2015 1 次提交
  6. 19 10月, 2015 1 次提交
    • F
      net: bcmgenet: Fix early link interrupt enabling · 37850e37
      Florian Fainelli 提交于
      Link interrupts are enabled in init_umac(), which is too early for us to
      process them since we do not yet have a valid PHY device pointer. On
      BCM7425 chips for instance, we will crash calling phy_mac_interrupt()
      because phydev is NULL.
      
      Fix this by moving the link interrupts enabling in
      bcmgenet_netif_start(), under a specific function:
      bcmgenet_link_intr_enable() and while at it, update the comments
      surrounding the code.
      
      Fixes: 6cc8e6d4 ("net: bcmgenet: Delay PHY initialization to bcmgenet_open()")
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      37850e37
  7. 16 10月, 2015 1 次提交
  8. 13 10月, 2015 1 次提交
  9. 11 10月, 2015 2 次提交
  10. 25 9月, 2015 1 次提交
  11. 22 9月, 2015 3 次提交
  12. 18 9月, 2015 3 次提交
    • J
      bnx2x: track vxlan port count · ac7eccd4
      Jiri Benc 提交于
      The callback for adding vxlan port can be called with the same port for
      both IPv4 and IPv6. Do not disable the offloading when the same port for
      both protocols is added and later one of them removed.
      Signed-off-by: NJiri Benc <jbenc@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ac7eccd4
    • F
      net: bcmgenet: Implement RX coalescing control knobs · 4a29645b
      Florian Fainelli 提交于
      Add support for the ethtool rx-frames coalescing parameter which allows
      defining the number of RX interrupts per frames received. The RDMA
      engine supports a configurable timeout with a resolution of
      approximately 8.192 us.
      
      We can no longer enable the BDONE/PDONE interrupts as those would
      fire for each packet/buffer received, which would defeat the MBDONE
      interrupt purpose. The MBDONE interrupt is guaranteed to correspond to a
      PDONE/BDONE interrupt when the threshold is set to 1.
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4a29645b
    • F
      net: bcmgenet: Implement TX coalescing control knobs · 2f913070
      Florian Fainelli 提交于
      Configuring the ethtool tx-frames property, which translates into N
      packets before a TX interrupt is the simplest configuration scheme
      because it requires no locking neither at the softare nor hardware
      level, and is completely indepedent from the link speed. Since ethtool
      does not allow per-tx queue coalescing parameters, we apply the same
      setting to any transmit queue.
      
      We can no longer enable the BDONE/PDONE interrupts as those would fire
      for each packet/buffer received, which would defeat the MBDONE interrupt
      purpose. The MBDONE interrupt is guaranteed to correspond to a
      PDONE/BDONE interrupt when the threshold is set to 1, but offers
      interrupt coalescing when the value is > 1.
      
      Since the HW is configured to generate an interrupt when the ring
      becomes emtpy, we have to deny any timeout/timer settings coming from
      user-space to indicate we can only generate an interrupt very <N>
      packets.
      
      While we are at it, fix the DMA_INTR_THRESHOLD_MASK value which was off
      by one bit (0xff vs. 0x1ff).
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2f913070
  13. 12 9月, 2015 1 次提交
    • A
      bnx2x: use ktime_get_seconds() for timestamp · a19a19de
      Arnd Bergmann 提交于
      commit c48f350f "bnx2x: Add MFW dump support" added the
      bnx2x_update_mfw_dump() function that reads the current time and stores
      it in a 32-bit field that gets passed into a buffer in a fixed format.
      
      This is potentially broken when the epoch overflows in 2038, and
      otherwise overflows in 2106. As we're trying to avoid uses of
      struct timeval for this reason, I noticed the addition of this
      function, and tried to rewrite it in a way that is more explicit
      about the overflow and that will keep working once we deprecate
      struct timeval.
      
      I assume that it is not possible to change the ABI any more, otherwise
      we should try to use a 64-bit field for the seconds right away.
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Cc: Yuval Mintz <Yuval.Mintz@qlogic.com>
      Cc: Ariel Elior <Ariel.Elior@qlogic.com>
      Acked-by: NYuval Mintz <Yuval.Mintz@qlogic.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      a19a19de
  14. 03 9月, 2015 1 次提交
  15. 02 9月, 2015 1 次提交
    • J
      tg3: Fix temperature reporting · d3d11fe0
      Jean Delvare 提交于
      The temperature registers appear to report values in degrees Celsius
      while the hwmon API mandates values to be exposed in millidegrees
      Celsius. Do the conversion so that the values reported by "sensors"
      are correct.
      
      Fixes: aed93e0b ("tg3: Add hwmon support for temperature")
      Signed-off-by: NJean Delvare <jdelvare@suse.de>
      Cc: Prashant Sreedharan <prashant@broadcom.com>
      Cc: Michael Chan <mchan@broadcom.com>
      Cc: stable@vger.kernel.org [v3.6+]
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      d3d11fe0
  16. 01 9月, 2015 1 次提交
  17. 28 8月, 2015 2 次提交
  18. 24 8月, 2015 2 次提交
  19. 21 8月, 2015 1 次提交
  20. 19 8月, 2015 1 次提交
  21. 18 8月, 2015 1 次提交
    • Y
      bnx2: Fix bandwidth allocation for some MF modes · da3cc2da
      Yuval Mintz 提交于
      Management firmware tells driver in case bandwidth configuration for
      a specific function exists, but [regretably] the same field has different
      meanings depending on the multi-function mode - it can either be
      a percentile value or an actual speed.
      
      For newer multi-function modes current logic is incorrect -
      driver understands values as actual speeds instead of percentages,
      causing the resulting chip configuration to be incorrect.
      Signed-off-by: NYuval Mintz <Yuval.Mintz@qlogic.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      da3cc2da
  22. 11 8月, 2015 2 次提交
  23. 07 8月, 2015 3 次提交
  24. 03 8月, 2015 1 次提交
  25. 01 8月, 2015 2 次提交
  26. 31 7月, 2015 1 次提交
  27. 30 7月, 2015 1 次提交
  28. 27 7月, 2015 2 次提交
    • F
      net: bcmgenet: Register link_update callback for all MoCA PHYs · 6ac9de5f
      Florian Fainelli 提交于
      Commit 8d88c6eb ("net: bcmgenet: enable MoCA link state change
      detection") added a fixed PHY link_update callback for MoCA PHYs when
      registered using platform_data exclusively, this change is also
      applicable to systems using Device Tree as their primary configuration
      interface.
      
      In order for this to work, move the link_update assignment into
      bcmgenet_moca_phy_setup() where we know for sure that we are running on
      a MoCA GENET instance, and do not override phydev->link since this is:
      
      - properly taken care of by the PHY library by getting the link UP/DOWN
        interrupts
      - this now runs everytime we call bcmgenet_open(), so we need to
        preserve whatever we detected before we went administratively DOWN and
        then UP
      - we need to make sure that MoCA PHYs start with a link DOWN during
        probe in order to force a link transition to occur
      
      To avoid a forward declaration, move bcmgenet_fixed_phy_link_update()
      above its caller.
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      6ac9de5f
    • F
      net: bcmgenet: Remove checks on clock handles · 7d5d3075
      Florian Fainelli 提交于
      Instead of multiplying the number of checks for IS_ERR(priv->clk),
      simply NULLify the 'struct clk' pointer which is something the Linux
      common clock framework perfectly deals with and does early return for
      each and every single clk_* API functions.
      
      Having every single function check for !IS_ERR(priv->clk) is both
      redundant and error prone, as it turns out, we were doing it for the
      main GENET clock: priv->clk, but not for the Wake-on-LAN or EEE clock,
      so let's just be consistent here.
      Signed-off-by: NFlorian Fainelli <f.fainelli@gmail.com>
      Acked-by: NPetri Gynther <pgynther@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      7d5d3075