Searched refs:esw_funcs (Results 1 – 4 of 4) sorted by relevance
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | eswitch.c | 1046 mlx5_eq_notifier_register(esw->dev, &esw->esw_funcs.nb); in mlx5_eswitch_event_handler_register() 1375 esw->esw_funcs.num_vfs = num_vfs; in mlx5_eswitch_update_num_of_vfs() 1386 esw->esw_funcs.num_ec_vfs = num_vfs; in mlx5_eswitch_update_num_of_vfs() 1500 esw->esw_funcs.num_vfs, esw->esw_funcs.num_ec_vfs, esw->enabled_vports); in mlx5_eswitch_enable_locked() 1549 esw->esw_funcs.num_vfs = num_vfs; in mlx5_eswitch_enable() 1553 esw->esw_funcs.num_ec_vfs = num_vfs; in mlx5_eswitch_enable() 1573 if (!esw->esw_funcs.num_vfs && !esw->esw_funcs.num_ec_vfs && !clear_vf) in mlx5_eswitch_disable_sriov() 1578 esw->esw_funcs.num_vfs, esw->esw_funcs.num_ec_vfs, esw->enabled_vports); in mlx5_eswitch_disable_sriov() 1600 esw->esw_funcs.num_vfs = 0; in mlx5_eswitch_disable_sriov() 1602 esw->esw_funcs.num_ec_vfs = 0; in mlx5_eswitch_disable_sriov() [all …]
|
H A D | eswitch_offloads.c | 2209 mlx5_esw_for_each_host_func_vport(esw, i, vport, esw->esw_funcs.num_vfs) { in mlx5_eswitch_inline_mode_get() 3403 if (new_num_vfs == esw->esw_funcs.num_vfs || host_pf_disabled) in esw_vfs_changed_event_handler() 3409 if (esw->esw_funcs.num_vfs > 0) { in esw_vfs_changed_event_handler() 3410 mlx5_eswitch_unload_vf_vports(esw, esw->esw_funcs.num_vfs); in esw_vfs_changed_event_handler() 3421 esw->esw_funcs.num_vfs = new_num_vfs; in esw_vfs_changed_event_handler() 3446 struct mlx5_esw_functions *esw_funcs; in mlx5_esw_funcs_changed_handler() local 3454 esw_funcs = mlx5_nb_cof(nb, struct mlx5_esw_functions, nb); in mlx5_esw_funcs_changed_handler() 3455 esw = container_of(esw_funcs, struct mlx5_eswitch, esw_funcs); in mlx5_esw_funcs_changed_handler() 3537 mlx5_esw_for_each_vf_vport(esw, i, vport, esw->esw_funcs.num_vfs) in esw_offloads_enable() 3540 mlx5_esw_for_each_ec_vf_vport(esw, i, vport, esw->esw_funcs.num_ec_vfs) in esw_offloads_enable() [all …]
|
H A D | eswitch.h | 378 struct mlx5_esw_functions esw_funcs; member 854 return esw->esw_funcs.num_vfs; in mlx5_eswitch_num_vfs()
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
H A D | legacy.c | 228 mlx5_esw_for_each_vf_vport(esw, i, vport, esw->esw_funcs.num_vfs) in esw_legacy_enable()
|