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.c3172 int mlx5_fs_egress_acls_init(struct mlx5_core_dev *dev, int total_vports) in mlx5_fs_egress_acls_init() argument
3179 kcalloc(total_vports, in mlx5_fs_egress_acls_init()
3185 for (i = 0; i < total_vports; i++) { in mlx5_fs_egress_acls_init()
3190 steering->esw_egress_acl_vports = total_vports; in mlx5_fs_egress_acls_init()
3216 int mlx5_fs_ingress_acls_init(struct mlx5_core_dev *dev, int total_vports) in mlx5_fs_ingress_acls_init() argument
3223 kcalloc(total_vports, in mlx5_fs_ingress_acls_init()
3229 for (i = 0; i < total_vports; i++) { in mlx5_fs_ingress_acls_init()
3234 steering->esw_ingress_acl_vports = total_vports; in mlx5_fs_ingress_acls_init()
H A Deswitch_offloads.c1180 int nvports = esw->total_vports; in esw_add_fdb_peer_miss_rules()
1663 count = MLX5_MAX_PORTS * (esw->total_vports * MAX_SQ_NVPORTS + MAX_PF_SQ); in esw_create_send_to_vport_group()
1709 end_flow_index, *ix + esw->total_vports - 1); in esw_create_meta_send_to_vport_group()
1710 *ix += esw->total_vports; in esw_create_meta_send_to_vport_group()
1733 int max_peer_ports = (esw->total_vports - 1) * (MLX5_MAX_PORTS - 1); in esw_create_peer_esw_miss_group()
1862 table_size = MLX5_MAX_PORTS * (esw->total_vports * MAX_SQ_NVPORTS + MAX_PF_SQ) + in esw_create_offloads_fdb_tables()
1863 esw->total_vports * MLX5_MAX_PORTS + MLX5_ESW_MISS_FLOWS; in esw_create_offloads_fdb_tables()
1974 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