From: Leon Romanovsky <leonro@xxxxxxxxxxxx> Changelog v1->v2: https://lore.kernel.org/linux-rdma/20191007115819.9211-1-leon@xxxxxxxxxx * Used Christoph's comment * Change patch code flow to have one DMA_FROM_DEVICE check v0->v1: https://lore.kernel.org/linux-rdma/20191006155955.31445-1-leon@xxxxxxxxxx * Reorganized patches to have IB/core changes separated from mlx5 * Moved SGL check before rdma_rw_force_mr * Added and rephrased original comment. ----------------------------------------------------------------------------- Hi, This series from Yamin implements long standing "TODO" existed in rw.c. Thanks Yamin Friedman (3): net/mlx5: Expose optimal performance scatter entries capability RDMA/rw: Support threshold for registration vs scattering to local pages RDMA/mlx5: Add capability for max sge to get optimized performance drivers/infiniband/core/rw.c | 25 +++++++++++++++---------- drivers/infiniband/hw/mlx5/main.c | 2 ++ include/linux/mlx5/mlx5_ifc.h | 2 +- include/rdma/ib_verbs.h | 2 ++ 4 files changed, 20 insertions(+), 11 deletions(-) -- 2.20.1