1. 11 10月, 2007 2 次提交
    • J
      Clean up duplicate includes in drivers/net/ · bf1e9a08
      Jesper Juhl 提交于
      This patch cleans up duplicate includes in
      	 drivers/net/
      Signed-off-by: NJesper Juhl <jesper.juhl@gmail.com>
      Acked-by: N"John W. Linville" <linville@tuxdriver.com>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      bf1e9a08
    • S
      [NET]: Make NAPI polling independent of struct net_device objects. · bea3348e
      Stephen Hemminger 提交于
      Several devices have multiple independant RX queues per net
      device, and some have a single interrupt doorbell for several
      queues.
      
      In either case, it's easier to support layouts like that if the
      structure representing the poll is independant from the net
      device itself.
      
      The signature of the ->poll() call back goes from:
      
      	int foo_poll(struct net_device *dev, int *budget)
      
      to
      
      	int foo_poll(struct napi_struct *napi, int budget)
      
      The caller is returned the number of RX packets processed (or
      the number of "NAPI credits" consumed if you want to get
      abstract).  The callee no longer messes around bumping
      dev->quota, *budget, etc. because that is all handled in the
      caller upon return.
      
      The napi_struct is to be embedded in the device driver private data
      structures.
      
      Furthermore, it is the driver's responsibility to disable all NAPI
      instances in it's ->stop() device close handler.  Since the
      napi_struct is privatized into the driver's private data structures,
      only the driver knows how to get at all of the napi_struct instances
      it may have per-device.
      
      With lots of help and suggestions from Rusty Russell, Roland Dreier,
      Michael Chan, Jeff Garzik, and Jamal Hadi Salim.
      
      Bug fixes from Thomas Graf, Roland Dreier, Peter Zijlstra,
      Joseph Fannin, Scott Wood, Hans J. Koch, and Michael Chan.
      
      [ Ported to current tree and all drivers converted.  Integrated
        Stephen's follow-on kerneldoc additions, and restored poll_list
        handling to the old style to fix mutual exclusion issues.  -DaveM ]
      Signed-off-by: NStephen Hemminger <shemminger@linux-foundation.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      bea3348e
  2. 31 8月, 2007 2 次提交
    • D
      netxen: fix crashes during module unload · 3052246c
      dhananjay@netxen.com 提交于
      This patch fixes two problems during driver unload. The pci_disable_device()
      call is before firmware reload, causing reads and writes across PCI bus after
      disabling device. Second problem is the register window was wrong during
      firmware reload
      
      Signed-off by: Dhananjay Phadke <dhananjay@netxen.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      3052246c
    • D
      netxen: Avoid firmware load in PCI probe · b3e2d887
      dhananjay@netxen.com 提交于
      Loading firmware during PCI probe can lead to incorrect initialization,
      rendering the card unusable until next reboot.  This was introduced a while
      ago as a workaround for firmware bug, a better workaround was submitted for
      this a while ago. So removing original hack that loads firmware during probe.
      
      Signed-off by: Dhananjay Phadke <dhananjay@netxen.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      b3e2d887
  3. 31 7月, 2007 3 次提交
  4. 25 7月, 2007 1 次提交
  5. 12 7月, 2007 1 次提交
    • A
      PCI: Change all drivers to use pci_device->revision · 44c10138
      Auke Kok 提交于
      Instead of all drivers reading pci config space to get the revision
      ID, they can now use the pci_device->revision member.
      
      This exposes some issues where drivers where reading a word or a dword
      for the revision number, and adding useless error-handling around the
      read. Some drivers even just read it for no purpose of all.
      
      In devices where the revision ID is being copied over and used in what
      appears to be the equivalent of hotpath, I have left the copy code
      and the cached copy as not to influence the driver's performance.
      
      Compile tested with make all{yes,mod}config on x86_64 and i386.
      Signed-off-by: NAuke Kok <auke-jan.h.kok@intel.com>
      Acked-by: NDave Jones <davej@redhat.com>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
      44c10138
  6. 11 7月, 2007 1 次提交
  7. 02 7月, 2007 3 次提交
  8. 10 6月, 2007 1 次提交
    • M
      NetXen: Fix ping issue after reboot on Blades with 3.4.19 firmware · 3e2facef
      Mithlesh Thukral 提交于
      NetXen: Fix initialization and subsequent ping issue on 3.4.19 firmware
      This patch fixes the ping problem seen X/PBlades after the adapter's
      firmware was moved to 3.4.19. After configured interface up, ping
      failed.
      NetXen adapter couldn't accept ARP broadcast packet. Manual addition of
      MAC address in the ARP table, made ping work.
      NetXen adapter should finish initilization after system boot. But looks
      NetXen adapter didn't initilization correctly after system boot up.
      So have to re-load the firmware again in probe routine.
      Also re-initilization netxen_config_0 and netxen_config_1 registers.
      
      Signed-off by: Wen Xiong <wenxiong@us.ibm.com>
      Signed-off by: Mithlesh Thukral <mithlesh@netxen.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      3e2facef
  9. 03 6月, 2007 1 次提交
  10. 12 5月, 2007 1 次提交
  11. 28 4月, 2007 4 次提交
  12. 26 4月, 2007 3 次提交
  13. 03 3月, 2007 2 次提交
  14. 27 2月, 2007 2 次提交
  15. 15 2月, 2007 1 次提交
  16. 10 2月, 2007 1 次提交
  17. 31 1月, 2007 1 次提交
  18. 23 1月, 2007 1 次提交
  19. 27 12月, 2006 6 次提交
  20. 07 12月, 2006 1 次提交
  21. 06 12月, 2006 1 次提交
  22. 05 12月, 2006 1 次提交
    • A
      [PATCH] NetXen: multiport firmware support, ioctl interface · ed25ffa1
      Amit S. Kale 提交于
      NetXen: 1G/10G Ethernet driver updates
      	- Multiport and newer firmware support
      	- ioctl interface for user level tools
      	- Cast error fix for multiport
      Signed-off-by: NAmit S. Kale <amitkale@netxen.com>
      
       netxen_nic.h          |  281 +++++++++++++++++++++++++-------
       netxen_nic_ethtool.c  |   12 -
       netxen_nic_hw.c       |  429 +++++++++++++++++++++++++++++++++++++++++---------
       netxen_nic_init.c     |  301 ++++++++++++++++++++++++++++++-----
       netxen_nic_ioctl.h    |    2
       netxen_nic_isr.c      |    3
       netxen_nic_main.c     |  260 ++++++++++++++++++------------
       netxen_nic_niu.c      |   22 +-
       netxen_nic_phan_reg.h |  228 ++++++++++++++++----------
       9 files changed, 1161 insertions(+), 377 deletions(-)
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      ed25ffa1