diff options
author | Nir Dotan <nird@mellanox.com> | 2019-01-20 06:50:50 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-01-20 11:12:58 -0800 |
commit | 311596f554b739546fc390dac5e4cd0916d9fcc6 (patch) | |
tree | 0ca3292e77829431b193f9bb71143a2360c7c2fe /drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c | |
parent | 73b8f493c8863711989174193cbd67b34ac1a350 (diff) | |
download | linux-stable-311596f554b739546fc390dac5e4cd0916d9fcc6.tar.gz linux-stable-311596f554b739546fc390dac5e4cd0916d9fcc6.tar.bz2 linux-stable-311596f554b739546fc390dac5e4cd0916d9fcc6.zip |
mlxsw: spectrum_router: Update tunnel decap properties
Spectrum-2 requires to specify the egress RIF when setting tunnel decap
properties. Add a method for accessing the underlay RIF index and then use
it when setting decap properties.
Signed-off-by: Nir Dotan <nird@mellanox.com>
Reviewed-by: Petr Machata <petrm@mellanox.com>
Signed-off-by: Ido Schimmel <idosch@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c index 4316afc2c043..bee9aeb0a07e 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c @@ -6263,6 +6263,11 @@ u16 mlxsw_sp_ipip_lb_ul_vr_id(const struct mlxsw_sp_rif_ipip_lb *lb_rif) return ul_vr->id; } +u16 mlxsw_sp_ipip_lb_ul_rif_id(const struct mlxsw_sp_rif_ipip_lb *lb_rif) +{ + return lb_rif->ul_rif_id; +} + int mlxsw_sp_rif_dev_ifindex(const struct mlxsw_sp_rif *rif) { return rif->dev->ifindex; |