diff options
author | Gao Feng | 2017-03-30 00:49:19 +0200 |
---|---|---|
committer | David S. Miller | 2017-03-31 00:41:32 +0200 |
commit | 1935299d9c946ac37eba3f820d2ce20885ec0739 (patch) | |
tree | ccdac1cedab8d57aa7cfbfbf6e16fbd65d1041db /drivers/net/ethernet/ibm/ibmvnic.c | |
parent | net: dsa: mv88e6xxx: debug ATU Age Time (diff) | |
download | kernel-qcow2-linux-1935299d9c946ac37eba3f820d2ce20885ec0739.tar.gz kernel-qcow2-linux-1935299d9c946ac37eba3f820d2ce20885ec0739.tar.xz kernel-qcow2-linux-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 <fgao@ikuai8.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ibm/ibmvnic.c')
0 files changed, 0 insertions, 0 deletions