summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorShay Drory <shayd@nvidia.com>2026-05-31 14:39:53 +0300
committerJakub Kicinski <kuba@kernel.org>2026-06-04 03:42:21 +0300
commit0b1c4495aa007932e9cbd7b45a8037e7b4fe34b0 (patch)
treea1622430fa26f0cbf3085cd6e4dd92801340ca85 /include/linux/timerqueue.h
parent9f062b931daa63c4b53baa20d5487d5f7f8cee04 (diff)
downloadlinux-0b1c4495aa007932e9cbd7b45a8037e7b4fe34b0.tar.xz
net/mlx5e: Verify unique vhca_id count instead of range
Change verify_num_vhca_ids() to count the number of unique vhca_ids and verify this count doesn't exceed max_num_vhca_id, rather than validating individual vhca_id values are within a specific range. The previous implementation checked if each vhca_id was in the range [0, max_num_vhca_id - 1], which is overly restrictive. The hardware capability max_rqt_vhca_id represents the maximum number of unique vhca_ids that can be used, not a range constraint on individual IDs. Signed-off-by: Shay Drory <shayd@nvidia.com> Reviewed-by: Mark Bloch <mbloch@nvidia.com> Signed-off-by: Tariq Toukan <tariqt@nvidia.com> Link: https://patch.msgid.link/20260531113954.395443-14-tariqt@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions