]> www.infradead.org Git - users/jedix/linux-maple.git/commit
RDMA/hns: Fix wrong maximum DMA segment size
authorChengchang Tang <tangchengchang@huawei.com>
Thu, 27 Mar 2025 11:47:24 +0000 (19:47 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Mon, 7 Apr 2025 18:30:09 +0000 (15:30 -0300)
commit9beb2c91fb86e0be70a5833c6730441fa3c9efa8
tree19aef98a60d6c687dd6a9bac5fe200b309acf5a1
parent1b2fe85f3cf19026a0e9037242bcbf7e736b22e3
RDMA/hns: Fix wrong maximum DMA segment size

Set maximum DMA segment size to 2G instead of UINT_MAX due to HW limit.

Fixes: e0477b34d9d1 ("RDMA: Explicitly pass in the dma_device to ib_register_device")
Link: https://patch.msgid.link/r/20250327114724.3454268-3-huangjunxian6@hisilicon.com
Signed-off-by: Chengchang Tang <tangchengchang@huawei.com>
Signed-off-by: Junxian Huang <huangjunxian6@hisilicon.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/hw/hns/hns_roce_main.c