aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/dsa/dsa_loop.c
diff options
context:
space:
mode:
authorGao Feng <[email protected]>2017-03-29 22:49:19 +0000
committerDavid S. Miller <[email protected]>2017-03-30 22:41:32 +0000
commit1935299d9c946ac37eba3f820d2ce20885ec0739 (patch)
treeccdac1cedab8d57aa7cfbfbf6e16fbd65d1041db /drivers/net/dsa/dsa_loop.c
parentnet: dsa: mv88e6xxx: debug ATU Age Time (diff)
downloadkernel-1935299d9c946ac37eba3f820d2ce20885ec0739.tar.gz
kernel-1935299d9c946ac37eba3f820d2ce20885ec0739.zip
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/dsa/dsa_loop.c')
0 files changed, 0 insertions, 0 deletions