Lines Matching refs:mlxsw_sp
65 struct mlxsw_sp *mlxsw_sp; member
249 struct mlxsw_sp *mlxsw_sp = mr_table->mlxsw_sp; in mlxsw_sp_mr_route_write() local
251 struct mlxsw_sp_mr *mr = mlxsw_sp->mr; in mlxsw_sp_mr_route_write()
271 err = mr->mr_ops->route_create(mlxsw_sp, mr->priv, in mlxsw_sp_mr_route_write()
277 err = mr->mr_ops->route_update(mlxsw_sp, mr_route->route_priv, in mlxsw_sp_mr_route_write()
288 struct mlxsw_sp *mlxsw_sp = mr_table->mlxsw_sp; in mlxsw_sp_mr_route_erase() local
289 struct mlxsw_sp_mr *mr = mlxsw_sp->mr; in mlxsw_sp_mr_route_erase()
291 mr->mr_ops->route_destroy(mlxsw_sp, mr->priv, mr_route->route_priv); in mlxsw_sp_mr_route_erase()
412 dev_warn(mr_table->mlxsw_sp->bus_info->dev, in mlxsw_sp_mr_route_add()
472 struct mlxsw_sp *mlxsw_sp = mr_table->mlxsw_sp; in mlxsw_sp_mr_route_ivif_resolve() local
474 struct mlxsw_sp_mr *mr = mlxsw_sp->mr; in mlxsw_sp_mr_route_ivif_resolve()
484 err = mr->mr_ops->route_irif_update(mlxsw_sp, rve->mr_route->route_priv, in mlxsw_sp_mr_route_ivif_resolve()
489 err = mr->mr_ops->route_action_update(mlxsw_sp, in mlxsw_sp_mr_route_ivif_resolve()
507 struct mlxsw_sp *mlxsw_sp = mr_table->mlxsw_sp; in mlxsw_sp_mr_route_ivif_unresolve() local
508 struct mlxsw_sp_mr *mr = mlxsw_sp->mr; in mlxsw_sp_mr_route_ivif_unresolve()
510 mr->mr_ops->route_action_update(mlxsw_sp, rve->mr_route->route_priv, in mlxsw_sp_mr_route_ivif_unresolve()
521 struct mlxsw_sp *mlxsw_sp = mr_table->mlxsw_sp; in mlxsw_sp_mr_route_evif_resolve() local
523 struct mlxsw_sp_mr *mr = mlxsw_sp->mr; in mlxsw_sp_mr_route_evif_resolve()
532 err = mr->mr_ops->route_action_update(mlxsw_sp, in mlxsw_sp_mr_route_evif_resolve()
542 err = mr->mr_ops->route_erif_add(mlxsw_sp, in mlxsw_sp_mr_route_evif_resolve()
552 err = mr->mr_ops->route_min_mtu_update(mlxsw_sp, in mlxsw_sp_mr_route_evif_resolve()
565 mr->mr_ops->route_erif_del(mlxsw_sp, rve->mr_route->route_priv, in mlxsw_sp_mr_route_evif_resolve()
569 mr->mr_ops->route_action_update(mlxsw_sp, in mlxsw_sp_mr_route_evif_resolve()
580 struct mlxsw_sp *mlxsw_sp = mr_table->mlxsw_sp; in mlxsw_sp_mr_route_evif_unresolve() local
582 struct mlxsw_sp_mr *mr = mlxsw_sp->mr; in mlxsw_sp_mr_route_evif_unresolve()
599 mr->mr_ops->route_action_update(mlxsw_sp, in mlxsw_sp_mr_route_evif_unresolve()
605 mr->mr_ops->route_erif_del(mlxsw_sp, rve->mr_route->route_priv, rifi); in mlxsw_sp_mr_route_evif_unresolve()
741 struct mlxsw_sp *mlxsw_sp = mr_table->mlxsw_sp; in mlxsw_sp_mr_rif_mtu_update() local
743 struct mlxsw_sp_mr *mr = mlxsw_sp->mr; in mlxsw_sp_mr_rif_mtu_update()
758 mr->mr_ops->route_min_mtu_update(mlxsw_sp, in mlxsw_sp_mr_rif_mtu_update()
777 dev_warn(mr_table->mlxsw_sp->bus_info->dev, in mlxsw_sp_mr_route4_validate()
824 dev_warn(mr_table->mlxsw_sp->bus_info->dev, in mlxsw_sp_mr_route6_validate()
884 struct mlxsw_sp_mr_table *mlxsw_sp_mr_table_create(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_mr_table_create() argument
898 struct mlxsw_sp_mr *mr = mlxsw_sp->mr; in mlxsw_sp_mr_table_create()
909 mr_table->mlxsw_sp = mlxsw_sp; in mlxsw_sp_mr_table_create()
925 err = mr->mr_ops->route_create(mlxsw_sp, mr->priv, in mlxsw_sp_mr_table_create()
942 struct mlxsw_sp *mlxsw_sp = mr_table->mlxsw_sp; in mlxsw_sp_mr_table_destroy() local
943 struct mlxsw_sp_mr *mr = mlxsw_sp->mr; in mlxsw_sp_mr_table_destroy()
947 mr->mr_ops->route_destroy(mlxsw_sp, mr->priv, in mlxsw_sp_mr_table_destroy()
977 static void mlxsw_sp_mr_route_stats_update(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_mr_route_stats_update() argument
980 struct mlxsw_sp_mr *mr = mlxsw_sp->mr; in mlxsw_sp_mr_route_stats_update()
986 mr->mr_ops->route_stats(mlxsw_sp, mr_route->route_priv, &packets, in mlxsw_sp_mr_route_stats_update()
1006 mlxsw_sp_mr_route_stats_update(mr_table->mlxsw_sp, in mlxsw_sp_mr_stats_update()
1014 int mlxsw_sp_mr_init(struct mlxsw_sp *mlxsw_sp, in mlxsw_sp_mr_init() argument
1025 mlxsw_sp->mr = mr; in mlxsw_sp_mr_init()
1028 err = mr_ops->init(mlxsw_sp, mr->priv); in mlxsw_sp_mr_init()
1042 void mlxsw_sp_mr_fini(struct mlxsw_sp *mlxsw_sp) in mlxsw_sp_mr_fini() argument
1044 struct mlxsw_sp_mr *mr = mlxsw_sp->mr; in mlxsw_sp_mr_fini()
1047 mr->mr_ops->fini(mlxsw_sp, mr->priv); in mlxsw_sp_mr_fini()