1. 07 4月, 2009 2 次提交
  2. 10 3月, 2009 13 次提交
  3. 27 2月, 2009 1 次提交
  4. 16 2月, 2009 1 次提交
    • T
      net: forcedeth: Fix wake-on-lan regression · 34edaa88
      Tobias Diedrich 提交于
      Commit f55c21fd ("forcedeth: call
      restore mac addr in nv_shutdown path"), which was introduced to fix
      the regression tracked at
      http://bugzilla.kernel.org/show_bug.cgi?id=11358 causes the
      wake-on-lan mac to be reversed in the shutdown path.  Apparently the
      forcedeth situation is rather messy in that the mac we need to
      writeback for a subsequent modprobe to work is exactly the reverse of
      what is needed for proper wake-on-lan.
      
      The following patch explains the situation in the comments and
      makes the call to nv_restore_mac_addr() conditional (only called if
      we are not really going for poweroff).
      
      Tobias Diedrich wrote:
      > Hmm, I had not tried WOL for some time.
      > With 2.6.29-rc3 is see the following behaviour:
      > 
      > State            WOL Behaviour
      > ------------------------------
      > shutdown         reversed MAC
      > disk/shutdown    reversed MAC
      > disk/platform    OK
      > 
      > Apparently nv_restore_mac_addr() restores the MAC in the wrong order
      > for WOL (at least for my PCI_DEVICE_ID_NVIDIA_NVENET_15).  platform
      > works, because the MAC is not touched in the nv_suspend() path.
      > 
      > A possible fix might be to only call nv_restore_mac_addr() if
      > system_state != SYSTEM_POWER_OFF.
      
      With the following patch:
      shutdown         OK
      disk/shutdown    OK
      disk/platform    OK
      kexec            OK
      Signed-off-by: NTobias Diedrich <ranma+kernel@tdiedrich.de>
      Tested-by: NPhilipp Matthias Hahn <pmhahn@titan.lahn.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      34edaa88
  5. 07 2月, 2009 5 次提交
  6. 06 2月, 2009 5 次提交
  7. 22 1月, 2009 1 次提交
  8. 11 1月, 2009 4 次提交
  9. 26 12月, 2008 1 次提交
  10. 23 12月, 2008 1 次提交
  11. 08 12月, 2008 1 次提交
    • W
      netdevice: Kill netdev->priv · b74ca3a8
      Wang Chen 提交于
      This is the last shoot of this series.
      After I removing all directly reference of netdev->priv, I am killing
      "priv" of "struct net_device" and fixing relative comments/docs.
      
      Anyone will not be allowed to reference netdev->priv directly.
      If you want to reference the memory of private data, use netdev_priv()
      instead.
      If the private data is not allocted when alloc_netdev(), use
      netdev->ml_priv to point that memory after you creating that private
      data.
      Signed-off-by: NWang Chen <wangchen@cn.fujitsu.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b74ca3a8
  12. 04 12月, 2008 1 次提交
    • E
      forcedeth: power down phy when interface is down · cb52deba
      Ed Swierk 提交于
      Bring the physical link down when the interface is down by placing the PHY
      in power-down state, unless WOL is enabled.  This mirrors the behavior of
      other drivers including e1000 and tg3.
      
      Without the patch, ifconfig down leaves the physical link up, which confuses
      datacenter users who expect the link lights both on the NIC and the switch to
      go out when they bring an interface down.
      
      Furthermore, even though the phy is powered on, autonegotiation stops working,
      so a normally gigabit link might suddenly become 100 Mbit half-duplex when the
      interface goes down, and become gigabit when it comes up again.
      
      Ayaz said:
      
        I would not include this patch until further testing is performed.  NVIDIA
        MCP chips use 3rd party PHY vendors.  By powering down the phy, it could
        have adverse affects on certain phys.
      
      Arthur Jones said:
      
        I just ran across this patch.  Tested on a Marvell 88E1121R (GigE PHY)
        and works great.  This is a very important feature for me.
      Signed-off-by: NEd Swierk <eswierk@arastra.com>
      Tested-by: NArthur Jones <ajones@riverbed.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      cb52deba
  13. 21 11月, 2008 1 次提交
  14. 20 11月, 2008 1 次提交
  15. 04 11月, 2008 1 次提交
  16. 02 11月, 2008 1 次提交
    • J
      forcdeth: increase max_interrupt_work · dccd547e
      Joe Korty 提交于
      This eliminates the following often-generated warning from my 64 bit
      Opteron SMP test stand:
      
      	eth0: too many iterations (6) in nv_nic_irq
      
      According to the web, the problem is that the forcedeth driver has a
      too-low value for max_interrupt_work.  Grepping the kernel I see that
      forcedeth has the second lowest value of all ethernet drivers (ie, 6).
      Most are in the 20-40 range.  So this patch increases this a bit, from 6
      to 15 (at 15 forcedeth becomes the driver with third-lowest
      max_interrupt_work value).
      
      My test stand, which used to print out the above warnings repetitively
      whenever it was under heavy net load, no longer does so.
      Signed-off-by: NJoe Korty <joe.korty@ccur.com>
      Cc: Ayaz Abdulla <aabdulla@nvidia.com>
      Cc: Jeff Garzik <jeff@garzik.org>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NJeff Garzik <jgarzik@redhat.com>
      dccd547e