• Alexander Chiang's avatar
    IB/uverbs: Increase maximum devices supported · 6d6a0e71
    Alexander Chiang authored
    Some large systems may support more than IB_UVERBS_MAX_DEVICES
    (currently 32).
    
    This change allows us to support more devices in a backwards-compatible
    manner.  The first IB_UVERBS_MAX_DEVICES keep the same major/minor
    device numbers that they've always had.
    
    If there are more than IB_UVERBS_MAX_DEVICES, we then dynamically
    request a new major device number (new minors start at 0).
    
    This change increases the maximum number of HCAs to 64 (from 32).
    Signed-off-by: default avatarAlex Chiang <achiang@hp.com>
    Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
    6d6a0e71
uverbs_main.c 24.6 KB