Home
last modified time | relevance | path

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

/freebsd/sys/dev/mlx5/mlx5_core/
H A Deswitch.h139 int total_vports;
155 int mlx5_eswitch_init(struct mlx5_core_dev *dev, int total_vports);
137 int total_vports; global() member
H A Dmlx5_eswitch.c1044 for (i = 0; i < esw->total_vports; i++) in mlx5_eswitch_disable_sriov()
1053 int mlx5_eswitch_init(struct mlx5_core_dev *dev, int total_vports) in mlx5_eswitch_init() argument
1066 total_vports, l2_table_size, in mlx5_eswitch_init()
1090 esw->vports = kcalloc(total_vports, sizeof(struct mlx5_vport), in mlx5_eswitch_init()
1097 for (vport_num = 0; vport_num < total_vports; vport_num++) { in mlx5_eswitch_init()
1108 esw->total_vports = total_vports; in mlx5_eswitch_init()
1161 #define LEGAL_VPORT(esw, vport) (vport >= 0 && vport < esw->total_vports)
H A Dmlx5_fs_core.c3029 int mlx5_fs_egress_acls_init(struct mlx5_core_dev *dev, int total_vports) in mlx5_fs_egress_acls_init() argument
3036 kcalloc(total_vports, in mlx5_fs_egress_acls_init()
3042 for (i = 0; i < total_vports; i++) { in mlx5_fs_egress_acls_init()
3047 steering->esw_egress_acl_vports = total_vports; in mlx5_fs_egress_acls_init()
3073 int mlx5_fs_ingress_acls_init(struct mlx5_core_dev *dev, int total_vports) in mlx5_fs_ingress_acls_init() argument
3080 kcalloc(total_vports, in mlx5_fs_ingress_acls_init()
3086 for (i = 0; i < total_vports; i++) { in mlx5_fs_ingress_acls_init()
3091 steering->esw_ingress_acl_vports = total_vports; in mlx5_fs_ingress_acls_init()
H A Dmlx5_main.c1923 if (priv->eswitch->total_vports < num_vfs + 1) in mlx5_iov_init()
1924 num_vfs = priv->eswitch->total_vports - 1; in mlx5_iov_init()
1958 if (vfnum + 1 >= priv->eswitch->total_vports) in mlx5_iov_add_vf()