Home
last modified time | relevance | path

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

/drivers/net/ethernet/mellanox/mlx5/core/
Dfs_core.h292 int mlx5_fs_egress_acls_init(struct mlx5_core_dev *dev, int total_vports);
294 int mlx5_fs_ingress_acls_init(struct mlx5_core_dev *dev, int total_vports);
Deswitch.c1199 int total_vports; in mlx5_esw_acls_ns_init() local
1202 total_vports = mlx5_eswitch_get_total_vports(dev); in mlx5_esw_acls_ns_init()
1205 err = mlx5_fs_egress_acls_init(dev, total_vports); in mlx5_esw_acls_ns_init()
1213 err = mlx5_fs_ingress_acls_init(dev, total_vports); in mlx5_esw_acls_ns_init()
1461 esw->total_vports++; in mlx5_esw_vport_alloc()
1604 esw->total_vports, in mlx5_eswitch_init()
2126 return mlx5_esw_allowed(esw) ? esw->total_vports : 0; in mlx5_eswitch_get_total_vports()
Dfs_core.c2946 int mlx5_fs_egress_acls_init(struct mlx5_core_dev *dev, int total_vports) in mlx5_fs_egress_acls_init() argument
2953 kcalloc(total_vports, in mlx5_fs_egress_acls_init()
2959 for (i = 0; i < total_vports; i++) { in mlx5_fs_egress_acls_init()
2964 steering->esw_egress_acl_vports = total_vports; in mlx5_fs_egress_acls_init()
2990 int mlx5_fs_ingress_acls_init(struct mlx5_core_dev *dev, int total_vports) in mlx5_fs_ingress_acls_init() argument
2997 kcalloc(total_vports, in mlx5_fs_ingress_acls_init()
3003 for (i = 0; i < total_vports; i++) { in mlx5_fs_ingress_acls_init()
3008 steering->esw_ingress_acl_vports = total_vports; in mlx5_fs_ingress_acls_init()
Deswitch_offloads.c1176 int nvports = esw->total_vports; in esw_add_fdb_peer_miss_rules()
1628 table_size = MLX5_MAX_PORTS * (esw->total_vports * MAX_SQ_NVPORTS + MAX_PF_SQ) + in esw_create_offloads_fdb_tables()
1629 MLX5_ESW_MISS_FLOWS + esw->total_vports + esw->esw_funcs.num_vfs; in esw_create_offloads_fdb_tables()
1686 ix = MLX5_MAX_PORTS * (esw->total_vports * MAX_SQ_NVPORTS + MAX_PF_SQ); in esw_create_offloads_fdb_tables()
1754 ix + esw->total_vports - 1); in esw_create_offloads_fdb_tables()
1755 ix += esw->total_vports; in esw_create_offloads_fdb_tables()
1861 ft_attr.max_fte = esw->total_vports + MLX5_ESW_MISS_FLOWS; in esw_create_offloads_table()
1890 nvports = esw->total_vports + MLX5_ESW_MISS_FLOWS; in esw_create_vport_rx_group()
Deswitch.h294 int total_vports; member