.. | .. |
---|
167 | 167 | params->prof[i].rx_ppp = pfcrx; |
---|
168 | 168 | params->prof[i].tx_pause = !(pfcrx || pfctx); |
---|
169 | 169 | params->prof[i].tx_ppp = pfctx; |
---|
170 | | - params->prof[i].tx_ring_size = MLX4_EN_DEF_TX_RING_SIZE; |
---|
171 | | - params->prof[i].rx_ring_size = MLX4_EN_DEF_RX_RING_SIZE; |
---|
| 170 | + if (mlx4_low_memory_profile()) { |
---|
| 171 | + params->prof[i].tx_ring_size = MLX4_EN_MIN_TX_SIZE; |
---|
| 172 | + params->prof[i].rx_ring_size = MLX4_EN_MIN_RX_SIZE; |
---|
| 173 | + } else { |
---|
| 174 | + params->prof[i].tx_ring_size = MLX4_EN_DEF_TX_RING_SIZE; |
---|
| 175 | + params->prof[i].rx_ring_size = MLX4_EN_DEF_RX_RING_SIZE; |
---|
| 176 | + } |
---|
172 | 177 | params->prof[i].num_up = MLX4_EN_NUM_UP_LOW; |
---|
173 | 178 | params->prof[i].num_tx_rings_p_up = params->max_num_tx_rings_p_up; |
---|
174 | 179 | params->prof[i].tx_ring_num[TX] = params->max_num_tx_rings_p_up * |
---|