]> git.baikalelectronics.ru Git - kernel.git/commit
mlxsw: spectrum_router: Configure TIGCR on init
authorPetr Machata <petrm@mellanox.com>
Fri, 20 Oct 2017 07:16:16 +0000 (09:16 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Oct 2017 01:19:03 +0000 (02:19 +0100)
commit8bf219b4cba43c35003015a5505c543ce6100755
tree56c6335b03d29ccb45313b65d29e63329d44898e
parent9b42169c4299e2d4be8bfb9fb89a515e72ad75e9
mlxsw: spectrum_router: Configure TIGCR on init

Spectrum tunnels do not default to ttl of "inherit" like the Linux ones
do. Configure TIGCR on router init so that the TTL of tunnel packets is
copied from the overlay packets.

Fixes: 816a4ee03f89 ("mlxsw: spectrum_router: Support GRE tunnels")
Signed-off-by: Petr Machata <petrm@mellanox.com>
Reviewed-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c