1. 20 11月, 2007 5 次提交
  2. 19 11月, 2007 1 次提交
  3. 16 11月, 2007 2 次提交
  4. 15 11月, 2007 7 次提交
  5. 14 11月, 2007 3 次提交
    • I
      [TCP] FRTO: Plug potential LOST-bit leak · 23aeeec3
      Ilpo Jrvinen 提交于
      It might be possible that, in some extreme scenario that
      I just cannot now construct in my mind, end_seq <=
      frto_highmark check does not match causing the lost_out
      and LOST bits become out-of-sync due to clearing and
      recounting in the loop.
      
      This may fix LOST-bit leak reported by Chazarain Guillaume
      <guichaz@yahoo.fr>.
      Signed-off-by: NIlpo Jrvinen <ilpo.jarvinen@helsinki.fi>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      23aeeec3
    • I
      [TCP] FRTO: Limit snd_cwnd if TCP was application limited · 746aa32d
      Ilpo Jrvinen 提交于
      Otherwise TCP might violate packet ordering principles that FRTO
      is based on. If conventional recovery path is chosen, this won't
      be significant at all. In practice, any small enough value will
      be sufficient to provide proper operation for FRTO, yet other
      users of snd_cwnd might benefit from a "close enough" value.
      
      FRTO's formula is now equal to what tcp_enter_cwr() uses.
      
      FRTO used to check application limitedness a bit differently but
      I changed that in commit 575ee714
      and as a result checking for application limitedness became
      completely non-existing.
      Signed-off-by: NIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      746aa32d
    • P
      [PKT_SCHED]: Check subqueue status before calling hard_start_xmit · 5f1a485d
      Peter P Waskiewicz Jr 提交于
      The only qdiscs that check subqueue state before dequeue'ing are PRIO
      and RR.  The other qdiscs, including the default pfifo_fast qdisc,
      will allow traffic bound for subqueue 0 through to hard_start_xmit.
      The check for netif_queue_stopped() is done above in pkt_sched.h, so
      it is unnecessary for qdisc_restart().  However, if the underlying
      driver is multiqueue capable, and only sets queue states on subqueues,
      this will allow packets to enter the driver when it's currently unable
      to process packets, resulting in expensive requeues and driver
      entries.  This patch re-adds the check for the subqueue status before
      calling hard_start_xmit, so we can try and avoid the driver entry when
      the queues are stopped.
      Signed-off-by: NPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
      Signed-off-by: NDavid S. Miller <davem@davemloft.net>
      5f1a485d
  6. 13 11月, 2007 12 次提交
  7. 12 11月, 2007 1 次提交
    • J
      Fix memory leak in discard case of sctp_sf_abort_violation() · 9abed245
      Jesper Juhl 提交于
      In net/sctp/sm_statefuns.c::sctp_sf_abort_violation() we may leak
      the storage allocated for 'abort' by returning from the function
      without using or freeing it. This happens in case
      "sctp_auth_recv_cid(SCTP_CID_ABORT, asoc)" is true and we jump to
      the 'discard' label.
      Spotted by the Coverity checker.
      
      The simple fix is to simply move the creation of the "abort chunk"
      to after the possible jump to the 'discard' label. This way we don't
      even have to allocate the memory at all in the problem case.
      Signed-off-by: NJesper Juhl <jesper.juhl@gmail.com>
      Signed-off-by: NVlad Yasevich <vladislav.yasevich@hp.com>
      9abed245
  8. 11 11月, 2007 9 次提交