On 11/4/2026 11:25 AM, Karol Wachowski wrote:
Some generations support only 128 SSIDs, while the KMD configured 256
CD table entries and allowed user contexts up to SSID 130. Align the
limit across all generations.

Limit the CD table to 128 entries and the user SSID range to 2-127, so
root can create 126 contexts and non-root users 64. Also fix the off by
one SSID bounds checks against the CD table size.

Before this patch the driver allowed 128 user contexts. Now the limit
is 128 SSIDs in total, which leaves 126 user contexts, so the only cost
is 2 contexts for root. Non-root users keep 64. In return the SSID
range, the CD table size and the bounds checks all match, testing gets
simpler because exact limits can be checked instead of loose minimums,
and the userspace interface is consistent with the same limits on all
generations.

Signed-off-by: Karol Wachowski <[email protected]>
Reviewed-by: Jeff Hugo <[email protected]>

Reply via email to