1. 12 4月, 2011 1 次提交
  2. 04 4月, 2010 1 次提交
    • J
      net: convert multicast list to list_head · 22bedad3
      Jiri Pirko 提交于
      Converts the list and the core manipulating with it to be the same as uc_list.
      
      +uses two functions for adding/removing mc address (normal and "global"
       variant) instead of a function parameter.
      +removes dev_mcast.c completely.
      +exposes netdev_hw_addr_list_* macros along with __hw_addr_* functions for
       manipulation with lists on a sandbox (used in bonding and 80211 drivers)
      Signed-off-by: NJiri Pirko <jpirko@redhat.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      22bedad3
  3. 25 3月, 2010 1 次提交
  4. 19 2月, 2010 1 次提交
  5. 13 2月, 2010 1 次提交
  6. 08 1月, 2010 1 次提交
  7. 19 11月, 2009 1 次提交
  8. 01 9月, 2009 1 次提交
  9. 06 7月, 2009 1 次提交
  10. 13 6月, 2009 2 次提交
  11. 18 2月, 2009 1 次提交
  12. 22 1月, 2009 2 次提交
  13. 04 11月, 2008 1 次提交
  14. 28 10月, 2008 1 次提交
  15. 09 4月, 2008 1 次提交
    • D
      [NET]: Undo code bloat in hot paths due to print_mac(). · 21f644f3
      David S. Miller 提交于
      If print_mac() is used inside of a pr_debug() the compiler
      can't see that the call is redundant so still performs it
      even of pr_debug() ends up being a nop.
      
      So don't use print_mac() in such cases in hot code paths,
      use MAC_FMT et al. instead.
      
      As noted by Joe Perches, pr_debug() could be modified to
      handle this better, but that is a change to an interface
      used by the entire kernel and thus needs to be validated
      carefully.  This here is thus the less risky fix for
      2.6.25
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      21f644f3
  16. 05 4月, 2008 1 次提交
  17. 03 2月, 2008 1 次提交
  18. 29 1月, 2008 1 次提交
    • A
      endianness annotations and fixes for olympic · b710b43c
      Al Viro 提交于
      	* missing braces in !readl(...) & ...
      	* trivial endianness annotations
      	* in olympic_arb_cmd() the loop collecting fragments of
      packet is b0rken on big-endian - we have
      	(next_ptr && (buf_ptr=olympic_priv->olympic_lap + ntohs(next_ptr)))
      as condition and it should have swab16(), not ntohs() - it's host-endian
      byteswapped, not big-endian.  So if we get more than one fragment on big-endian
      host, we get screwed.
      	This ntohs() got missed back when the rest of those had been switched
      to swab16() in 2.4.0-test2-pre1 - at a guess, nobody had hit fragmented
      packets during the testing of PPC fixes.
      
      PS: Ken Aaker cc'd on assumption that he is the same guy who'd done the
      original set of PPC fixes in olympic
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      b710b43c
  19. 11 10月, 2007 4 次提交
    • J
      [NET]: Introduce and use print_mac() and DECLARE_MAC_BUF() · 0795af57
      Joe Perches 提交于
      This is nicer than the MAC_FMT stuff.
      Signed-off-by: NJoe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      0795af57
    • R
      [NET]: Nuke SET_MODULE_OWNER macro. · 10d024c1
      Ralf Baechle 提交于
      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: NRalf Baechle <ralf@linux-mips.org>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      10d024c1
    • Y
      dev->priv to netdev_priv(dev), drivers/net/tokenring/ · eda10531
      Yoann Padioleau 提交于
      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: NYoann 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: NJeff Garzik <jeff@garzik.org>
      eda10531
    • E
      [NET]: Make /proc/net per network namespace · 457c4cbc
      Eric W. Biederman 提交于
      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: NEric W. Biederman <ebiederm@xmission.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      457c4cbc
  20. 26 4月, 2007 3 次提交
  21. 02 12月, 2006 1 次提交
  22. 05 10月, 2006 1 次提交
    • D
      IRQ: Maintain regs pointer globally rather than passing to IRQ handlers · 7d12e780
      David Howells 提交于
      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: NDavid Howells <dhowells@redhat.com>
      (cherry picked from 1b16e7ac850969f38b375e511e3fa2f474a33867 commit)
      7d12e780
  23. 03 7月, 2006 1 次提交
  24. 01 7月, 2006 1 次提交
  25. 23 6月, 2006 1 次提交
  26. 17 1月, 2006 1 次提交
  27. 14 9月, 2005 1 次提交
  28. 17 4月, 2005 1 次提交
    • L
      Linux-2.6.12-rc2 · 1da177e4
      Linus Torvalds 提交于
      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