[lkml]   [2006]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    Patch in this message
    Subject[patch 06/37] Allow per-route window scale limiting
    -stable review patch.  If anyone has any objections, please let us know.

    From: Stephen Hemminger <>

    There are black box devices out there, routers and firewalls and
    whatnot, that simply cannot grok the TCP window scaling option

    People should and do bark at the site running the device causing
    the problems, but in the mean time folks do want a way to deal
    with the problem. We don't want them to turn off window scaling
    completely as that hurts performance of connections that would run
    just fine with window scaling enabled.

    So give a way to do this on a per-route basis by limiting the
    window scaling by the per-connection window clamp. Stephen's
    changelog message explains how to do this using a route metric.

    [TCP]: Limit window scaling if window is clamped.

    This small change allows for easy per-route workarounds for broken hosts or
    middleboxes that are not compliant with TCP standards for window scaling.
    Rather than having to turn off window scaling globally. This patch allows
    reducing or disabling window scaling if window clamp is present.

    Example: Mark Lord reported a problem with 2.6.17 kernel being unable to

    # ip route add via window 65535

    Signed-off-by: Stephen Hemminger <>
    Signed-off-by: David S. Miller <>
    Signed-off-by: Greg Kroah-Hartman <>

    net/ipv4/tcp_output.c | 1 +
    1 file changed, 1 insertion(+)

    --- linux-
    +++ linux-
    @@ -197,6 +197,7 @@ void tcp_select_initial_window(int __spa
    * See RFC1323 for an explanation of the limit to 14
    space = max_t(u32, sysctl_tcp_rmem[2], sysctl_rmem_max);
    + space = min_t(u32, space, *window_clamp);
    while (space > 65535 && (*rcv_wscale) < 14) {
    space >>= 1;
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2006-09-07 01:19    [W:2.254 / U:1.352 seconds]
    ©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site