1. 16 11月, 2008 1 次提交
  2. 13 11月, 2008 1 次提交
    • W
      netdevice: safe convert to netdev_priv() #part-2 · 4cf1653a
      Wang Chen 提交于
      We have some reasons to kill netdev->priv:
      1. netdev->priv is equal to netdev_priv().
      2. netdev_priv() wraps the calculation of netdev->priv's offset, obviously
         netdev_priv() is more flexible than netdev->priv.
      But we cann't kill netdev->priv, because so many drivers reference to it
      directly.
      
      This patch is a safe convert for netdev->priv to netdev_priv(netdev).
      Since all of the netdev->priv is only for read.
      But it is too big to be sent in one mail.
      I split it to 4 parts and make every part smaller than 100,000 bytes,
      which is max size allowed by vger.
      Signed-off-by: NWang Chen <wangchen@cn.fujitsu.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      4cf1653a
  3. 04 11月, 2008 1 次提交
  4. 31 10月, 2008 1 次提交
  5. 28 10月, 2008 1 次提交
  6. 12 10月, 2008 1 次提交
  7. 10 10月, 2008 1 次提交
  8. 25 9月, 2008 1 次提交
  9. 23 7月, 2008 7 次提交
  10. 19 7月, 2008 1 次提交
  11. 17 7月, 2008 2 次提交
  12. 07 7月, 2008 1 次提交
  13. 28 6月, 2008 2 次提交
  14. 17 4月, 2008 1 次提交
  15. 26 3月, 2008 2 次提交
  16. 12 2月, 2008 1 次提交
  17. 11 2月, 2008 1 次提交
    • B
      e1000: Fix for 32 bits platforms with 64 bits resources · 3c34ac36
      Benjamin Herrenschmidt 提交于
      The e1000 driver stores the content of the PCI resources into
      unsigned long's before ioremapping. This breaks on 32 bits
      platforms that support 64 bits MMIO resources such as ppc 44x.
      
      This fixes it by removing those temporary variables and passing
      directly the result of pci_resource_start/len to ioremap.
      
      The side effect is that I removed the assignments to the netdev
      fields mem_start, mem_end and base_addr, which are totally useless
      for PCI devices.
      Signed-off-by: NBenjamin Herrenschmidt <benh@kernel.crashing.org>
      --
      
       drivers/net/e1000/e1000_main.c |   18 +++++-------------
       1 file changed, 5 insertions(+), 13 deletions(-)
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      3c34ac36
  18. 03 2月, 2008 1 次提交
  19. 30 1月, 2008 2 次提交
    • L
      [net] Gracefully handle shared e1000/1000e driver PCI ID's · 60e23317
      Linus Torvalds 提交于
      Both the old e1000 driver and the new e1000e driver can drive some
      PCI-Express e1000 cards, and we should avoid ambiguity about which
      driver will pick up the support for those cards when both drivers are
      enabled.
      
      This solves the problem by having the old driver support those cards if
      the new driver isn't configured, but otherwise ceding support for PCI
      Express versions of the e1000 chipset to the newer driver.  Thus
      allowing both legacy configurations where only the old driver is active
      (and handles all chips it knows about) and the new configuration with
      the new driver handling the more modern PCIE variants.
      Acked-by: NJeff Garzik <jeff@garzik.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      60e23317
    • L
      Mostly revert "e1000/e1000e: Move PCI-Express device IDs over to e1000e" · 5b10ca19
      Linus Torvalds 提交于
      The new e1000e driver is apparently not yet suitable for general use, so
      mark it experimental, and re-instate all the PCI-Express device IDs in
      the old and stable e1000 driver so that people (namely me) can continue
      to use a driver that actually works.
      
      Auke & co have been appraised of the situation.
      
      Cc: Auke Kok <auke-jan.h.kok@intel.com>
      Cc: Jeff Garzik <jeff@garzik.org>
      Cc: David Miller <davem@davemloft.net>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      5b10ca19
  20. 29 1月, 2008 6 次提交
  21. 21 1月, 2008 1 次提交
    • D
      [NET]: Fix interrupt semaphore corruption in Intel drivers. · 49d85c50
      David S. Miller 提交于
      Several of the Intel ethernet drivers keep an atomic counter used to
      manage when to actually hit the hardware with a disable or an enable.
      
      The way the net_rx_work() breakout logic works during a pending
      napi_disable() is that it simply unschedules the poll even if it
      still has work.
      
      This can potentially leave interrupts disabled, but that is OK
      because all of the drivers are about to disable interrupts
      anyways in all such code paths that do a napi_disable().
      
      Unfortunately, this trips up the semaphore used here in the Intel
      drivers.  If you hit this case, when you try to bring the interface
      back up it won't enable interrupts.  A reload of the driver module
      fixes it of course.
      
      So what we do is make sure all the sequences now go:
      
      	napi_disable();
      	atomic_set(&adapter->irq_sem, 0);
      	*_irq_disable();
      
      which makes sure the counter is always in the correct state.
      
      Reported by Robert Olsson.
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      49d85c50
  22. 17 1月, 2008 1 次提交
  23. 09 1月, 2008 2 次提交
  24. 02 12月, 2007 1 次提交