From: Sergey Popov <pinkbyte@gentoo.org>
To: Dmitry Popov <ixaphire@qrator.net>
Cc: Tom Herbert <therbert@google.com>, netdev@vger.kernel.org
Subject: Re: Issue with GRE tunnel, created with "local any" on kernel 3.14
Date: Thu, 31 Jul 2014 10:29:00 +0400 [thread overview]
Message-ID: <53D9E22C.6030804@gentoo.org> (raw)
In-Reply-To: <20140718223204.9422aa8df81f7ac5187588bb@qrator.net>
[-- Attachment #1: Type: text/plain, Size: 1532 bytes --]
18.07.2014 22:32, Dmitry Popov пишет:
> On Fri, 18 Jul 2014 17:01:23 +0400
> Sergey Popov <pinkbyte@gentoo.org> wrote:
>
>> Hi. I have updated kernel on one of my servers to 3.14 and hit strange
>> issue:
>
>> serv1(172.30.0.100) <-> serv2(172.30.0.251)
>
>> Gre tunnel(serv1):
>> ip tunnel add tun_test mode gre remote 172.30.0.251 local any ttl 225
>> ifconfig tun_test 192.168.0.1/30
>>
>> Gre tunnel(serv2):
>> ip tunnel add tun_test mode gre remote 172.30.0.100 local any ttl 225
>> ifconfig tun_test 192.168.0.2/30
>
>> 16:49:39.340971 IP 0.0.0.0 > 172.30.0.100: GREv0, length 88: IP
>> 192.168.0.2 > 192.168.0.1: ICMP echo request, id 5259, seq 7, length 64
>
> Hi!
>
> It seems we have this issue since 7d442fab0 (ipv4: Cache dst in tunnels).
> It is in ip_tunnel_xmit: fl4 is initialized with saddr = 0 in
> init_tunnel_flow(&fl4, protocol, dst, ...), net/ipv4/ip_tunnel.c:610,
> and isn't changed until iptunnel_xmit(skb->sk, ...), line 677, because
> connected = true and rt is almost always cached.
>
> I have no patch to fix this issue, but as a workaround, you can use
> ip tunnel change tun_test tos inherit.
Thanks, your workaround works as expected if tos value defined
explicitly. Though, I do not understand why: iproute2 documentation says
that default tos value in 'ip tunnel' command is already 'inherit'.
--
Best regards, Sergey Popov
Gentoo developer
Gentoo Desktop Effects project lead
Gentoo Qt project lead
Gentoo Proxy maintainers project lead
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 538 bytes --]
next prev parent reply other threads:[~2014-07-31 6:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-18 13:01 Issue with GRE tunnel, created with "local any" on kernel 3.14 Sergey Popov
2014-07-18 18:32 ` Dmitry Popov
2014-07-31 6:29 ` Sergey Popov [this message]
2014-07-31 8:47 ` Dmitry Popov
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=53D9E22C.6030804@gentoo.org \
--to=pinkbyte@gentoo.org \
--cc=ixaphire@qrator.net \
--cc=netdev@vger.kernel.org \
--cc=therbert@google.com \
/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