Home
last modified time | relevance | path

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

/linux-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/
Dfs_core.h328 int mlx5_fs_egress_acls_init(struct mlx5_core_dev *dev, int total_vports);
330 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()
1710 esw->total_vports++; in mlx5_esw_vport_alloc()
1902 esw->total_vports, in mlx5_eswitch_init()
2352 return mlx5_esw_allowed(esw) ? esw->total_vports : 0; in mlx5_eswitch_get_total_vports()
Dfs_core.c3400 int mlx5_fs_egress_acls_init(struct mlx5_core_dev *dev, int total_vports) in mlx5_fs_egress_acls_init() argument
3407 kcalloc(total_vports, in mlx5_fs_egress_acls_init()
3413 for (i = 0; i < total_vports; i++) { in mlx5_fs_egress_acls_init()
3418 steering->esw_egress_acl_vports = total_vports; in mlx5_fs_egress_acls_init()
3444 int mlx5_fs_ingress_acls_init(struct mlx5_core_dev *dev, int total_vports) in mlx5_fs_ingress_acls_init() argument
3451 kcalloc(total_vports, in mlx5_fs_ingress_acls_init()
3457 for (i = 0; i < total_vports; i++) { in mlx5_fs_ingress_acls_init()
3462 steering->esw_ingress_acl_vports = total_vports; in mlx5_fs_ingress_acls_init()
Deswitch_offloads.c1191 int nvports = esw->total_vports; in esw_add_fdb_peer_miss_rules()
1674 count = MLX5_MAX_PORTS * (esw->total_vports * MAX_SQ_NVPORTS + MAX_PF_SQ); in esw_create_send_to_vport_group()
1720 end_flow_index, *ix + esw->total_vports - 1); in esw_create_meta_send_to_vport_group()
1721 *ix += esw->total_vports; in esw_create_meta_send_to_vport_group()
1744 int max_peer_ports = (esw->total_vports - 1) * (MLX5_MAX_PORTS - 1); in esw_create_peer_esw_miss_group()
1873 table_size = MLX5_MAX_PORTS * (esw->total_vports * MAX_SQ_NVPORTS + MAX_PF_SQ) + in esw_create_offloads_fdb_tables()
1874 esw->total_vports * MLX5_MAX_PORTS + MLX5_ESW_MISS_FLOWS; in esw_create_offloads_fdb_tables()
1985 nvports = esw->total_vports + MLX5_ESW_MISS_FLOWS; in esw_get_nr_ft_offloads_steering_src_ports()
Deswitch.h349 int total_vports; member