]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ib_isert: Add max_send_sge=2 minimum for control PDU responses
authorOr Gerlitz <ogerlitz@mellanox.com>
Wed, 22 Oct 2014 21:55:49 +0000 (14:55 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 6 Dec 2014 23:55:35 +0000 (15:55 -0800)
commit31c0b88814911924830f35e04a9b3dbb3f82f0e0
treecb90c4353cea2d9315b3ffeb74d8d198c05cd707
parent82c138e535c22082e81ccd32a2c73edd0e101f70
ib_isert: Add max_send_sge=2 minimum for control PDU responses

commit f57915cfa5b2b14c1cffa2e83c034f55e3f0e70d upstream.

This patch adds a max_send_sge=2 minimum in isert_conn_setup_qp()
to ensure outgoing control PDU responses with tx_desc->num_sge=2
are able to function correctly.

This addresses a bug with RDMA hardware using dev_attr.max_sge=3,
that in the original code with the ConnectX-2 work-around would
result in isert_conn->max_sge=1 being negotiated.

Originally reported by Chris with ocrdma driver.

Reported-by: Chris Moore <Chris.Moore@emulex.com>
Tested-by: Chris Moore <Chris.Moore@emulex.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/ulp/isert/ib_isert.c