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)
commitdcbda2820ff91a692338fed2c99bb9b1af37a05a
tree56c6335b03d29ccb45313b65d29e63329d44898e
parent14aefd9011f14ecf1f821fcd1754f009f4ab3df9
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: ee954d1a91b2 ("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