Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Deswitch.c1252 esw->esw_funcs.host_funcs_disabled = host_pf_info.pf_not_exist; in mlx5_esw_host_functions_enabled_query()
1261 MLX5_NB_INIT(&esw->esw_funcs.nb, mlx5_esw_funcs_changed_handler, in mlx5_eswitch_event_handler_register()
1263 mlx5_eq_notifier_register(esw->dev, &esw->esw_funcs.nb); in mlx5_eswitch_event_handler_register()
1277 mlx5_eq_notifier_unregister(esw->dev, &esw->esw_funcs.nb); in mlx5_eswitch_event_handler_unregister()
1285 mlx5_esw_for_each_vf_vport(esw, i, vport, esw->esw_funcs.num_vfs) { in mlx5_eswitch_clear_vf_vports_info()
1297 mlx5_esw_for_each_ec_vf_vport(esw, i, vport, esw->esw_funcs.num_ec_vfs) { in mlx5_eswitch_clear_ec_vf_vports_info()
1571 struct mlx5_esw_functions *esw_funcs = &esw->esw_funcs; in mlx5_eswitch_enable_pf_vf_vports() local
1605 esw_funcs->num_ec_vfs, in mlx5_eswitch_enable_pf_vf_vports()
1612 ret = mlx5_eswitch_load_vf_vports(esw, esw_funcs->num_vfs, in mlx5_eswitch_enable_pf_vf_vports()
1623 for (i = 0; i < esw_funcs->num_spfs; i++) { in mlx5_eswitch_enable_pf_vf_vports()
[all …]
H A Deswitch_offloads.c2323 mlx5_esw_for_each_host_func_vport(esw, i, vport, esw->esw_funcs.num_vfs) { in mlx5_eswitch_inline_mode_get()
4011 if (new_num_vfs == esw->esw_funcs.num_vfs || host_pf_info.pf_disabled) in esw_changed_event_handler()
4016 if (esw->esw_funcs.num_vfs > 0) { in esw_changed_event_handler()
4017 mlx5_eswitch_unload_vf_vports(esw, esw->esw_funcs.num_vfs); in esw_changed_event_handler()
4026 esw->esw_funcs.num_vfs = new_num_vfs; in esw_changed_event_handler()
4096 struct mlx5_esw_functions *esw_funcs; in mlx5_esw_funcs_changed_handler() local
4100 esw_funcs = mlx5_nb_cof(nb, struct mlx5_esw_functions, nb); in mlx5_esw_funcs_changed_handler()
4101 esw = container_of(esw_funcs, struct mlx5_eswitch, esw_funcs); in mlx5_esw_funcs_changed_handler()
4112 const struct mlx5_esw_functions *esw_funcs; in mlx5_esw_offloads_controller_valid() local
4126 esw_funcs = &esw->esw_funcs; in mlx5_esw_offloads_controller_valid()
[all …]
H A Deswitch.h435 struct mlx5_esw_functions esw_funcs; member
803 (index) < (esw)->esw_funcs.num_spfs && \
805 (esw)->esw_funcs.spfs[(index)].vport_num)); \
979 return esw->esw_funcs.num_vfs; in mlx5_eswitch_num_vfs()
/linux/drivers/net/ethernet/mellanox/mlx5/core/esw/
H A Ddevlink_port.c91 controller_num = esw->esw_funcs.spfs[spf_idx].host_number + 1; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
92 pfnum = esw->esw_funcs.spfs[spf_idx].pf_num; in mlx5_esw_offloads_pf_vf_devlink_port_attrs_set()
H A Dlegacy.c217 mlx5_esw_for_each_vf_vport(esw, i, vport, esw->esw_funcs.num_vfs) in esw_legacy_enable()