/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_mr.h | 46 void *route_priv, 48 int (*route_update)(struct mlxsw_sp *mlxsw_sp, void *route_priv, 50 int (*route_stats)(struct mlxsw_sp *mlxsw_sp, void *route_priv, 52 int (*route_action_update)(struct mlxsw_sp *mlxsw_sp, void *route_priv, 54 int (*route_min_mtu_update)(struct mlxsw_sp *mlxsw_sp, void *route_priv, 56 int (*route_irif_update)(struct mlxsw_sp *mlxsw_sp, void *route_priv, 58 int (*route_erif_add)(struct mlxsw_sp *mlxsw_sp, void *route_priv, 60 int (*route_erif_del)(struct mlxsw_sp *mlxsw_sp, void *route_priv, 63 void *route_priv);
|
H A D | spectrum_mr_tcam.c | 280 void *route_priv, in mlxsw_sp_mr_tcam_route_create() 284 struct mlxsw_sp_mr_tcam_route *route = route_priv; in mlxsw_sp_mr_tcam_route_create() 344 void *priv, void *route_priv) in mlxsw_sp_mr_tcam_route_destroy() 347 struct mlxsw_sp_mr_tcam_route *route = route_priv; in mlxsw_sp_mr_tcam_route_destroy() 358 void *route_priv, u64 *packets, in mlxsw_sp_mr_tcam_route_stats() 361 struct mlxsw_sp_mr_tcam_route *route = route_priv; in mlxsw_sp_mr_tcam_route_stats() 369 void *route_priv, in mlxsw_sp_mr_tcam_route_action_update() 373 struct mlxsw_sp_mr_tcam_route *route = route_priv; in mlxsw_sp_mr_tcam_route_action_update() 402 void *route_priv, u16 min_mtu) in mlxsw_sp_mr_tcam_route_min_mtu_update() 405 struct mlxsw_sp_mr_tcam_route *route = route_priv; in mlxsw_sp_mr_tcam_route_min_mtu_update() 279 mlxsw_sp_mr_tcam_route_create(struct mlxsw_sp *mlxsw_sp, void *priv, void *route_priv, struct mlxsw_sp_mr_route_params *route_params) mlxsw_sp_mr_tcam_route_create() argument 343 mlxsw_sp_mr_tcam_route_destroy(struct mlxsw_sp *mlxsw_sp, void *priv, void *route_priv) mlxsw_sp_mr_tcam_route_destroy() argument 357 mlxsw_sp_mr_tcam_route_stats(struct mlxsw_sp *mlxsw_sp, void *route_priv, u64 *packets, u64 *bytes) mlxsw_sp_mr_tcam_route_stats() argument 368 mlxsw_sp_mr_tcam_route_action_update(struct mlxsw_sp *mlxsw_sp, void *route_priv, enum mlxsw_sp_mr_route_action route_action) mlxsw_sp_mr_tcam_route_action_update() argument 401 mlxsw_sp_mr_tcam_route_min_mtu_update(struct mlxsw_sp *mlxsw_sp, void *route_priv, u16 min_mtu) mlxsw_sp_mr_tcam_route_min_mtu_update() argument 434 mlxsw_sp_mr_tcam_route_irif_update(struct mlxsw_sp *mlxsw_sp, void *route_priv, u16 irif_index) mlxsw_sp_mr_tcam_route_irif_update() argument 445 mlxsw_sp_mr_tcam_route_erif_add(struct mlxsw_sp *mlxsw_sp, void *route_priv, u16 erif_index) mlxsw_sp_mr_tcam_route_erif_add() argument 463 mlxsw_sp_mr_tcam_route_erif_del(struct mlxsw_sp *mlxsw_sp, void *route_priv, u16 erif_index) mlxsw_sp_mr_tcam_route_erif_del() argument 520 mlxsw_sp_mr_tcam_route_update(struct mlxsw_sp *mlxsw_sp, void *route_priv, struct mlxsw_sp_mr_route_info *route_info) mlxsw_sp_mr_tcam_route_update() argument [all...] |
H A D | spectrum2_mr_tcam.c | 207 void *route_priv, in mlxsw_sp2_mr_tcam_route_create() 212 struct mlxsw_sp2_mr_route *mr_route = route_priv; in mlxsw_sp2_mr_tcam_route_create() 224 (unsigned long) route_priv, afa_block, in mlxsw_sp2_mr_tcam_route_create() 243 void *route_priv, in mlxsw_sp2_mr_tcam_route_destroy() 255 (unsigned long) route_priv); in mlxsw_sp2_mr_tcam_route_destroy() 265 void *route_priv, in mlxsw_sp2_mr_tcam_route_update() 269 struct mlxsw_sp2_mr_route *mr_route = route_priv; in mlxsw_sp2_mr_tcam_route_update() 279 (unsigned long) route_priv); in mlxsw_sp2_mr_tcam_route_update() 206 mlxsw_sp2_mr_tcam_route_create(struct mlxsw_sp *mlxsw_sp, void *priv, void *route_priv, struct mlxsw_sp_mr_route_key *key, struct mlxsw_afa_block *afa_block, enum mlxsw_sp_mr_route_prio prio) mlxsw_sp2_mr_tcam_route_create() argument 242 mlxsw_sp2_mr_tcam_route_destroy(struct mlxsw_sp *mlxsw_sp, void *priv, void *route_priv, struct mlxsw_sp_mr_route_key *key) mlxsw_sp2_mr_tcam_route_destroy() argument 264 mlxsw_sp2_mr_tcam_route_update(struct mlxsw_sp *mlxsw_sp, void *route_priv, struct mlxsw_sp_mr_route_key *key, struct mlxsw_afa_block *afa_block) mlxsw_sp2_mr_tcam_route_update() argument
|
H A D | spectrum_mr.c | 85 void *route_priv; member 264 mr_route->route_priv = kzalloc(mr->mr_ops->route_priv_size, in mlxsw_sp_mr_route_write() 266 if (!mr_route->route_priv) { in mlxsw_sp_mr_route_write() 275 mr_route->route_priv, in mlxsw_sp_mr_route_write() 278 kfree(mr_route->route_priv); in mlxsw_sp_mr_route_write() 280 err = mr->mr_ops->route_update(mlxsw_sp, mr_route->route_priv, in mlxsw_sp_mr_route_write() 294 mr->mr_ops->route_destroy(mlxsw_sp, mr->priv, mr_route->route_priv); in mlxsw_sp_mr_route_erase() 295 kfree(mr_route->route_priv); in mlxsw_sp_mr_route_erase() 406 /* On replace case, make the route point to the new route_priv. in mlxsw_sp_mr_route_add() 412 mr_route->route_priv in mlxsw_sp_mr_route_add() [all...] |
H A D | spectrum1_mr_tcam.c | 123 void *route_priv, in mlxsw_sp1_mr_tcam_route_create() 128 struct mlxsw_sp1_mr_tcam_route *route = route_priv; in mlxsw_sp1_mr_tcam_route_create() 150 void *route_priv, in mlxsw_sp1_mr_tcam_route_destroy() 153 struct mlxsw_sp1_mr_tcam_route *route = route_priv; in mlxsw_sp1_mr_tcam_route_destroy() 162 void *route_priv, in mlxsw_sp1_mr_tcam_route_update() 166 struct mlxsw_sp1_mr_tcam_route *route = route_priv; in mlxsw_sp1_mr_tcam_route_update() 122 mlxsw_sp1_mr_tcam_route_create(struct mlxsw_sp *mlxsw_sp, void *priv, void *route_priv, struct mlxsw_sp_mr_route_key *key, struct mlxsw_afa_block *afa_block, enum mlxsw_sp_mr_route_prio prio) mlxsw_sp1_mr_tcam_route_create() argument 149 mlxsw_sp1_mr_tcam_route_destroy(struct mlxsw_sp *mlxsw_sp, void *priv, void *route_priv, struct mlxsw_sp_mr_route_key *key) mlxsw_sp1_mr_tcam_route_destroy() argument 161 mlxsw_sp1_mr_tcam_route_update(struct mlxsw_sp *mlxsw_sp, void *route_priv, struct mlxsw_sp_mr_route_key *key, struct mlxsw_afa_block *afa_block) mlxsw_sp1_mr_tcam_route_update() argument
|
H A D | spectrum.h | 1187 void *route_priv, 1192 void *route_priv, 1194 int (*route_update)(struct mlxsw_sp *mlxsw_sp, void *route_priv,
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_mr.h | 46 void *route_priv, 48 int (*route_update)(struct mlxsw_sp *mlxsw_sp, void *route_priv, 50 int (*route_stats)(struct mlxsw_sp *mlxsw_sp, void *route_priv, 52 int (*route_action_update)(struct mlxsw_sp *mlxsw_sp, void *route_priv, 54 int (*route_min_mtu_update)(struct mlxsw_sp *mlxsw_sp, void *route_priv, 56 int (*route_irif_update)(struct mlxsw_sp *mlxsw_sp, void *route_priv, 58 int (*route_erif_add)(struct mlxsw_sp *mlxsw_sp, void *route_priv, 60 int (*route_erif_del)(struct mlxsw_sp *mlxsw_sp, void *route_priv, 63 void *route_priv);
|
H A D | spectrum_mr_tcam.c | 280 void *route_priv, in mlxsw_sp_mr_tcam_route_create() 284 struct mlxsw_sp_mr_tcam_route *route = route_priv; in mlxsw_sp_mr_tcam_route_create() 344 void *priv, void *route_priv) in mlxsw_sp_mr_tcam_route_destroy() 347 struct mlxsw_sp_mr_tcam_route *route = route_priv; in mlxsw_sp_mr_tcam_route_destroy() 358 void *route_priv, u64 *packets, in mlxsw_sp_mr_tcam_route_stats() 361 struct mlxsw_sp_mr_tcam_route *route = route_priv; in mlxsw_sp_mr_tcam_route_stats() 369 void *route_priv, in mlxsw_sp_mr_tcam_route_action_update() 373 struct mlxsw_sp_mr_tcam_route *route = route_priv; in mlxsw_sp_mr_tcam_route_action_update() 402 void *route_priv, u16 min_mtu) in mlxsw_sp_mr_tcam_route_min_mtu_update() 405 struct mlxsw_sp_mr_tcam_route *route = route_priv; in mlxsw_sp_mr_tcam_route_min_mtu_update() 279 mlxsw_sp_mr_tcam_route_create(struct mlxsw_sp *mlxsw_sp, void *priv, void *route_priv, struct mlxsw_sp_mr_route_params *route_params) mlxsw_sp_mr_tcam_route_create() argument 343 mlxsw_sp_mr_tcam_route_destroy(struct mlxsw_sp *mlxsw_sp, void *priv, void *route_priv) mlxsw_sp_mr_tcam_route_destroy() argument 357 mlxsw_sp_mr_tcam_route_stats(struct mlxsw_sp *mlxsw_sp, void *route_priv, u64 *packets, u64 *bytes) mlxsw_sp_mr_tcam_route_stats() argument 368 mlxsw_sp_mr_tcam_route_action_update(struct mlxsw_sp *mlxsw_sp, void *route_priv, enum mlxsw_sp_mr_route_action route_action) mlxsw_sp_mr_tcam_route_action_update() argument 401 mlxsw_sp_mr_tcam_route_min_mtu_update(struct mlxsw_sp *mlxsw_sp, void *route_priv, u16 min_mtu) mlxsw_sp_mr_tcam_route_min_mtu_update() argument 434 mlxsw_sp_mr_tcam_route_irif_update(struct mlxsw_sp *mlxsw_sp, void *route_priv, u16 irif_index) mlxsw_sp_mr_tcam_route_irif_update() argument 445 mlxsw_sp_mr_tcam_route_erif_add(struct mlxsw_sp *mlxsw_sp, void *route_priv, u16 erif_index) mlxsw_sp_mr_tcam_route_erif_add() argument 463 mlxsw_sp_mr_tcam_route_erif_del(struct mlxsw_sp *mlxsw_sp, void *route_priv, u16 erif_index) mlxsw_sp_mr_tcam_route_erif_del() argument 520 mlxsw_sp_mr_tcam_route_update(struct mlxsw_sp *mlxsw_sp, void *route_priv, struct mlxsw_sp_mr_route_info *route_info) mlxsw_sp_mr_tcam_route_update() argument [all...] |
H A D | spectrum2_mr_tcam.c | 207 void *route_priv, in mlxsw_sp2_mr_tcam_route_create() 212 struct mlxsw_sp2_mr_route *mr_route = route_priv; in mlxsw_sp2_mr_tcam_route_create() 224 (unsigned long) route_priv, afa_block, in mlxsw_sp2_mr_tcam_route_create() 243 void *route_priv, in mlxsw_sp2_mr_tcam_route_destroy() 255 (unsigned long) route_priv); in mlxsw_sp2_mr_tcam_route_destroy() 265 void *route_priv, in mlxsw_sp2_mr_tcam_route_update() 269 struct mlxsw_sp2_mr_route *mr_route = route_priv; in mlxsw_sp2_mr_tcam_route_update() 279 (unsigned long) route_priv); in mlxsw_sp2_mr_tcam_route_update() 206 mlxsw_sp2_mr_tcam_route_create(struct mlxsw_sp *mlxsw_sp, void *priv, void *route_priv, struct mlxsw_sp_mr_route_key *key, struct mlxsw_afa_block *afa_block, enum mlxsw_sp_mr_route_prio prio) mlxsw_sp2_mr_tcam_route_create() argument 242 mlxsw_sp2_mr_tcam_route_destroy(struct mlxsw_sp *mlxsw_sp, void *priv, void *route_priv, struct mlxsw_sp_mr_route_key *key) mlxsw_sp2_mr_tcam_route_destroy() argument 264 mlxsw_sp2_mr_tcam_route_update(struct mlxsw_sp *mlxsw_sp, void *route_priv, struct mlxsw_sp_mr_route_key *key, struct mlxsw_afa_block *afa_block) mlxsw_sp2_mr_tcam_route_update() argument
|
H A D | spectrum_mr.c | 85 void *route_priv; member 264 mr_route->route_priv = kzalloc(mr->mr_ops->route_priv_size, in mlxsw_sp_mr_route_write() 266 if (!mr_route->route_priv) { in mlxsw_sp_mr_route_write() 275 mr_route->route_priv, in mlxsw_sp_mr_route_write() 278 kfree(mr_route->route_priv); in mlxsw_sp_mr_route_write() 280 err = mr->mr_ops->route_update(mlxsw_sp, mr_route->route_priv, in mlxsw_sp_mr_route_write() 294 mr->mr_ops->route_destroy(mlxsw_sp, mr->priv, mr_route->route_priv); in mlxsw_sp_mr_route_erase() 295 kfree(mr_route->route_priv); in mlxsw_sp_mr_route_erase() 406 /* On replace case, make the route point to the new route_priv. in mlxsw_sp_mr_route_add() 412 mr_route->route_priv in mlxsw_sp_mr_route_add() [all...] |
H A D | spectrum1_mr_tcam.c | 123 void *route_priv, in mlxsw_sp1_mr_tcam_route_create() 128 struct mlxsw_sp1_mr_tcam_route *route = route_priv; in mlxsw_sp1_mr_tcam_route_create() 150 void *route_priv, in mlxsw_sp1_mr_tcam_route_destroy() 153 struct mlxsw_sp1_mr_tcam_route *route = route_priv; in mlxsw_sp1_mr_tcam_route_destroy() 162 void *route_priv, in mlxsw_sp1_mr_tcam_route_update() 166 struct mlxsw_sp1_mr_tcam_route *route = route_priv; in mlxsw_sp1_mr_tcam_route_update() 122 mlxsw_sp1_mr_tcam_route_create(struct mlxsw_sp *mlxsw_sp, void *priv, void *route_priv, struct mlxsw_sp_mr_route_key *key, struct mlxsw_afa_block *afa_block, enum mlxsw_sp_mr_route_prio prio) mlxsw_sp1_mr_tcam_route_create() argument 149 mlxsw_sp1_mr_tcam_route_destroy(struct mlxsw_sp *mlxsw_sp, void *priv, void *route_priv, struct mlxsw_sp_mr_route_key *key) mlxsw_sp1_mr_tcam_route_destroy() argument 161 mlxsw_sp1_mr_tcam_route_update(struct mlxsw_sp *mlxsw_sp, void *route_priv, struct mlxsw_sp_mr_route_key *key, struct mlxsw_afa_block *afa_block) mlxsw_sp1_mr_tcam_route_update() argument
|
H A D | spectrum.h | 1345 void *route_priv, 1350 void *route_priv, 1352 int (*route_update)(struct mlxsw_sp *mlxsw_sp, void *route_priv,
|
/kernel/linux/linux-6.6/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_tc.c | 1653 struct mlx5e_priv *out_priv, *route_priv; in mlx5e_tc_is_vf_tunnel() local 1657 route_priv = netdev_priv(route_dev); in mlx5e_tc_is_vf_tunnel() 1658 route_mdev = route_priv->mdev; in mlx5e_tc_is_vf_tunnel() 1667 return mlx5e_same_hw_devs(out_priv, route_priv); in mlx5e_tc_is_vf_tunnel() 1672 struct mlx5e_priv *out_priv, *route_priv; in mlx5e_tc_query_route_vport() local 1681 route_priv = netdev_priv(route_dev); in mlx5e_tc_query_route_vport() 1682 route_mdev = route_priv->mdev; in mlx5e_tc_query_route_vport()
|