]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mlx4_core: More support for automatically scaling profile parameters
authorMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 17 Mar 2015 01:11:27 +0000 (18:11 -0700)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Wed, 8 Jul 2015 01:10:55 +0000 (18:10 -0700)
commit85765163952add2dcef85347a398dc0779c5c163
treefaa7b3078b1ede462bf513e0d293bb286b6c84be
parentf70a5ac6ed7eb212ec282fa71f2993c0e003628d
mlx4_core: More support for automatically scaling profile parameters

Add a new module configuration variable "scale_profile" parameter
which allows dynamic scaling of parameters. When it is not set,
the Mellanox default behavior will prevail.

The dynamically configured parameters are typically set to 0 in
configuration - but if they are set to a specific value, a warning
is printed that they are not being dynamically scaled. (This allows
for make exceptions and experiments with different values).

The original dynamic scaling of profile parameter num_mtt_segs
(governed by log_num_mtt) is retained. In addition scaling is
also introduced for parameter num_qp (governed by log_num_qp).

This is not a direct port but similar in spirit to fixes done
in UEK2 with following commits:
52ac96 OFED: Automatically size MTT in mlx4_core
47678c mlx4_core: increase default number of qps in mlx4_core driver
218561 mlx_core: Change log_num_mtt scaling range
497dd4 mlx4_core: change default for mlx4_scale_profile

An error message improvement is borrowed from Mellanox OFED 2.4 commit
17465c net/mlx4: add explicit message if user ask too few QPs
(Code for this commit is already upstream but the error message is less
 explicit upstream!)

Signed-off-by: Mukesh Kacker <mukesh.kacker@oracle.com>
drivers/net/ethernet/mellanox/mlx4/main.c
drivers/net/ethernet/mellanox/mlx4/qp.c