diff options
author | 2018-02-13 11:26:09 +0100 | |
---|---|---|
committer | 2018-02-13 12:24:28 -0500 | |
commit | e437f3b62d0844c4073c9e13263413748fa69093 (patch) | |
tree | 6f0d9db02b826a665e7567fd192e47b118aa88a1 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | mlxsw: spectrum_ipip: Add a forgotten include (diff) | |
download | linux-dev-e437f3b62d0844c4073c9e13263413748fa69093.tar.xz linux-dev-e437f3b62d0844c4073c9e13263413748fa69093.zip |
mlxsw: spectrum: Distinguish between IPv4/6 tunnels
struct ip_tunnel_parm, where GRE and several other tunnel types hold
information, is IPv4-specific. The current router / ipip code in mlxsw
however uses it as if it were generic.
Make it clear that it's not. Rename many functions from _params_ to
_params4_. mlxsw_sp_ipip_parms_saddr() and _daddr() take a proto
argument to dispatch on it. Move the dispatch logic to
mlxsw_sp_ipip_netdev_saddr() and _daddr(), and replace with
single-protocol functions.
In struct mlxsw_sp_ipip_entry, move the "parms" field to a (for the time
being, singleton) union. Update users throughout.
Signed-off-by: Petr Machata <petrm@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