commit | 1935299d9c946ac37eba3f820d2ce20885ec0739 | [log] [tgz] |
---|---|---|
author | Gao Feng <fgao@ikuai8.com> | Thu Mar 30 06:49:19 2017 +0800 |
committer | David S. Miller <davem@davemloft.net> | Thu Mar 30 15:41:32 2017 -0700 |
tree | ccdac1cedab8d57aa7cfbfbf6e16fbd65d1041db | |
parent | bae76dd95b69350f6342d8a4ea1bdeec4c218053 [diff] |
net: tcp: Refine the __tcp_select_window 1. Move the "window = tp->rcv_wnd;" into the condition block without tp->rx_opt.rcv_wscale. Because it is unnecessary when enable wscale; 2. Use the macro ALIGN instead of two statements. The two statements are used to make window align to 1<<wscale. Use the ALIGN is more clearer. 3. Use the rounddown to make codes clearer. Signed-off-by: Gao Feng <fgao@ikuai8.com> Signed-off-by: David S. Miller <davem@davemloft.net>