1. 28 9月, 2013 1 次提交
  2. 25 9月, 2013 1 次提交
    • J
      qlogic: Remove extern from function prototypes · 8a1a0ae1
      Joe Perches 提交于
      There are a mix of function prototypes with and without extern
      in the kernel sources.  Standardize on not using extern for
      function prototypes.
      
      Function prototypes don't need to be written with extern.
      extern is assumed by the compiler.  Its use is as unnecessary as
      using auto to declare automatic/local variables in a block.
      Signed-off-by: NJoe Perches <joe@perches.com>
      8a1a0ae1
  3. 28 8月, 2013 1 次提交
  4. 31 5月, 2013 2 次提交
  5. 15 3月, 2013 1 次提交
    • N
      netxen: write IP address to firmware when using bonding · 8a7fbfab
      nikolay@redhat.com 提交于
      This patch allows LRO aggregation on bonded devices that contain an
      NX3031 device. It also adds a for_each_netdev_in_bond_rcu(bond, slave)
      macro which executes for each slave that has bond as master.
      
      V3: After testing and discussing this with Rajesh, I decided to keep the
          vlan ip cache and just rename it to ip_cache since it will store bond
          ip addresses too. A new master flag has been added to the ip cache to
          denote that the address has been added because of a master device.
          I've taken care of the enslave/release cases by checking for various
          combinations of events and flags (e.g. netxen has a master, it's a
          bond master and it's not marked as a slave means it is being enslaved
          and is dev_open()ed in bond_enslave).
          I've changed netxen_free_ip_list() to have a "master" parameter which
          causes all IP addresses marked as master to be deleted (used when a
          netxen is being released). I've made the patch use the new upper
          device API as well. The following cases were tested:
          - bond -> netxen
          - vlan -> netxen
          - vlan -> bond -> netxen
      
      V2: Remove local ip caching, retrieve addresses dynamically and
          restore them if necessary.
      
      Note: Tested with NX3031 adapter.
      Tested-by: NRajesh Borundia <rajesh.borundia@qlogic.com>
      Signed-off-by: NAndy Gospodarek <agospoda@redhat.com>
      Signed-off-by: NNikolay Aleksandrov <nikolay@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      8a7fbfab
  6. 29 6月, 2012 1 次提交
  7. 10 5月, 2012 3 次提交
  8. 17 3月, 2012 1 次提交
    • S
      netxen: qlogic ethernet : Fix endian bug. · 06d6c108
      Santosh Nayak 提交于
      Change the datatype of "ip_addr" to __be32 as 'ip' should be in
      big endian format.
      
      Adapter needs "ip address" in big endian format stored at lower 32bit
      of req.word[1]. netxen_config_ipaddr() now receives 'ip' in big endian
      format. To satisfy adapter's need, use memcpy() to copy byte by byte
      of 'ip' into lower 32bit of req.word[1].
      
      Mac address and serial number of adapter need to be in little endian format.
      Change the data type of the related  variables to __le32 / __le64 or cast it
      explicitly to __le32 / __le64 depending upon the requirement.
      Signed-off-by: NSantosh Nayak <santoshprasadnayak@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      06d6c108
  9. 05 2月, 2012 3 次提交
  10. 21 9月, 2011 1 次提交
  11. 11 8月, 2011 1 次提交
  12. 08 8月, 2011 1 次提交
  13. 22 7月, 2011 1 次提交
  14. 12 4月, 2011 1 次提交
  15. 07 4月, 2011 1 次提交
  16. 16 3月, 2011 1 次提交
  17. 04 1月, 2011 2 次提交
  18. 21 10月, 2010 1 次提交
  19. 18 10月, 2010 1 次提交
  20. 19 8月, 2010 1 次提交
  21. 13 5月, 2010 1 次提交
  22. 30 3月, 2010 1 次提交
  23. 27 3月, 2010 1 次提交
  24. 15 1月, 2010 2 次提交
  25. 08 1月, 2010 1 次提交
  26. 24 12月, 2009 1 次提交
  27. 22 11月, 2009 1 次提交
    • N
      netxen : fix BOND_MODE_TLB/ALB mode. · 5d09e534
      Narender Kumar 提交于
      o Along with netdev->perm_addr, mac address will be
        maintained in device private structure.
      
      o Device limitation: We need to set mac address when ever
        interface comes up.
      
      In ALB/TAL mode, bonding driver calls set_mac for all slave with bond mac address.
      But bonding driver set netdev->dev_addr field to its original value,
      after enslaving interfaces.
      
      When ever active slave changes, it swap dev_addr of inactive slave with active.
      Yet it doesn't notify driver about change in netdev->dev_addr.
      
      As netxen driver need to set mac addr when ever interface comes up,
      it can't rely on netdev->dev_addr field. Specially in case of bonding mode ALB/TLB.
      Signed-off-by: NNarender Kumar <narender.kumar@qlogic.com>
      Signed-off-by: NAmit Kumar Salecha <amit.salecha@qlogic.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5d09e534
  28. 28 10月, 2009 4 次提交
  29. 18 10月, 2009 2 次提交