RE: [PATCH net-next 1/1] net: ipv4: Refine the ipv4_default_advmss

2017-04-11 Thread Gao Feng
> -Original Message- > From: Joe Perches [mailto:j...@perches.com] > Sent: Wednesday, April 12, 2017 10:03 AM > To: gfree.w...@foxmail.com; da...@davemloft.net; kuz...@ms2.inr.ac.ru; > jmor...@namei.org; netdev@vger.kernel.org > Cc: Gao Feng > Subject: Re: [PATCH ne

Re: [PATCH net-next 1/1] net: ipv4: Refine the ipv4_default_advmss

2017-04-11 Thread Joe Perches
On Wed, 2017-04-12 at 09:36 +0800, gfree.w...@foxmail.com wrote: > From: Gao Feng > > 1. Don't get the metric RTAX_ADVMSS of dst. > There are two reasons. > 1) Its caller dst_metric_advmss has already invoke dst_metric_advmss > before invoke default_advmss. > 2) The ipv4_default_advmss is used to

[PATCH net-next 1/1] net: ipv4: Refine the ipv4_default_advmss

2017-04-11 Thread gfree . wind
From: Gao Feng 1. Don't get the metric RTAX_ADVMSS of dst. There are two reasons. 1) Its caller dst_metric_advmss has already invoke dst_metric_advmss before invoke default_advmss. 2) The ipv4_default_advmss is used to get the default mss, it should not try to get the metric like ip6_default_advm