mlxsw: spectrum_router: Add mlxsw_sp_ipip_ops
authorPetr Machata <petrm@mellanox.com>
Sat, 2 Sep 2017 21:49:17 +0000 (23:49 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 4 Sep 2017 03:23:25 +0000 (20:23 -0700)
commit38ebc0f45474abf4c4229ec3218915576475af85
treee5fdb331aa21651721dfb906cde15c2c346ad4b7
parentff1f06ce9df9deea690a3f16ded77e0b665acffd
mlxsw: spectrum_router: Add mlxsw_sp_ipip_ops

Details of individual tunnel types are kept in an array of
mlxsw_sp_ipip_ops objects. Follow-up patches will use the list to
determine whether a constructed RIF should be a loopback, and to decide
whether a next hop references a tunnel.

The list is currently empty, follow-up patches will add support for GRE.

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/Makefile
drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.c [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlxsw/spectrum_ipip.h [new file with mode: 0644]
drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c