]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
IB/mthca: Fix corner cases in max_rd_atomic value handling in modify QP
authorJack Morgenstein <jackm@mellanox.co.il>
Fri, 16 Dec 2005 03:59:01 +0000 (19:59 -0800)
committerRoland Dreier <rolandd@cisco.com>
Fri, 16 Dec 2005 03:59:01 +0000 (19:59 -0800)
commitc4342d8a4d95e18b957b898dbf5bfce28fca2780
treefbaaaa50351a71f03b013b86ba32ef01bea19472
parentd1646f86a2a05a956adbb163c81a81bd621f055e
IB/mthca: Fix corner cases in max_rd_atomic value handling in modify QP

sae and sre bits should only be set when setting sra_max.  Further, in
the old code, if the caller specifies max_rd_atomic = 0, the sre and
sae bits are still set, with the result that the QP ends up with
max_rd_atomic = 1 in effect.

Signed-off-by: Jack Morgenstein <jackm@mellanox.co.il>
Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_qp.c