commit | 589c49cbf9674808fd4ac9b7c17155abc0686f86 | [log] [tgz] |
---|---|---|
author | Gao Feng <fgao@ikuai8.com> | Tue Apr 04 21:09:48 2017 +0800 |
committer | David S. Miller <davem@davemloft.net> | Wed Apr 05 07:50:32 2017 -0700 |
tree | 7065ecc4a28f72a6fd73570a0b793d92fee62e88 | |
parent | 5e351410667ab0bf0dd1845730cba8b2211781e7 [diff] |
net: tcp: Define the TCP_MAX_WSCALE instead of literal number 14 Define one new macro TCP_MAX_WSCALE instead of literal number '14', and use U16_MAX instead of 65535 as the max value of TCP window. There is another minor change, use rounddown(space, mss) instead of (space / mss) * mss; Signed-off-by: Gao Feng <fgao@ikuai8.com> Signed-off-by: David S. Miller <davem@davemloft.net>