1. 21 3月, 2006 3 次提交
  2. 04 3月, 2006 1 次提交
  3. 24 1月, 2006 9 次提交
  4. 11 11月, 2005 3 次提交
  5. 06 11月, 2005 5 次提交
  6. 29 10月, 2005 1 次提交
  7. 13 9月, 2005 1 次提交
  8. 09 9月, 2005 1 次提交
  9. 05 9月, 2005 1 次提交
  10. 30 8月, 2005 6 次提交
    • M
      [BNX2]: update version and minor fixes · 73eef4cd
      Michael Chan 提交于
      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: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      73eef4cd
    • M
      [BNX2]: change irq locks to bh locks · c770a65c
      Michael Chan 提交于
      Change all locks from spin_lock_irqsave() to spin_lock_bh(). All
      places that require spinlocks are in BH context.
      Signed-off-by: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      c770a65c
    • M
      [BNX2]: remove atomics in tx · e89bbf10
      Michael Chan 提交于
      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: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e89bbf10
    • M
      [BNX2]: speedup serdes linkup · cd339a0e
      Michael Chan 提交于
      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: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      cd339a0e
    • M
      [BNX2]: Fix rtnl deadlock in bnx2_close · afdc08b9
      Michael Chan 提交于
      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: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      afdc08b9
    • P
      [BNX2]: Possible sparse fixes, take two · 14ab9b86
      Peter Hagervall 提交于
      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: NPeter Hagervall <hager@cs.umu.se>
      Acked-by: NMichael Chan <mchan@broadcom.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      14ab9b86
  11. 27 5月, 2005 1 次提交