]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mlx4_core: limit min profile numbers
authorDotan Barak <dotanb@dev.mellanox.co.il>
Wed, 2 May 2012 07:13:20 +0000 (10:13 +0300)
committerMukesh Kacker <mukesh.kacker@oracle.com>
Tue, 7 Jul 2015 21:38:07 +0000 (14:38 -0700)
commit03d8d9fafc6385b7b90e8d1c0154df7c463559da
tree5ddd16f27a91befcc7cfa979d5c24a828d5b7575
parent08c75b2d8d6f63d81ba77ab1b3e18859c962aa18
mlx4_core: limit min profile numbers

We can't use arbitrarily low profile numbers for resources since
the device needs some of its own. The best way to do it is to
query the device and then set the minimum values, but the values
chosen here are good enough and do not complicate the implementation.

Signed-off-by: Eli Cohen <eli@mellanox.co.il>
Signed-off-by: Dotan Barak <dotanb@dev.mellanox.co.il>
Reviewed-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
(Ported from Mellanox OFED 2.4)

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