IB/ucm: Increase maximum devices supported
authorAlexander Chiang <achiang@hp.com>
Tue, 2 Feb 2010 19:09:06 +0000 (19:09 +0000)
committerRoland Dreier <rolandd@cisco.com>
Wed, 24 Feb 2010 18:23:48 +0000 (10:23 -0800)
commitdaa913580e1a927aaf54f02ecfdf59c7b6bc2f6e
tree1765fa757c539a79430b8710277d5d1b5c77ab75
parent31d14b6e10657113f72d496121d52ca779156b2e
IB/ucm: Increase maximum devices supported

Some large systems may support more than IB_UCM_MAX_DEVICES
(currently 32).

This change allows us to support more devices in a backwards-compatible
manner. the first IB_UCM_MAX_DEVICES keep the same major/minor device
numbers they've always had.

If there are more than IB_UCM_MAX_DEVICES, then we dynamically request
a new major device number (new minors start at 0).

Signed-off-by: Alex Chiang <achiang@hp.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/ucm.c