Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlx5/core/
Deswitch.c975 MLX5_NB_INIT(&esw->esw_funcs.nb, mlx5_esw_funcs_changed_handler, in mlx5_eswitch_event_handler_register()
977 mlx5_eq_notifier_register(esw->dev, &esw->esw_funcs.nb); in mlx5_eswitch_event_handler_register()
984 mlx5_eq_notifier_unregister(esw->dev, &esw->esw_funcs.nb); in mlx5_eswitch_event_handler_unregister()
994 mlx5_esw_for_each_vf_vport(esw, i, vport, esw->esw_funcs.num_vfs) { in mlx5_eswitch_clear_vf_vports_info()
1110 ret = mlx5_eswitch_load_vf_vports(esw, esw->esw_funcs.num_vfs, in mlx5_eswitch_enable_pf_vf_vports()
1131 mlx5_eswitch_unload_vf_vports(esw, esw->esw_funcs.num_vfs); in mlx5_eswitch_disable_pf_vf_vports()
1168 esw->esw_funcs.num_vfs = num_vfs; in mlx5_eswitch_update_num_of_vfs()
1176 esw->esw_funcs.num_vfs = MLX5_GET(query_esw_functions_out, out, in mlx5_eswitch_update_num_of_vfs()
1290 esw->esw_funcs.num_vfs, esw->enabled_vports); in mlx5_eswitch_enable_locked()
1334 esw->esw_funcs.num_vfs = num_vfs; in mlx5_eswitch_enable()
[all …]
Deswitch_offloads.c62 rep, (esw)->esw_funcs.num_vfs, MLX5_ESW_VPT_VF)
810 mlx5_esw_for_each_host_func_vport(esw, i, rep, esw->esw_funcs.num_vfs) { in esw_set_global_vlan_pop()
2191 mlx5_esw_for_each_host_func_vport(esw, i, vport, esw->esw_funcs.num_vfs) { in mlx5_eswitch_inline_mode_get()
3221 if (new_num_vfs == esw->esw_funcs.num_vfs || host_pf_disabled) in esw_vfs_changed_event_handler()
3227 if (esw->esw_funcs.num_vfs > 0) { in esw_vfs_changed_event_handler()
3228 mlx5_eswitch_unload_vf_vports(esw, esw->esw_funcs.num_vfs); in esw_vfs_changed_event_handler()
3239 esw->esw_funcs.num_vfs = new_num_vfs; in esw_vfs_changed_event_handler()
3264 struct mlx5_esw_functions *esw_funcs; in mlx5_esw_funcs_changed_handler() local
3272 esw_funcs = mlx5_nb_cof(nb, struct mlx5_esw_functions, nb); in mlx5_esw_funcs_changed_handler()
3273 esw = container_of(esw_funcs, struct mlx5_eswitch, esw_funcs); in mlx5_esw_funcs_changed_handler()
[all …]
Deswitch.h337 struct mlx5_esw_functions esw_funcs; member
751 return esw->esw_funcs.num_vfs; in mlx5_eswitch_num_vfs()
/drivers/net/ethernet/mellanox/mlx5/core/esw/
Dlegacy.c228 mlx5_esw_for_each_vf_vport(esw, i, vport, esw->esw_funcs.num_vfs) in esw_legacy_enable()