Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A 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);
H A 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()
1901 esw->total_vports, in mlx5_eswitch_init()
2351 return mlx5_esw_allowed(esw) ? esw->total_vports : 0; in mlx5_eswitch_get_total_vports()
H A Dfs_core.c3182 int mlx5_fs_egress_acls_init(struct mlx5_core_dev *dev, int total_vports) in mlx5_fs_egress_acls_init() argument
3189 kcalloc(total_vports, in mlx5_fs_egress_acls_init()
3195 for (i = 0; i < total_vports; i++) { in mlx5_fs_egress_acls_init()
3200 steering->esw_egress_acl_vports = total_vports; in mlx5_fs_egress_acls_init()
3226 int mlx5_fs_ingress_acls_init(struct mlx5_core_dev *dev, int total_vports) in mlx5_fs_ingress_acls_init() argument
3233 kcalloc(total_vports, in mlx5_fs_ingress_acls_init()
3239 for (i = 0; i < total_vports; i++) { in mlx5_fs_ingress_acls_init()
3244 steering->esw_ingress_acl_vports = total_vports; in mlx5_fs_ingress_acls_init()
H A Deswitch_offloads.c1177 int nvports = esw->total_vports; in esw_add_fdb_peer_miss_rules()
1660 count = MLX5_MAX_PORTS * (esw->total_vports * MAX_SQ_NVPORTS + MAX_PF_SQ); in esw_create_send_to_vport_group()
1706 end_flow_index, *ix + esw->total_vports - 1); in esw_create_meta_send_to_vport_group()
1707 *ix += esw->total_vports; in esw_create_meta_send_to_vport_group()
1730 int max_peer_ports = (esw->total_vports - 1) * (MLX5_MAX_PORTS - 1); in esw_create_peer_esw_miss_group()
1859 table_size = MLX5_MAX_PORTS * (esw->total_vports * MAX_SQ_NVPORTS + MAX_PF_SQ) + in esw_create_offloads_fdb_tables()
1860 esw->total_vports * MLX5_MAX_PORTS + MLX5_ESW_MISS_FLOWS; in esw_create_offloads_fdb_tables()
1971 nvports = esw->total_vports + MLX5_ESW_MISS_FLOWS; in esw_get_nr_ft_offloads_steering_src_ports()
H A Deswitch.h348 int total_vports; member