summaryrefslogtreecommitdiffstats
path: root/drivers/firewire
diff options
context:
space:
mode:
authorJunxian Huang <huangjunxian6@hisilicon.com>2023-12-07 19:42:29 +0800
committerLeon Romanovsky <leon@kernel.org>2023-12-07 15:09:16 +0200
commit7243396aaf12385ba514764b6401bcd15e1a52c7 (patch)
tree708fcf54daeaa67181d23a2e098b838b865cc4e4 /drivers/firewire
parentd3f4020a213e1cb125eed2363fca372a23f7de7a (diff)
downloadlinux-7243396aaf12385ba514764b6401bcd15e1a52c7.tar.gz
linux-7243396aaf12385ba514764b6401bcd15e1a52c7.tar.bz2
linux-7243396aaf12385ba514764b6401bcd15e1a52c7.zip
RDMA/hns: Add a max length of gid table
IB-core and rdma-core restrict the sgid_index specified by users, which is uint8_t/u8 data type, to only be within the range of 0-255, so it's meaningless to support excessively large gid_table_len. On the other hand, ib-core creates as many sysfs gid files as gid_table_len, most of which are not only useless because of the reason above, but also greatly increase the traversal time of the sysfs gid files for applications. This patch limits the maximum length of gid table to 256. Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com> Link: https://lore.kernel.org/r/20231207114231.2872104-4-huangjunxian6@hisilicon.com Signed-off-by: Leon Romanovsky <leon@kernel.org>
Diffstat (limited to 'drivers/firewire')
0 files changed, 0 insertions, 0 deletions