Searched refs:max_nch (Results 1 – 7 of 7) sorted by relevance
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
| H A D | rx_res.c | 11 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 D | reporter_rx.c | 365 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 D | rss.c | 380 rqt_max_size = mlx5e_rqt_size(mdev, init_params->max_nch); in mlx5e_rss_init()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/ |
| H A D | en_stats.c | 2588 int max_nch = priv->stats_nch; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() local 2590 return (NUM_RQ_STATS * max_nch) + in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 2591 (NUM_CH_STATS * max_nch) + in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 2592 (NUM_SQ_STATS * max_nch * priv->max_opened_tc) + in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 2593 (NUM_RQ_XDPSQ_STATS * max_nch) + in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 2594 (NUM_XDPSQ_STATS * max_nch) + in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 2595 (NUM_XSKRQ_STATS * max_nch * priv->xsk.ever_used) + in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 2596 (NUM_XSKSQ_STATS * max_nch * priv->xsk.ever_used); in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 2602 int max_nch = priv->stats_nch; in MLX5E_DECLARE_STATS_GRP_OP_FILL_STRS() local 2605 for (i = 0; i < max_nch; i++) in MLX5E_DECLARE_STATS_GRP_OP_FILL_STRS() [all …]
|
| H A D | en_main.c | 5309 priv->max_nch); in mlx5e_build_nic_params() 5956 priv->rx_res = mlx5e_rx_res_create(priv->mdev, features, priv->max_nch, priv->drop_rq.rqn, in mlx5e_init_nic_rx() 6170 unsigned int max_nch, tmp; in mlx5e_calc_max_nch() local 6173 max_nch = mlx5e_profile_max_num_channels(mdev, profile); in mlx5e_calc_max_nch() 6176 max_nch = min_t(unsigned int, max_nch, netdev->num_rx_queues); in mlx5e_calc_max_nch() 6185 max_nch = min_t(unsigned int, max_nch, tmp); in mlx5e_calc_max_nch() 6187 return max_nch; in mlx5e_calc_max_nch() 6223 priv->max_nch = nch; in mlx5e_priv_init() 6397 int max_nch; in mlx5e_attach_netdev() local 6413 max_nch = mlx5e_calc_max_nch(priv->mdev, priv->netdev, profile); in mlx5e_attach_netdev() [all …]
|
| H A D | en.h | 935 u16 max_nch; member
|
| H A D | en_rep.c | 1088 priv->rx_res = mlx5e_rx_res_create(priv->mdev, 0, priv->max_nch, priv->drop_rq.rqn, in mlx5e_init_rep_rx()
|