]> err.no Git - linux-2.6/commit
IB/mthca: Fix check of max_send_sge for special QPs
authorRoland Dreier <rolandd@cisco.com>
Tue, 15 Jul 2008 06:48:52 +0000 (23:48 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 15 Jul 2008 06:48:52 +0000 (23:48 -0700)
commitaed012279d35e88e29fd55737d8821604433f50a
tree48a1223fd53f471d61254d1eb2e3263bf0b33e99
parentc036925ac0e940a4e8525b08e89d2c64fe282c51
IB/mthca: Fix check of max_send_sge for special QPs

The MLX transport requires two extra gather entries for sends (one for
the header and one for the checksum at the end, as the comment says).
However the code checked that max_recv_sge was not too big, instead of
checking max_send_sge as it should have.  Fix the code to check the
correct condition.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_qp.c