Searched refs:esw_funcs (Results 1 – 4 of 4) sorted by relevance
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/ |
D | eswitch.c | 977 MLX5_NB_INIT(&esw->esw_funcs.nb, mlx5_esw_funcs_changed_handler, in mlx5_eswitch_event_handlers_register() 979 mlx5_eq_notifier_register(esw->dev, &esw->esw_funcs.nb); in mlx5_eswitch_event_handlers_register() 986 mlx5_eq_notifier_unregister(esw->dev, &esw->esw_funcs.nb); in mlx5_eswitch_event_handlers_unregister() 998 mlx5_esw_for_each_vf_vport(esw, i, vport, esw->esw_funcs.num_vfs) { in mlx5_eswitch_clear_vf_vports_info() 1114 ret = mlx5_eswitch_load_vf_vports(esw, esw->esw_funcs.num_vfs, in mlx5_eswitch_enable_pf_vf_vports() 1135 mlx5_eswitch_unload_vf_vports(esw, esw->esw_funcs.num_vfs); in mlx5_eswitch_disable_pf_vf_vports() 1172 esw->esw_funcs.num_vfs = num_vfs; in mlx5_eswitch_update_num_of_vfs() 1180 esw->esw_funcs.num_vfs = MLX5_GET(query_esw_functions_out, out, in mlx5_eswitch_update_num_of_vfs() 1291 esw->esw_funcs.num_vfs, esw->enabled_vports); in mlx5_eswitch_enable_locked() 1335 esw->esw_funcs.num_vfs = num_vfs; in mlx5_eswitch_enable() [all …]
|
D | eswitch_offloads.c | 62 rep, (esw)->esw_funcs.num_vfs, MLX5_ESW_VPT_VF) 815 mlx5_esw_for_each_host_func_vport(esw, i, rep, esw->esw_funcs.num_vfs) { in esw_set_global_vlan_pop() 2195 mlx5_esw_for_each_host_func_vport(esw, i, vport, esw->esw_funcs.num_vfs) { in mlx5_eswitch_inline_mode_get() 3218 if (new_num_vfs == esw->esw_funcs.num_vfs || host_pf_disabled) in esw_vfs_changed_event_handler() 3224 if (esw->esw_funcs.num_vfs > 0) { in esw_vfs_changed_event_handler() 3225 mlx5_eswitch_unload_vf_vports(esw, esw->esw_funcs.num_vfs); in esw_vfs_changed_event_handler() 3236 esw->esw_funcs.num_vfs = new_num_vfs; in esw_vfs_changed_event_handler() 3261 struct mlx5_esw_functions *esw_funcs; in mlx5_esw_funcs_changed_handler() local 3269 esw_funcs = mlx5_nb_cof(nb, struct mlx5_esw_functions, nb); in mlx5_esw_funcs_changed_handler() 3270 esw = container_of(esw_funcs, struct mlx5_eswitch, esw_funcs); in mlx5_esw_funcs_changed_handler() [all …]
|
D | eswitch.h | 337 struct mlx5_esw_functions esw_funcs; member 748 return esw->esw_funcs.num_vfs; in mlx5_eswitch_num_vfs()
|
/linux-6.1.9/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
D | legacy.c | 228 mlx5_esw_for_each_vf_vport(esw, i, vport, esw->esw_funcs.num_vfs) in esw_legacy_enable()
|