net: tcp: Define the TCP_MAX_WSCALE instead of literal number 14
authorGao Feng <fgao@ikuai8.com>
Tue, 4 Apr 2017 13:09:48 +0000 (21:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Apr 2017 14:50:32 +0000 (07:50 -0700)
commit589c49cbf9674808fd4ac9b7c17155abc0686f86
tree7065ecc4a28f72a6fd73570a0b793d92fee62e88
parent5e351410667ab0bf0dd1845730cba8b2211781e7
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>
include/net/tcp.h
net/ipv4/tcp.c
net/ipv4/tcp_input.c
net/ipv4/tcp_output.c