diff options
author | 2017-11-28 13:17:12 +0100 | |
---|---|---|
committer | 2017-11-28 09:55:47 -0500 | |
commit | cab43d9c877456d2d8feb77335327316d3de9871 (patch) | |
tree | 276497b7c0ea8501b4f29ef0a5a377dd4b35b135 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mlxsw: spectrum_router: Offload decap only for up tunnels (diff) | |
download | linux-dev-cab43d9c877456d2d8feb77335327316d3de9871.tar.xz linux-dev-cab43d9c877456d2d8feb77335327316d3de9871.zip |
mlxsw: spectrum_router: Demote tunnels on VRF migration
The mlxsw driver currently doesn't offload GRE tunnels if they have the
same local address and use the same underlay VRF. When such a situation
arises, the tunnels in conflict are demoted to slow path.
However, the current code only verifies this condition on tunnel
creation and tunnel change, not when a tunnel is moved to a different
VRF. When the tunnel has no bound device, underlay and overlay are the
same. Thus moving a tunnel moves the underlay as well, and that can
cause local address conflict.
So modify mlxsw_sp_netdevice_ipip_ol_vrf_event() to check if there are
any conflicting tunnels, and demote them if yes.
Fixes: af641713e97d ("mlxsw: spectrum_router: Onload conflicting 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>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions