Home
last modified time | relevance | path

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

/Linux-v6.6/drivers/net/ethernet/mellanox/mlx5/core/
Dfs_core.h316 int mlx5_fs_egress_acls_init(struct mlx5_core_dev *dev, int total_vports);
318 int mlx5_fs_ingress_acls_init(struct mlx5_core_dev *dev, int total_vports);
Deswitch.c1403 int total_vports; in mlx5_esw_acls_ns_init() local
1409 total_vports = mlx5_eswitch_get_total_vports(dev); in mlx5_esw_acls_ns_init()
1412 err = mlx5_fs_egress_acls_init(dev, total_vports); in mlx5_esw_acls_ns_init()
1420 err = mlx5_fs_ingress_acls_init(dev, total_vports); in mlx5_esw_acls_ns_init()
1718 esw->total_vports++; in mlx5_esw_vport_alloc()
1913 esw->total_vports, in mlx5_eswitch_init()
2344 return mlx5_esw_allowed(esw) ? esw->total_vports : 0; in mlx5_eswitch_get_total_vports()
Dfs_core.c3161 int mlx5_fs_egress_acls_init(struct mlx5_core_dev *dev, int total_vports) in mlx5_fs_egress_acls_init() argument
3168 kcalloc(total_vports, in mlx5_fs_egress_acls_init()
3174 for (i = 0; i < total_vports; i++) { in mlx5_fs_egress_acls_init()
3179 steering->esw_egress_acl_vports = total_vports; in mlx5_fs_egress_acls_init()
3205 int mlx5_fs_ingress_acls_init(struct mlx5_core_dev *dev, int total_vports) in mlx5_fs_ingress_acls_init() argument
3212 kcalloc(total_vports, in mlx5_fs_ingress_acls_init()
3218 for (i = 0; i < total_vports; i++) { in mlx5_fs_ingress_acls_init()
3223 steering->esw_ingress_acl_vports = total_vports; in mlx5_fs_ingress_acls_init()
Deswitch_offloads.c1175 int nvports = esw->total_vports; in esw_add_fdb_peer_miss_rules()
1650 count = MLX5_MAX_PORTS * (esw->total_vports * MAX_SQ_NVPORTS + MAX_PF_SQ); in esw_create_send_to_vport_group()
1696 end_flow_index, *ix + esw->total_vports - 1); in esw_create_meta_send_to_vport_group()
1697 *ix += esw->total_vports; in esw_create_meta_send_to_vport_group()
1720 int max_peer_ports = (esw->total_vports - 1) * (MLX5_MAX_PORTS - 1); in esw_create_peer_esw_miss_group()
1849 table_size = MLX5_MAX_PORTS * (esw->total_vports * MAX_SQ_NVPORTS + MAX_PF_SQ) + in esw_create_offloads_fdb_tables()
1850 esw->total_vports * MLX5_MAX_PORTS + MLX5_ESW_MISS_FLOWS; in esw_create_offloads_fdb_tables()
1961 nvports = esw->total_vports + MLX5_ESW_MISS_FLOWS; in esw_get_nr_ft_offloads_steering_src_ports()
Deswitch.h348 int total_vports; member