Thread (3 messages) 3 messages, 2 authors, 2017-03-31

Re: [PATCH nf-next 1/1] net: tcp: Refine the __tcp_select_window

From: David Miller <davem@davemloft.net>
Date: 2017-03-30 22:42:12

From: gfree.wind@foxmail.com
Date: Thu, 30 Mar 2017 06:49:19 +0800
From: Gao Feng <redacted>

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 <redacted>
Applied, but please do not target non-netfilter patches using
"nf-next" in your Subject lines.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help