On Mon, Sep 03, 2018 at 09:11:14AM +0300, Leon Romanovsky wrote: > From: Leon Romanovsky <leonro@xxxxxxxxxxxx> > > In calculating the global maximum number of the Scatter/Gather elements > supported, the following four maximum parameters must be taken into > consideration: max_sg_rq, max_sg_sq, max_desc_sz_rq and max_desc_sz_sq. > > However instead of bringing this complexity to query_device, which still > won't be sufficient anyway (the calculations are dependent on QP type), > the safer approach will be to restore old code, which will give us 32 > SGEs. > > Fixes: 33023fb85a42 ("IB/core: add max_send_sge and max_recv_sge attributes") > Reported-by: Chuck Lever <chuck.lever@xxxxxxxxxx> > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx> > --- > drivers/infiniband/hw/mlx4/main.c | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) Applied to for-rc Thanks Jason