Home
last modified time | relevance | path

Searched refs:esw_funcs (Results 1 – 4 of 4) sorted by relevance

/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch.c1044 MLX5_NB_INIT(&esw->esw_funcs.nb, mlx5_esw_funcs_changed_handler, in mlx5_eswitch_event_handler_register()
1046 mlx5_eq_notifier_register(esw->dev, &esw->esw_funcs.nb); in mlx5_eswitch_event_handler_register()
1053 mlx5_eq_notifier_unregister(esw->dev, &esw->esw_funcs.nb); in mlx5_eswitch_event_handler_unregister()
1063 mlx5_esw_for_each_vf_vport(esw, i, vport, esw->esw_funcs.num_vfs) { in mlx5_eswitch_clear_vf_vports_info()
1075 mlx5_esw_for_each_ec_vf_vport(esw, i, vport, esw->esw_funcs.num_ec_vfs) { in mlx5_eswitch_clear_ec_vf_vports_info()
1299 ret = mlx5_eswitch_load_ec_vf_vports(esw, esw->esw_funcs.num_ec_vfs, in mlx5_eswitch_enable_pf_vf_vports()
1307 ret = mlx5_eswitch_load_vf_vports(esw, esw->esw_funcs.num_vfs, in mlx5_eswitch_enable_pf_vf_vports()
1315 mlx5_eswitch_unload_ec_vf_vports(esw, esw->esw_funcs.num_ec_vfs); in mlx5_eswitch_enable_pf_vf_vports()
1332 mlx5_eswitch_unload_vf_vports(esw, esw->esw_funcs.num_vfs); in mlx5_eswitch_disable_pf_vf_vports()
1336 mlx5_eswitch_unload_ec_vf_vports(esw, esw->esw_funcs.num_vfs); in mlx5_eswitch_disable_pf_vf_vports()
[all …]
H A Deswitch_offloads.c2220 mlx5_esw_for_each_host_func_vport(esw, i, vport, esw->esw_funcs.num_vfs) { in mlx5_eswitch_inline_mode_get()
3418 if (new_num_vfs == esw->esw_funcs.num_vfs || host_pf_disabled) in esw_vfs_changed_event_handler()
3424 if (esw->esw_funcs.num_vfs > 0) { in esw_vfs_changed_event_handler()
3425 mlx5_eswitch_unload_vf_vports(esw, esw->esw_funcs.num_vfs); in esw_vfs_changed_event_handler()
3436 esw->esw_funcs.num_vfs = new_num_vfs; in esw_vfs_changed_event_handler()
3461 struct mlx5_esw_functions *esw_funcs; in mlx5_esw_funcs_changed_handler() local
3469 esw_funcs = mlx5_nb_cof(nb, struct mlx5_esw_functions, nb); in mlx5_esw_funcs_changed_handler()
3470 esw = container_of(esw_funcs, struct mlx5_eswitch, esw_funcs); in mlx5_esw_funcs_changed_handler()
3552 mlx5_esw_for_each_vf_vport(esw, i, vport, esw->esw_funcs.num_vfs) in esw_offloads_enable()
3555 mlx5_esw_for_each_ec_vf_vport(esw, i, vport, esw->esw_funcs.num_ec_vfs) in esw_offloads_enable()
[all …]
H A Deswitch.h379 struct mlx5_esw_functions esw_funcs; member
857 return esw->esw_funcs.num_vfs; in mlx5_eswitch_num_vfs()
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Dlegacy.c228 mlx5_esw_for_each_vf_vport(esw, i, vport, esw->esw_funcs.num_vfs) in esw_legacy_enable()