Searched refs:total_vports (Results 1 - 3 of 3) sorted by relevance

/freebsd-current/sys/dev/mlx5/mlx5_core/
H A Deswitch.h137 int total_vports; member in struct:mlx5_eswitch
153 int mlx5_eswitch_init(struct mlx5_core_dev *dev, int total_vports);
H A Dmlx5_eswitch.c1066 for (i = 0; i < esw->total_vports; i++)
1075 int mlx5_eswitch_init(struct mlx5_core_dev *dev, int total_vports) argument
1088 total_vports, l2_table_size,
1112 esw->vports = kcalloc(total_vports, sizeof(struct mlx5_vport),
1119 for (vport_num = 0; vport_num < total_vports; vport_num++) {
1130 esw->total_vports = total_vports;
1183 #define LEGAL_VPORT(esw, vport) (vport >= 0 && vport < esw->total_vports)
H A Dmlx5_main.c1910 if (priv->eswitch->total_vports < num_vfs + 1)
1911 num_vfs = priv->eswitch->total_vports - 1;
1945 if (vfnum + 1 >= priv->eswitch->total_vports)

Completed in 119 milliseconds