1. 20 Mar, 2006 7 commits
  2. 03 Mar, 2006 1 commit
  3. 23 Jan, 2006 9 commits
  4. 10 Nov, 2005 3 commits
  5. 05 Nov, 2005 5 commits
  6. 28 Oct, 2005 1 commit
  7. 12 Sep, 2005 1 commit
  8. 08 Sep, 2005 1 commit
  9. 05 Sep, 2005 1 commit
  10. 29 Aug, 2005 6 commits
    • Michael Chan's avatar
      [BNX2]: update version and minor fixes · 73eef4cd
      Michael Chan authored
      
      
      Update version and add 4 minor fixes, the last 2 were suggested by
      Jeff Garzik:
      
      1. check for a valid ethernet address before setting it
      2. zero out bp->regview if init_one encounters an error and unmaps
         the IO address. This prevents remove_one from unmapping again.
      3. use netif_rx_schedule() instead of hand coding the same.
      4. use IRQ_HANDLED and IRQ_NONE.
      Signed-off-by: default avatarMichael Chan <mchan@broadcom.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      73eef4cd
    • Michael Chan's avatar
      [BNX2]: change irq locks to bh locks · c770a65c
      Michael Chan authored
      
      
      Change all locks from spin_lock_irqsave() to spin_lock_bh(). All
      places that require spinlocks are in BH context.
      Signed-off-by: default avatarMichael Chan <mchan@broadcom.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      c770a65c
    • Michael Chan's avatar
      [BNX2]: remove atomics in tx · e89bbf10
      Michael Chan authored
      
      
      Remove atomic operations in the fast tx path. Expensive atomic
      operations were used to keep track of the number of available tx
      descriptors. The new code uses the difference between the consumer
      and producer index to determine the number of free tx descriptors.
      
      As suggested by Jeff Garzik, the name of the inline function is
      changed to all lower case.
      Signed-off-by: default avatarMichael Chan <mchan@broadcom.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      e89bbf10
    • Michael Chan's avatar
      [BNX2]: speedup serdes linkup · cd339a0e
      Michael Chan authored
      
      
      This speeds up link-up time on 5706 SerDes if the link partner does
      not autoneg, a rather common scenario in blade servers. Some blade
      servers use IPMI for keyboard input and it's important to minimize
      link disruptions.
      
      The speedup is achieved by shortening the timer to (HZ / 3) during
      the transient period right after initiating a SerDes autoneg. If
      autoneg does not complete, parallel detect can be done sooner. After
      the transient period is over, the timer goes back to its normal HZ
      interval.
      
      As suggested by Jeff Garzik, the timer initialization is moved to
      bnx2_init_board() from bnx2_open().
      
      An eeprom bit is also added to allow default forced SerDes speed for
      even faster link-up time.
      Signed-off-by: default avatarMichael Chan <mchan@broadcom.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      cd339a0e
    • Michael Chan's avatar
      [BNX2]: Fix rtnl deadlock in bnx2_close · afdc08b9
      Michael Chan authored
      
      
      This fixes an rtnl deadlock problem when flush_scheduled_work() is
      called from bnx2_close(). In rare cases, linkwatch_event() may be on
      the workqueue from a previous close of a different device and it will
      try to get the rtnl lock which is already held by dev_close().
      
      The fix is to set a flag if we are in the reset task which is run
      from the workqueue. bnx2_close() will loop until the flag is cleared.
      As suggested by Jeff Garzik, the loop is changed to call msleep(1)
      instead of yield() in the original patch.
      
      flush_scheduled_work() is also moved to bnx2_remove_one() before the
      netdev is freed.
      Signed-off-by: default avatarMichael Chan <mchan@broadcom.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      afdc08b9
    • Peter Hagervall's avatar
      [BNX2]: Possible sparse fixes, take two · 14ab9b86
      Peter Hagervall authored
      
      
      This patch contains the following possible cleanups/fixes:
      
      - use C99 struct initializers
      - make a few arrays and structs static
      - remove a few uses of literal 0 as NULL pointer
      - use convenience function instead of cast+dereference in bnx2_ioctl()
      - remove superfluous casts to u8 * in calls to readl/writel
      Signed-off-by: default avatarPeter Hagervall <hager@cs.umu.se>
      Acked-by: default avatarMichael Chan <mchan@broadcom.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      14ab9b86
  11. 26 May, 2005 1 commit