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

2017-03-30 Thread Gao Feng
> f...@ikuai8.com > Subject: Re: [PATCH nf-next 1/1] net: tcp: Refine the __tcp_select_window > > From: gfree.w...@foxmail.com > Date: Thu, 30 Mar 2017 06:49:19 +0800 > > > From: Gao Feng > > > > 1. Move the "window = tp->rcv_wnd;" into the condition blo

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

2017-03-30 Thread David Miller
From: gfree.w...@foxmail.com Date: Thu, 30 Mar 2017 06:49:19 +0800 > From: Gao Feng > > 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 s

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

2017-03-29 Thread gfree . wind
From: Gao Feng 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< --- net/ipv4/tcp_output.c | 8 +++