Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/mellanox/mlx5/core/en/
H A Drx_res.c11 unsigned int max_nch; member
68 .max_nch = res->max_nch, in mlx5e_rx_res_rss_init_def()
103 .max_nch = res->max_nch, in mlx5e_rx_res_rss_init()
323 static struct mlx5e_rx_res *mlx5e_rx_res_alloc(struct mlx5_core_dev *mdev, unsigned int max_nch, in mlx5e_rx_res_alloc() argument
332 rx_res->rss_rqns = kvcalloc(max_nch, sizeof(*rx_res->rss_rqns), GFP_KERNEL); in mlx5e_rx_res_alloc()
339 rx_res->rss_vhca_ids = kvcalloc(max_nch, sizeof(*rx_res->rss_vhca_ids), GFP_KERNEL); in mlx5e_rx_res_alloc()
362 res->channels = kvzalloc_objs(*res->channels, res->max_nch); in mlx5e_rx_res_channels_init()
368 for (ix = 0; ix < res->max_nch; ix++) { in mlx5e_rx_res_channels_init()
371 mlx5e_rqt_size(res->mdev, res->max_nch)); in mlx5e_rx_res_channels_init()
379 for (ix = 0; ix < res->max_nch; ix++) { in mlx5e_rx_res_channels_init()
[all …]
H A Dreporter_rx.c365 unsigned int max_nch = mlx5e_rx_res_get_max_nch(rx_res); in mlx5e_rx_reporter_diagnose_rx_res_dir_tirns() local
370 for (i = 0; i < max_nch; i++) { in mlx5e_rx_reporter_diagnose_rx_res_dir_tirns()
H A Drss.c380 rqt_max_size = mlx5e_rqt_size(mdev, init_params->max_nch); in mlx5e_rss_init()
/linux/drivers/net/ethernet/mellanox/mlx5/core/
H A Den_main.c5373 priv->max_nch); in mlx5e_build_nic_params()
6065 priv->rx_res = mlx5e_rx_res_create(priv->mdev, features, priv->max_nch, priv->drop_rq.rqn, in mlx5e_init_nic_rx()
6281 unsigned int max_nch, tmp; in mlx5e_calc_max_nch() local
6284 max_nch = mlx5e_profile_max_num_channels(mdev, profile); in mlx5e_calc_max_nch()
6287 max_nch = min_t(unsigned int, max_nch, netdev->num_rx_queues); in mlx5e_calc_max_nch()
6296 max_nch = min_t(unsigned int, max_nch, tmp); in mlx5e_calc_max_nch()
6298 return max_nch; in mlx5e_calc_max_nch()
6337 priv->max_nch = nch; in mlx5e_priv_init()
6511 int max_nch; in mlx5e_attach_netdev() local
6527 max_nch = mlx5e_calc_max_nch(priv->mdev, priv->netdev, profile); in mlx5e_attach_netdev()
[all …]