IB/ehca: Construct MAD redirect replies from request MAD
authorJoachim Fenkes <fenkes@de.ibm.com>
Sun, 6 Sep 2009 03:22:55 +0000 (20:22 -0700)
committerRoland Dreier <rolandd@cisco.com>
Sun, 6 Sep 2009 03:22:55 +0000 (20:22 -0700)
commitd706834d995939c96b4952bf042918879b4db18b
tree68dcb2f6075f155e0c47cb9f61160df9442dcb3d
parent50d40b8e53fab58b0141a75f7448eb28f9e21338
IB/ehca: Construct MAD redirect replies from request MAD

The old code used a lot of hard-coded values, which might not be valid
in all environments (especially routed fabrics or partitioned
subnets).  Copy as much information as possible from the incoming
request to correct that.

Signed-off-by: Joachim Fenkes <fenkes@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ehca/ehca_sqp.c