]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net/rds: set the rds_ib_init_frag based on supported sge
authorWei Lin Guay <wei.lin.guay@oracle.com>
Tue, 10 Oct 2017 07:19:03 +0000 (09:19 +0200)
committerDhaval Giani <dhaval.giani@oracle.com>
Wed, 15 Nov 2017 06:18:10 +0000 (01:18 -0500)
commiteecd0fd51cfc32b3a7cc548f776b0583bbcb7a06
treefe966ef3a7c48f20fb9b88041908005e2827dbc7
parent2736f9985d9c756e658ba4045feb716ce85dd721
net/rds: set the rds_ib_init_frag based on supported sge

The large fragment size requires the underlying HCA to support N sge. Thus,
this patch sets the rds_ib_init_frag based on the minimal of
(rds_ibdev->max_sge - 1) * PAGE_SIZE and the rds_ib_max_frag module_param.

Orabug: 26770234

Signed-off-by: Wei Lin Guay <wei.lin.guay@oracle.com>
Reviewed-by: HÃ¥kon Bugge <haakon.bugge@oracle.com>
Tested-by: Shih-Yu Huang <shih-yu.huang@oracle.com>
Acked-by: Santosh Shilimkar <santosh.shilimkar@oracle.com>
Signed-off-by: Dhaval Giani <dhaval.giani@oracle.com>
net/rds/ib.c
net/rds/ib.h
net/rds/ib_cm.c