1. 26 4月, 2007 7 次提交
  2. 06 3月, 2007 3 次提交
    • J
      bonding: Improve IGMP join processing · a816c7c7
      Jay Vosburgh 提交于
      	In active-backup mode, the current bonding code duplicates IGMP
      traffic to all slaves, so that switches are up to date in case of a
      failover from an active to a backup interface.  If bonding then fails
      back to the original active interface, it is likely that the "active
      slave" switch's IGMP forwarding for the port will be out of date until
      some event occurs to refresh the switch (e.g., a membership query).
      
      	This patch alters the behavior of bonding to no longer flood
      IGMP to all ports, and to issue IGMP JOINs to the newly active port at
      the time of a failover.  This insures that switches are kept up to date
      for all cases.
      
      	"GOELLESCH Niels" <niels.goellesch@eurocontrol.int> originally
      reported this problem, and included a patch.  His original patch was
      modified by Jay Vosburgh to additionally remove the existing IGMP flood
      behavior, use RCU, streamline code paths, fix trailing white space, and
      adjust for style.
      Signed-off-by: NJay Vosburgh <fubar@us.ibm.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      a816c7c7
    • J
      bonding: only receive ARPs for us · e245cb71
      Jay Vosburgh 提交于
      	The ARP validation code only needs ARPs for the bonding device.
      Signed-off-by: NJay Vosburgh <fubar@us.ibm.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      e245cb71
    • J
      bonding: fix double dev_add_pack · c4f283b1
      Jay Vosburgh 提交于
      	Bonding can erroneously register the same packet_type to receive
      ARPs (for use by ARP validation): once at device open time, and once via
      sysfs.  Since sysfs can change the validate setting (and thus register
      or unregister) at any time, a flag is needed to synchronize with device
      open in order to avoid double registrations, and the simplest place is
      within the packet_type structure itself.  Double unregister is not an
      issue.
      
      	Bug reported by Ulrich Oelmann <ulrich.oelmann@web.de>.
      Signed-off-by: NJay Vosburgh <fubar@us.ibm.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      c4f283b1
  3. 03 3月, 2007 1 次提交
  4. 15 2月, 2007 1 次提交
    • T
      [PATCH] remove many unneeded #includes of sched.h · cd354f1a
      Tim Schmielau 提交于
      After Al Viro (finally) succeeded in removing the sched.h #include in module.h
      recently, it makes sense again to remove other superfluous sched.h includes.
      There are quite a lot of files which include it but don't actually need
      anything defined in there.  Presumably these includes were once needed for
      macros that used to live in sched.h, but moved to other header files in the
      course of cleaning it up.
      
      To ease the pain, this time I did not fiddle with any header files and only
      removed #includes from .c-files, which tend to cause less trouble.
      
      Compile tested against 2.6.20-rc2 and 2.6.20-rc2-mm2 (with offsets) on alpha,
      arm, i386, ia64, mips, powerpc, and x86_64 with allnoconfig, defconfig,
      allmodconfig, and allyesconfig as well as a few randconfigs on x86_64 and all
      configs in arch/arm/configs on arm.  I also checked that no new warnings were
      introduced by the patch (actually, some warnings are removed that were emitted
      by unnecessarily included header files).
      Signed-off-by: NTim Schmielau <tim@physik3.uni-rostock.de>
      Acked-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
      Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
      cd354f1a
  5. 13 2月, 2007 1 次提交
  6. 09 2月, 2007 1 次提交
  7. 08 2月, 2007 1 次提交
  8. 06 2月, 2007 5 次提交
    • J
      bonding: update version · 658f648a
      Jay Vosburgh 提交于
      	Update version number to reflect recent changes.
      Signed-off-by: NJay Vosburgh <fubar@us.ibm.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      658f648a
    • J
      bonding: modify sysfs support to permit multiple loads · 877cbd36
      Jay Vosburgh 提交于
      	The existing code would blindly attempt to create the
      bonding_masters file (in /sys/class/net) every time the module was
      loaded.  When the module is loaded multiple times (which is the
      historical method used by initscripts and sysconfig to create multiple
      bonding interfaces), this caused load failure of the second module load
      attempt, as the creation request would fail.
      
      	This changes the code to note the failure, arrange to not remove
      the bonding_masters file upon module exit, and then return success.
      
      	Bonding interfaces created by the second or subsequent loads of
      the module will not exist in bonding_masters.  This is not a significant
      change, as previously only the interfaces from the most recent load of
      the module would be listed.  Both situations are less than optimal, but
      this case permits compatibility with existing distro configuration
      scripts, and is consistent.
      
      	Note that previously, the sysfs create request would overwrite
      the exsting bonding_masters file and succeed, allowing multiple loads of
      the module.  The sysfs code has recently changed to return an error if
      the file being created already exists.
      
      	Patrick McHardy <kaber@trash.net>, who reported this problem,
      observed crashes on the old kernel (before sysfs checked for
      duplicates).  I did not experience such crashes, but this change should
      resolve them.
      Signed-off-by: NJay Vosburgh <fubar@us.ibm.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      877cbd36
    • J
      bonding: fix error check in sysfs creation · 09c89279
      Jay Vosburgh 提交于
      	The existing code did not correctly handle failures to create
      the per-interface sysfs group for bonding.
      
      	Modified code to notice errors, and correctly unwind.
      Signed-off-by: NJay Vosburgh <fubar@us.ibm.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      09c89279
    • J
      bonding: fix device name allocation error · e4b91c48
      Jay Vosburgh 提交于
      	The code to select names for the bonding interfaces was, for the
      non-sysfs creation case, always using a hard-coded set of bond0, bond1,
      etc, up to max_bonds.  This caused conflicts for the second or
      subsequent loads of the module.
      
      	Changed the code to obtain device names from dev_alloc_name().
      Signed-off-by: NJay Vosburgh <fubar@us.ibm.com>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      e4b91c48
    • A
      bonding.h: "extern inline" -> "static inline" · 079ca7da
      Adrian Bunk 提交于
      "extern inline" generates a warning with -Wmissing-prototypes and I'm
      currently working on getting the kernel cleaned up for adding this to
      the CFLAGS since it will help us to avoid a nasty class of runtime
      errors.
      
      If there are places that really need a forced inline, __always_inline
      would be the correct solution.
      Signed-off-by: NAdrian Bunk <bunk@stusta.de>
      Signed-off-by: NJeff Garzik <jeff@garzik.org>
      079ca7da
  9. 30 1月, 2007 1 次提交
  10. 05 12月, 2006 1 次提交
  11. 30 11月, 2006 1 次提交
  12. 11 11月, 2006 1 次提交
  13. 05 10月, 2006 1 次提交
  14. 29 9月, 2006 1 次提交
  15. 28 9月, 2006 1 次提交
  16. 26 9月, 2006 10 次提交
  17. 14 9月, 2006 1 次提交
  18. 01 7月, 2006 1 次提交
  19. 18 6月, 2006 1 次提交