diff options
| -rw-r--r-- | drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c index c16718d296d3..5189022a1c8c 100644 --- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c +++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c | |||
| @@ -5896,11 +5896,20 @@ static void mlxsw_sp_rifs_fini(struct mlxsw_sp *mlxsw_sp) | |||
| 5896 | kfree(mlxsw_sp->router->rifs); | 5896 | kfree(mlxsw_sp->router->rifs); |
| 5897 | } | 5897 | } |
| 5898 | 5898 | ||
| 5899 | static int | ||
| 5900 | mlxsw_sp_ipip_config_tigcr(struct mlxsw_sp *mlxsw_sp) | ||
| 5901 | { | ||
| 5902 | char tigcr_pl[MLXSW_REG_TIGCR_LEN]; | ||
| 5903 | |||
| 5904 | mlxsw_reg_tigcr_pack(tigcr_pl, true, 0); | ||
| 5905 | return mlxsw_reg_write(mlxsw_sp->core, MLXSW_REG(tigcr), tigcr_pl); | ||
| 5906 | } | ||
| 5907 | |||
| 5899 | static int mlxsw_sp_ipips_init(struct mlxsw_sp *mlxsw_sp) | 5908 | static int mlxsw_sp_ipips_init(struct mlxsw_sp *mlxsw_sp) |
| 5900 | { | 5909 | { |
| 5901 | mlxsw_sp->router->ipip_ops_arr = mlxsw_sp_ipip_ops_arr; | 5910 | mlxsw_sp->router->ipip_ops_arr = mlxsw_sp_ipip_ops_arr; |
| 5902 | INIT_LIST_HEAD(&mlxsw_sp->router->ipip_list); | 5911 | INIT_LIST_HEAD(&mlxsw_sp->router->ipip_list); |
| 5903 | return 0; | 5912 | return mlxsw_sp_ipip_config_tigcr(mlxsw_sp); |
| 5904 | } | 5913 | } |
| 5905 | 5914 | ||
| 5906 | static void mlxsw_sp_ipips_fini(struct mlxsw_sp *mlxsw_sp) | 5915 | static void mlxsw_sp_ipips_fini(struct mlxsw_sp *mlxsw_sp) |
