diff options
author | Bart Van Assche <bvanassche@acm.org> | 2019-10-25 15:58:29 -0700 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-10-28 14:52:04 -0300 |
commit | a401fb819cd6586c2c983dc199be4a9b44c30661 (patch) | |
tree | 1d25df878365237b9c152218156dd473bf543621 /drivers/infiniband/sw/siw/siw_main.c | |
parent | 97458fd510917f142c417245fa5701a892ce69d7 (diff) | |
download | linux-a401fb819cd6586c2c983dc199be4a9b44c30661.tar.gz linux-a401fb819cd6586c2c983dc199be4a9b44c30661.tar.bz2 linux-a401fb819cd6586c2c983dc199be4a9b44c30661.zip |
RDMA/siw: Increase DMA max_segment_size parameter
Increase the DMA max_segment_size parameter from 64 KB to 2 GB.
Link: https://lore.kernel.org/r/20191025225830.257535-4-bvanassche@acm.org
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Reviewed-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/infiniband/sw/siw/siw_main.c')
-rw-r--r-- | drivers/infiniband/sw/siw/siw_main.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/infiniband/sw/siw/siw_main.c b/drivers/infiniband/sw/siw/siw_main.c index b8fe43074ad6..48e45a852b51 100644 --- a/drivers/infiniband/sw/siw/siw_main.c +++ b/drivers/infiniband/sw/siw/siw_main.c @@ -382,6 +382,9 @@ static struct siw_device *siw_device_create(struct net_device *netdev) base_dev->phys_port_cnt = 1; base_dev->dev.parent = parent; base_dev->dev.dma_ops = &dma_virt_ops; + base_dev->dev.dma_parms = &sdev->dma_parms; + sdev->dma_parms = (struct device_dma_parameters) + { .max_segment_size = SZ_2G }; base_dev->num_comp_vectors = num_possible_cpus(); ib_set_device_ops(base_dev, &siw_device_ops); |