diff options
author | Huy Nguyen <huyn@mellanox.com> | 2018-01-08 12:15:38 +0200 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2018-01-10 22:00:32 -0700 |
commit | 8cf12d7780b72ee421d18e1f8a15daf43fa6d1e6 (patch) | |
tree | 35724d9b304785e271624b00c555356402bd6b17 /certs | |
parent | IB/core: Remove the locking for character device bitmaps (diff) | |
download | linux-dev-8cf12d7780b72ee421d18e1f8a15daf43fa6d1e6.tar.xz linux-dev-8cf12d7780b72ee421d18e1f8a15daf43fa6d1e6.zip |
IB/core: Increase number of char device minors
There is a need to increase number of possible char devices to support
large number of SR-IOV instances. The current limit is in the range of
64-128 devices/ports. Increase it to support up to 1024.
The patch performs the following steps to refactor the code:
1. Removes the split bitmap for fixed and overflow dev numbers.
2. Pre-allocates the non-legacy major number range during driver
initialization, choosen for simplicity.
3. Add new define (RDMA_MAX_PORTS) that is shared between all drivers.
This is the maximum total number of ports on all struct ib_devices.
4. Set RDMA_MAX_PORTS to 1024.
Signed-off-by: Huy Nguyen <huyn@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'certs')
0 files changed, 0 insertions, 0 deletions