Searched refs:esw_funcs (Results 1 – 4 of 4) sorted by relevance
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | eswitch.c | 980 MLX5_NB_INIT(&esw->esw_funcs.nb, mlx5_esw_funcs_changed_handler, in mlx5_eswitch_event_handlers_register() 982 mlx5_eq_notifier_register(esw->dev, &esw->esw_funcs.nb); in mlx5_eswitch_event_handlers_register() 989 mlx5_eq_notifier_unregister(esw->dev, &esw->esw_funcs.nb); in mlx5_eswitch_event_handlers_unregister() 1001 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() 1174 esw->esw_funcs.num_vfs = num_vfs; in mlx5_eswitch_update_num_of_vfs() 1182 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() 1339 esw->esw_funcs.num_vfs = num_vfs; in mlx5_eswitch_enable() [all …]
|
D | eswitch_offloads.c | 61 rep, (esw)->esw_funcs.num_vfs, MLX5_ESW_VPT_VF) 732 mlx5_esw_for_each_host_func_vport(esw, i, rep, esw->esw_funcs.num_vfs) { in esw_set_global_vlan_pop() 986 int i = 0, num_vfs = esw->esw_funcs.num_vfs; in mlx5_eswitch_del_send_to_vport_meta_rules() 1010 num_vfs = esw->esw_funcs.num_vfs; in mlx5_eswitch_add_send_to_vport_meta_rules() 1629 MLX5_ESW_MISS_FLOWS + esw->total_vports + esw->esw_funcs.num_vfs; in esw_create_offloads_fdb_tables() 1712 num_vfs = esw->esw_funcs.num_vfs; in esw_create_offloads_fdb_tables() 1994 mlx5_esw_for_each_host_func_vport(esw, i, vport, esw->esw_funcs.num_vfs) { in mlx5_eswitch_inline_mode_get() 3044 if (new_num_vfs == esw->esw_funcs.num_vfs || host_pf_disabled) in esw_vfs_changed_event_handler() 3048 if (esw->esw_funcs.num_vfs > 0) { in esw_vfs_changed_event_handler() 3049 mlx5_eswitch_unload_vf_vports(esw, esw->esw_funcs.num_vfs); in esw_vfs_changed_event_handler() [all …]
|
D | eswitch.h | 319 struct mlx5_esw_functions esw_funcs; member
|
/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()
|