1. 24 1月, 2012 5 次提交
  2. 23 1月, 2012 20 次提交
  3. 21 1月, 2012 3 次提交
    • N
      tcp: fix undo after RTO for CUBIC · 5a45f008
      Neal Cardwell 提交于
      This patch fixes CUBIC so that cwnd reductions made during RTOs can be
      undone (just as they already can be undone when using the default/Reno
      behavior).
      
      When undoing cwnd reductions, BIC-derived congestion control modules
      were restoring the cwnd from last_max_cwnd. There were two problems
      with using last_max_cwnd to restore a cwnd during undo:
      
      (a) last_max_cwnd was set to 0 on state transitions into TCP_CA_Loss
      (by calling the module's reset() functions), so cwnd reductions from
      RTOs could not be undone.
      
      (b) when fast_covergence is enabled (which it is by default)
      last_max_cwnd does not actually hold the value of snd_cwnd before the
      loss; instead, it holds a scaled-down version of snd_cwnd.
      
      This patch makes the following changes:
      
      (1) upon undo, revert snd_cwnd to ca->loss_cwnd, which is already, as
      the existing comment notes, the "congestion window at last loss"
      
      (2) stop forgetting ca->loss_cwnd on TCP_CA_Loss events
      
      (3) use ca->last_max_cwnd to check if we're in slow start
      Signed-off-by: NNeal Cardwell <ncardwell@google.com>
      Acked-by: NStephen Hemminger <shemminger@vyatta.com>
      Acked-by: NSangtae Ha <sangtae.ha@gmail.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5a45f008
    • N
      tcp: fix undo after RTO for BIC · fc16dcd8
      Neal Cardwell 提交于
      This patch fixes BIC so that cwnd reductions made during RTOs can be
      undone (just as they already can be undone when using the default/Reno
      behavior).
      
      When undoing cwnd reductions, BIC-derived congestion control modules
      were restoring the cwnd from last_max_cwnd. There were two problems
      with using last_max_cwnd to restore a cwnd during undo:
      
      (a) last_max_cwnd was set to 0 on state transitions into TCP_CA_Loss
      (by calling the module's reset() functions), so cwnd reductions from
      RTOs could not be undone.
      
      (b) when fast_covergence is enabled (which it is by default)
      last_max_cwnd does not actually hold the value of snd_cwnd before the
      loss; instead, it holds a scaled-down version of snd_cwnd.
      
      This patch makes the following changes:
      
      (1) upon undo, revert snd_cwnd to ca->loss_cwnd, which is already, as
      the existing comment notes, the "congestion window at last loss"
      
      (2) stop forgetting ca->loss_cwnd on TCP_CA_Loss events
      
      (3) use ca->last_max_cwnd to check if we're in slow start
      Signed-off-by: NNeal Cardwell <ncardwell@google.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      fc16dcd8
    • R
      enic: fix compile when CONFIG_PCI_IOV is not enabled · b67f231d
      Roopa Prabhu 提交于
      reverting back change that access enic->num_vfs outside
      CONFIG_PCI_IOV
      Reported-by: NRandy Dunlap <rdunlap@xenotime.net>
      Signed-off-by: NRoopa Prabhu <roprabhu@cisco.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b67f231d
  4. 20 1月, 2012 9 次提交
  5. 19 1月, 2012 3 次提交
    • T
      net: ftgmac100/ftmac100: add missing interrupt.h include · 17f1bbca
      Thomas Faber 提交于
      Fixes compilation failure of these modules due to missing
      irqreturn_t type for the ft(g)mac100_interrupt definition.
      Signed-off-by: NThomas Faber <thfabba@gmx.de>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      17f1bbca
    • J
      bonding: fix enslaving in alb mode when link down · b924551b
      Jiri Bohac 提交于
      bond_alb_init_slave() is called from bond_enslave() and sets the slave's MAC
      address. This is done differently for TLB and ALB modes.
      bond->alb_info.rlb_enabled is used to discriminate between the two modes but
      this flag may be uninitialized if the slave is being enslaved prior to calling
      bond_open() -> bond_alb_initialize() on the master.
      
      It turns out all the callers of alb_set_slave_mac_addr() pass
      bond->alb_info.rlb_enabled as the hw parameter.
      
      This patch cleans up the unnecessary parameter of alb_set_slave_mac_addr() and
      makes the function decide based on the bonding mode instead, which fixes the
      above problem.
      Reported-by: NNarendra K <Narendra_K@Dell.com>
      Signed-off-by: NJiri Bohac <jbohac@suse.cz>
      Signed-off-by: NJay Vosburgh <fubar@us.ibm.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      b924551b
    • D
      pch_gbe: Do not abort probe on bad MAC · 2b53d078
      Darren Hart 提交于
      If the MAC is invalid or not implemented, do not abort the probe. Issue
      a warning and prevent bringing the interface up until a MAC is set manually
      (via ifconfig $IFACE hw ether $MAC).
      
      Tested on two platforms, one with a valid MAC, the other without a MAC. The real
      MAC is used if present, the interface fails to come up until the MAC is set on
      the other. They successfully get an IP over DHCP and pass a simple ping and
      login over ssh test.
      
      This is meant to allow the Inforce SYS940X development board:
      http://www.inforcecomputing.com/SYS940X_ECX.html
      (and others suffering from a missing MAC) to work with the mainline kernel.
      Without this patch, the probe will fail and the interface will not be created,
      preventing the user from configuring the MAC manually.
      
      This does not make any attempt to address a missing or invalid MAC for the
      pch_phub driver.
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      CC: Arjan van de Ven <arjan@linux.intel.com>
      CC: Alan Cox <alan@linux.intel.com>
      CC: Tomoya MORINAGA <tomoya.rohm@gmail.com>
      CC: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
      CC: "David S. Miller" <davem@davemloft.net>
      CC: Paul Gortmaker <paul.gortmaker@windriver.com>
      CC: Jon Mason <jdmason@kudzu.us>
      CC: netdev@vger.kernel.org
      CC: Mark Brown <broonie@opensource.wolfsonmicro.com>
      CC: David Laight <David.Laight@ACULAB.COM>
      CC: Joe Perches <joe@perches.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      2b53d078