1. 30 5月, 2009 1 次提交
    • J
      net: convert unicast addr list · ccffad25
      Jiri Pirko 提交于
      This patch converts unicast address list to standard list_head using
      previously introduced struct netdev_hw_addr. It also relaxes the
      locking. Original spinlock (still used for multicast addresses) is not
      needed and is no longer used for a protection of this list. All
      reading and writing takes place under rtnl (with no changes).
      
      I also removed a possibility to specify the length of the address
      while adding or deleting unicast address. It's always dev->addr_len.
      
      The convertion touched especially e1000 and ixgbe codes when the
      change is not so trivial.
      Signed-off-by: NJiri Pirko <jpirko@redhat.com>
      
       drivers/net/bnx2.c               |   13 +--
       drivers/net/e1000/e1000_main.c   |   24 +++--
       drivers/net/ixgbe/ixgbe_common.c |   14 ++--
       drivers/net/ixgbe/ixgbe_common.h |    4 +-
       drivers/net/ixgbe/ixgbe_main.c   |    6 +-
       drivers/net/ixgbe/ixgbe_type.h   |    4 +-
       drivers/net/macvlan.c            |   11 +-
       drivers/net/mv643xx_eth.c        |   11 +-
       drivers/net/niu.c                |    7 +-
       drivers/net/virtio_net.c         |    7 +-
       drivers/s390/net/qeth_l2_main.c  |    6 +-
       drivers/scsi/fcoe/fcoe.c         |   16 ++--
       include/linux/netdevice.h        |   18 ++--
       net/8021q/vlan.c                 |    4 +-
       net/8021q/vlan_dev.c             |   10 +-
       net/core/dev.c                   |  195 +++++++++++++++++++++++++++-----------
       net/dsa/slave.c                  |   10 +-
       net/packet/af_packet.c           |    4 +-
       18 files changed, 227 insertions(+), 137 deletions(-)
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      ccffad25
  2. 29 5月, 2009 1 次提交
  3. 27 5月, 2009 1 次提交
  4. 09 4月, 2009 2 次提交
  5. 07 4月, 2009 1 次提交
  6. 29 3月, 2009 1 次提交
  7. 20 2月, 2009 1 次提交
  8. 19 2月, 2009 2 次提交
  9. 18 2月, 2009 1 次提交
  10. 01 2月, 2009 1 次提交
  11. 28 1月, 2009 1 次提交
  12. 22 1月, 2009 1 次提交
  13. 26 12月, 2008 1 次提交
  14. 23 12月, 2008 1 次提交
  15. 19 12月, 2008 3 次提交
  16. 29 11月, 2008 1 次提交
  17. 26 11月, 2008 3 次提交
  18. 21 11月, 2008 1 次提交
  19. 20 11月, 2008 1 次提交
  20. 15 11月, 2008 2 次提交
  21. 13 11月, 2008 1 次提交
    • D
      niu: Fix readq implementation when architecture does not provide one. · e23a59e1
      David S. Miller 提交于
      This fixes a TX hang reported by Jesper Dangaard Brouer.
      
      When an architecutre cannot provide a fully functional
      64-bit atomic readq/writeq, the driver must implement
      it's own.  This is because only the driver can say whether
      doing something like using two 32-bit reads to implement
      the full 64-bit read will actually work properly.
      
      In particular one of the issues is whether the top 32-bits
      or the bottom 32-bits of the 64-bit register should be read
      first.  There could be side effects, and in fact that is
      exactly the problem here.
      
      The TX_CS register has counters in the upper 32-bits and
      state bits in the lower 32-bits.  A read clears the state
      bits.
      
      We would read the counter half before the state bit half.
      That first read would clear the state bits, and then the
      driver thinks that no interrupts are pending because the
      interrupt indication state bits are seen clear every time.
      
      Fix this by reading the bottom half before the upper half.
      Tested-by: NJesper Dangaard Brouer <jdb@comx.dk>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      e23a59e1
  22. 04 11月, 2008 2 次提交
  23. 28 10月, 2008 1 次提交
  24. 13 9月, 2008 1 次提交
  25. 31 8月, 2008 1 次提交
  26. 30 7月, 2008 1 次提交
  27. 18 7月, 2008 1 次提交
  28. 02 7月, 2008 1 次提交
  29. 12 5月, 2008 1 次提交
  30. 04 5月, 2008 1 次提交
  31. 25 4月, 2008 2 次提交