]> git.baikalelectronics.ru Git - kernel.git/commit
ip_tunnel: Do not use mark in skb by default
authorThomas Winter <Thomas.Winter@alliedtelesis.co.nz>
Sun, 25 Feb 2018 21:28:10 +0000 (10:28 +1300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 26 Feb 2018 20:22:59 +0000 (15:22 -0500)
commit83f4bc4792de863f65d2204a532a416811abe4a9
tree069a46bc63c378cb140c7f7ce5f6a34cd5bc65f5
parent88660ba0eaee9c7e6a9cc1c2c582334d70c1d0b6
ip_tunnel: Do not use mark in skb by default

This reverts commit bb12a6aab817cb3a27f5b10bb978a4eacf1455b6.

skb->mark contains the mark the encapsulated traffic which
can result in incorrect routing decisions being made such
as routing loops if the route chosen is via tunnel itself.
The correct method should be to use tunnel->fwmark.

Signed-off-by: Thomas Winter <thomas.winter@alliedtelesis.co.nz>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Alexey Kuznetsov <kuznet@ms2.inr.ac.ru>
Cc: Hideaki YOSHIFUJI <yoshfuji@linux-ipv6.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/ip_tunnel.c