lkml.org 
[lkml]   [2007]   [Apr]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 17/31] Fix TCP receiver side SWS handling.
    -stable review patch.  If anyone has any objections, please let us know.

    ------------------
    From: John Heffner <jheffner@psc.edu>

    [TCP]: Do receiver-side SWS avoidance for rcvbuf < MSS.

    Signed-off-by: John Heffner <jheffner@psc.edu>
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

    ---
    net/ipv4/tcp_output.c | 3 +++
    1 file changed, 3 insertions(+)

    --- a/net/ipv4/tcp_output.c
    +++ b/net/ipv4/tcp_output.c
    @@ -1607,6 +1607,9 @@ u32 __tcp_select_window(struct sock *sk)
    */
    if (window <= free_space - mss || window > free_space)
    window = (free_space/mss)*mss;
    + else if (mss == full_space &&
    + free_space > window + full_space/2)
    + window = free_space;
    }

    return window;
    --
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-04-12 01:05    [W:0.021 / U:4.784 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site