1. 03 Sep, 2008 1 commit
  2. 10 Oct, 2007 4 commits
    • Joe Perches's avatar
      [NET]: Introduce and use print_mac() and DECLARE_MAC_BUF() · 0795af57
      Joe Perches authored
      
      
      This is nicer than the MAC_FMT stuff.
      
      Signed-off-by: default avatarJoe Perches <joe@perches.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      0795af57
    • Ralf Baechle's avatar
      [NET]: Nuke SET_MODULE_OWNER macro. · 10d024c1
      Ralf Baechle authored
      
      
      It's been a useless no-op for long enough in 2.6 so I figured it's time to
      remove it.  The number of people that could object because they're
      maintaining unified 2.4 and 2.6 drivers is probably rather small.
      
      [ Handled drivers added by netdev tree and some missed IRDA cases... -DaveM ]
      
      Signed-off-by: default avatarRalf Baechle <ralf@linux-mips.org>
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      10d024c1
    • Yoann Padioleau's avatar
      dev->priv to netdev_priv(dev), drivers/net/tokenring/ · eda10531
      Yoann Padioleau authored
      Replacing accesses to dev->priv to netdev_priv(dev). The replacment
      is safe when netdev_priv is used to access a private structure that is
      right next to the net_device structure in memory.
      Cf http://groups.google.com/group/comp.os.linux.development.system/browse_thread/thread/de19321bcd94dbb8/0d74a4adcd6177bd
      
      
      This is the case when the net_device structure was allocated with
      a call to alloc_netdev or one of its derivative.
      
      Here is an excerpt of the semantic patch that performs the transformation
      
      @ rule1 @
      type T;
      struct net_device *dev;
      @@
      
       dev =
      (
              alloc_netdev
      |
              alloc_etherdev
      |
              alloc_trdev
      )
         (sizeof(T), ...)
      
      @ rule1bis @
      struct net_device *dev;
      expression E;
      @@
       dev->priv = E
      
      @ rule2 depends on rule1 && !rule1bis  @
      struct net_device *dev;
      type rule1.T;
      @@
      
      - (T*) dev->priv
      + netdev_priv(dev)
      
      PS: I have performed the same transformation on the whole kernel
      and it affects around 70 files, most of them in drivers/net/.
      Should I split my patch for each subnet directories ? (wireless/, wan/, etc)
      
      Thanks to Thomas Surrel for helping me refining my semantic patch.
      
      Signed-off-by: default avatarYoann Padioleau <padator@wanadoo.fr>
      
       3c359.c       |   58 +++++++++++++++++++++++++++++-----------------------------
       ibmtr.c       |   38 +++++++++++++++++++-------------------
       lanstreamer.c |   32 ++++++++++++++++----------------
       madgemc.c     |    4 ++--
       olympic.c     |   36 ++++++++++++++++++------------------
       tmspci.c      |    4 ++--
       6 files changed, 86 insertions(+), 86 deletions(-)
      Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
      eda10531
    • Eric W. Biederman's avatar
      [NET]: Make /proc/net per network namespace · 457c4cbc
      Eric W. Biederman authored
      
      
      This patch makes /proc/net per network namespace.  It modifies the global
      variables proc_net and proc_net_stat to be per network namespace.
      The proc_net file helpers are modified to take a network namespace argument,
      and all of their callers are fixed to pass &init_net for that argument.
      This ensures that all of the /proc/net files are only visible and
      usable in the initial network namespace until the code behind them
      has been updated to be handle multiple network namespaces.
      
      Making /proc/net per namespace is necessary as at least some files
      in /proc/net depend upon the set of network devices which is per
      network namespace, and even more files in /proc/net have contents
      that are relevant to a single network namespace.
      
      Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
      457c4cbc
  3. 25 Apr, 2007 2 commits
  4. 05 Oct, 2006 1 commit
    • David Howells's avatar
      IRQ: Maintain regs pointer globally rather than passing to IRQ handlers · 7d12e780
      David Howells authored
      
      
      Maintain a per-CPU global "struct pt_regs *" variable which can be used instead
      of passing regs around manually through all ~1800 interrupt handlers in the
      Linux kernel.
      
      The regs pointer is used in few places, but it potentially costs both stack
      space and code to pass it around.  On the FRV arch, removing the regs parameter
      from all the genirq function results in a 20% speed up of the IRQ exit path
      (ie: from leaving timer_interrupt() to leaving do_IRQ()).
      
      Where appropriate, an arch may override the generic storage facility and do
      something different with the variable.  On FRV, for instance, the address is
      maintained in GR28 at all times inside the kernel as part of general exception
      handling.
      
      Having looked over the code, it appears that the parameter may be handed down
      through up to twenty or so layers of functions.  Consider a USB character
      device attached to a USB hub, attached to a USB controller that posts its
      interrupts through a cascaded auxiliary interrupt controller.  A character
      device driver may want to pass regs to the sysrq handler through the input
      layer which adds another few layers of parameter passing.
      
      I've build this code with allyesconfig for x86_64 and i386.  I've runtested the
      main part of the code on FRV and i386, though I can't test most of the drivers.
      I've also done partial conversion for powerpc and MIPS - these at least compile
      with minimal configurations.
      
      This will affect all archs.  Mostly the changes should be relatively easy.
      Take do_IRQ(), store the regs pointer at the beginning, saving the old one:
      
      	struct pt_regs *old_regs = set_irq_regs(regs);
      
      And put the old one back at the end:
      
      	set_irq_regs(old_regs);
      
      Don't pass regs through to generic_handle_irq() or __do_IRQ().
      
      In timer_interrupt(), this sort of change will be necessary:
      
      	-	update_process_times(user_mode(regs));
      	-	profile_tick(CPU_PROFILING, regs);
      	+	update_process_times(user_mode(get_irq_regs()));
      	+	profile_tick(CPU_PROFILING);
      
      I'd like to move update_process_times()'s use of get_irq_regs() into itself,
      except that i386, alone of the archs, uses something other than user_mode().
      
      Some notes on the interrupt handling in the drivers:
      
       (*) input_dev() is now gone entirely.  The regs pointer is no longer stored in
           the input_dev struct.
      
       (*) finish_unlinks() in drivers/usb/host/ohci-q.c needs checking.  It does
           something different depending on whether it's been supplied with a regs
           pointer or not.
      
       (*) Various IRQ handler function pointers have been moved to type
           irq_handler_t.
      
      Signed-Off-By: default avatarDavid Howells <dhowells@redhat.com>
      (cherry picked from 1b16e7ac850969f38b375e511e3fa2f474a33867 commit)
      7d12e780
  5. 25 Sep, 2006 1 commit
  6. 19 Aug, 2006 1 commit
  7. 02 Jul, 2006 1 commit
  8. 30 Jun, 2006 1 commit
  9. 17 Jan, 2006 1 commit
  10. 26 Jun, 2005 2 commits
  11. 16 Apr, 2005 1 commit
    • Linus Torvalds's avatar
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds authored
      Initial git repository build. I'm not bothering with the full history,
      even though we have it. We can create a separate "historical" git
      archive of that later if we want to, and in the meantime it's about
      3.2GB when imported into git - space that would just make the early
      git days unnecessarily complicated, when we don't have a lot of good
      infrastructure for it.
      
      Let it rip!
      1da177e4