Searched refs:max_nch (Results 1 – 10 of 10) sorted by relevance
/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | rx_res.c | 13 unsigned int max_nch; member 65 &res->pkt_merge_param, MLX5E_RSS_INIT_TIRS, init_nch, res->max_nch); in mlx5e_rx_res_rss_init_def() 91 res->max_nch); in mlx5e_rx_res_rss_init() 303 static struct mlx5e_rx_res *mlx5e_rx_res_alloc(struct mlx5_core_dev *mdev, unsigned int max_nch, in mlx5e_rx_res_alloc() argument 312 rx_res->rss_rqns = kvcalloc(max_nch, sizeof(*rx_res->rss_rqns), GFP_KERNEL); in mlx5e_rx_res_alloc() 319 rx_res->rss_vhca_ids = kvcalloc(max_nch, sizeof(*rx_res->rss_vhca_ids), GFP_KERNEL); in mlx5e_rx_res_alloc() 341 res->channels = kvcalloc(res->max_nch, sizeof(*res->channels), GFP_KERNEL); in mlx5e_rx_res_channels_init() 347 for (ix = 0; ix < res->max_nch; ix++) { in mlx5e_rx_res_channels_init() 350 mlx5e_rqt_size(res->mdev, res->max_nch)); in mlx5e_rx_res_channels_init() 358 for (ix = 0; ix < res->max_nch; ix++) { in mlx5e_rx_res_channels_init() [all …]
|
H A D | rss.h | 28 unsigned int max_nch);
|
H A D | rx_res.h | 27 unsigned int max_nch, u32 drop_rqn,
|
H A D | rss.c | 358 unsigned int max_nch) in mlx5e_rss_init() argument 369 mlx5e_rqt_size(mdev, max_nch)); in mlx5e_rss_init()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_stats.c | 2441 int max_nch = priv->stats_nch; in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() local 2443 return (NUM_RQ_STATS * max_nch) + in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 2444 (NUM_CH_STATS * max_nch) + in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 2445 (NUM_SQ_STATS * max_nch * priv->max_opened_tc) + in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 2446 (NUM_RQ_XDPSQ_STATS * max_nch) + in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 2447 (NUM_XDPSQ_STATS * max_nch) + in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 2448 (NUM_XSKRQ_STATS * max_nch * priv->xsk.ever_used) + in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 2449 (NUM_XSKSQ_STATS * max_nch * priv->xsk.ever_used); in MLX5E_DECLARE_STATS_GRP_OP_NUM_STATS() 2455 int max_nch = priv->stats_nch; in MLX5E_DECLARE_STATS_GRP_OP_FILL_STRS() local 2458 for (i = 0; i < max_nch; i++) in MLX5E_DECLARE_STATS_GRP_OP_FILL_STRS() [all …]
|
H A D | en_main.c | 5191 priv->max_nch); in mlx5e_build_nic_params() 5706 priv->rx_res = mlx5e_rx_res_create(priv->mdev, features, priv->max_nch, priv->drop_rq.rqn, in mlx5e_init_nic_rx() 5913 unsigned int max_nch, tmp; in mlx5e_calc_max_nch() local 5916 max_nch = mlx5e_profile_max_num_channels(mdev, profile); in mlx5e_calc_max_nch() 5919 max_nch = min_t(unsigned int, max_nch, netdev->num_rx_queues); in mlx5e_calc_max_nch() 5928 max_nch = min_t(unsigned int, max_nch, tmp); in mlx5e_calc_max_nch() 5930 return max_nch; in mlx5e_calc_max_nch() 5966 priv->max_nch = nch; in mlx5e_priv_init() 6128 int max_nch; in mlx5e_attach_netdev() local 6144 max_nch = mlx5e_calc_max_nch(priv->mdev, priv->netdev, profile); in mlx5e_attach_netdev() [all …]
|
H A D | en.h | 905 u16 max_nch; member
|
H A D | en_rep.c | 1078 priv->rx_res = mlx5e_rx_res_create(priv->mdev, 0, priv->max_nch, priv->drop_rq.rqn, in mlx5e_init_rep_rx()
|
H A D | en_ethtool.c | 426 ch->max_combined = priv->max_nch; in mlx5e_ethtool_get_channels()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/ipoib/ |
H A D | ipoib.c | 427 priv->rx_res = mlx5e_rx_res_create(priv->mdev, 0, priv->max_nch, priv->drop_rq.rqn, in mlx5i_init_rx()
|