Searched refs:new_prof (Results 1 – 2 of 2) sorted by relevance
| /linux/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | en_ethtool.c | 1131 struct mlx4_en_port_profile new_prof; in mlx4_en_set_ringparam() local 1166 memcpy(&new_prof, priv->prof, sizeof(struct mlx4_en_port_profile)); in mlx4_en_set_ringparam() 1167 new_prof.tx_ring_size = tx_size; in mlx4_en_set_ringparam() 1168 new_prof.rx_ring_size = rx_size; in mlx4_en_set_ringparam() 1169 err = mlx4_en_try_alloc_resources(priv, tmp, &new_prof, true); in mlx4_en_set_ringparam() 1825 struct mlx4_en_port_profile new_prof; in mlx4_en_set_channels() local 1851 memcpy(&new_prof, priv->prof, sizeof(struct mlx4_en_port_profile)); in mlx4_en_set_channels() 1852 new_prof.num_tx_rings_p_up = channel->tx_count; in mlx4_en_set_channels() 1853 new_prof.tx_ring_num[TX] = channel->tx_count * priv->prof->num_up; in mlx4_en_set_channels() 1854 new_prof.tx_ring_num[TX_XDP] = xdp_count; in mlx4_en_set_channels() [all …]
|
| H A D | en_netdev.c | 96 struct mlx4_en_port_profile new_prof; in mlx4_en_alloc_tx_queue_per_tc() local 107 memcpy(&new_prof, priv->prof, sizeof(struct mlx4_en_port_profile)); in mlx4_en_alloc_tx_queue_per_tc() 108 new_prof.num_up = (tc == 0) ? MLX4_EN_NUM_UP_LOW : in mlx4_en_alloc_tx_queue_per_tc() 110 new_prof.tx_ring_num[TX] = new_prof.num_tx_rings_p_up * in mlx4_en_alloc_tx_queue_per_tc() 111 new_prof.num_up; in mlx4_en_alloc_tx_queue_per_tc() 112 total_count = new_prof.tx_ring_num[TX] + new_prof.tx_ring_num[TX_XDP]; in mlx4_en_alloc_tx_queue_per_tc() 120 err = mlx4_en_try_alloc_resources(priv, tmp, &new_prof, true); in mlx4_en_alloc_tx_queue_per_tc() 2720 struct mlx4_en_port_profile new_prof; in mlx4_xdp_set() local 2762 memcpy(&new_prof, priv->prof, sizeof(struct mlx4_en_port_profile)); in mlx4_xdp_set() 2763 new_prof.tx_ring_num[TX_XDP] = xdp_ring_num; in mlx4_xdp_set() [all …]
|