From: Eric Dumazet <eric.dumazet@gmail.com>
To: Alessandro Suardi <alessandro.suardi@gmail.com>
Cc: linux-kernel@vger.kernel.org, netdev <netdev@vger.kernel.org>
Subject: Re: regression: ip r change mss doesn't work in 2.6.38-git14
Date: Thu, 24 Mar 2011 17:15:40 +0100 [thread overview]
Message-ID: <1300983340.3747.44.camel@edumazet-laptop> (raw)
In-Reply-To: <AANLkTikZhT5LaA-UEXniDvkneH8JScaVaCaCd4LT59cV@mail.gmail.com>
Le jeudi 24 mars 2011 à 16:52 +0100, Alessandro Suardi a écrit :
> On Thu, Mar 24, 2011 at 4:21 PM, Eric Dumazet <eric.dumazet@gmail.com> wrote:
> > Le jeudi 24 mars 2011 à 16:08 +0100, Alessandro Suardi a écrit :
> >> After fixing the display issue thanks to Chris Wilson, I now have
> >> another problem
> >> (which didn't exist in 2.6.38-git2); most websites outside of my DSL link don't
> >> work properly (connection packet goes through, but the page load times out
> >> within Firefox) unless I do
> >>
> >> ip r change default via 192.168.1.1 dev eth1 advmss 1400
> >>
> >> This however doesn't change advmss anymore:
> >>
> >> [root@duff ~]# ip r
> >> default via 192.168.1.1 dev eth1
> >> 169.254.0.0/16 dev eth1 scope link metric 1004
> >> 192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.8
> >> [root@duff ~]# ip r change default via 192.168.1.1 dev eth1 advmss 1400
> >> [root@duff ~]# ip r
> >> default via 192.168.1.1 dev eth1
> >> 169.254.0.0/16 dev eth1 scope link metric 1004
> >> 192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.8
> >
> > Indeed, we'll take a look, thanks for the report.
> >
> > In the time being you can do :
> >
> > ip ro change default via 192.168.1.1 dev eth1 advmss 1400 mtu 1500
>
> Thanks - this one works for me.
>
> I'm available to test patches if needed, though I have a feeling you
> already have a handle on the issue and won't need that ;)
;)
I am testing following patch :
diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c
index 622ac4c..654ef5b 100644
--- a/net/ipv4/fib_semantics.c
+++ b/net/ipv4/fib_semantics.c
@@ -251,7 +251,7 @@ static struct fib_info *fib_find_info(const struct fib_info *nfi)
nfi->fib_prefsrc == fi->fib_prefsrc &&
nfi->fib_priority == fi->fib_priority &&
memcmp(nfi->fib_metrics, fi->fib_metrics,
- sizeof(fi->fib_metrics)) == 0 &&
+ sizeof(u32) * RTAX_MAX) == 0 &&
((nfi->fib_flags ^ fi->fib_flags) & ~RTNH_F_DEAD) == 0 &&
(nfi->fib_nhs == 0 || nh_comp(fi, nfi) == 0))
return fi;
next prev parent reply other threads:[~2011-03-24 16:15 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-24 15:08 regression: ip r change mss doesn't work in 2.6.38-git14 Alessandro Suardi
2011-03-24 15:21 ` Eric Dumazet
2011-03-24 15:52 ` Alessandro Suardi
2011-03-24 16:15 ` Eric Dumazet [this message]
2011-03-24 17:01 ` [PATCH] ipv4: fix fib metrics Eric Dumazet
2011-03-24 18:14 ` Alessandro Suardi
2011-03-24 18:45 ` Eric Dumazet
2011-03-24 22:11 ` Alessandro Suardi
2011-03-24 22:18 ` Eric Dumazet
2011-03-24 22:27 ` Alessandro Suardi
2011-03-24 22:32 ` Eric Dumazet
2011-03-24 22:36 ` David Miller
2011-03-24 22:44 ` Eric Dumazet
2011-03-25 0:12 ` Alessandro Suardi
2011-03-25 0:22 ` David Miller
2011-03-25 0:53 ` Kyle Moffett
2011-03-25 1:04 ` Alessandro Suardi
2011-03-25 1:25 ` Alessandro Suardi
2011-05-27 9:27 ` David Woodhouse
2011-05-28 22:00 ` Alessandro Suardi
2011-03-24 18:59 ` David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1300983340.3747.44.camel@edumazet-laptop \
--to=eric.dumazet@gmail.com \
--cc=alessandro.suardi@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox