]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
IPoIB: Clear high octet in QP number
authorMichael S. Tsirkin <mst@mellanox.co.il>
Thu, 16 Nov 2006 08:59:12 +0000 (10:59 +0200)
committerRoland Dreier <rolandd@cisco.com>
Thu, 16 Nov 2006 21:56:45 +0000 (13:56 -0800)
commit073ae841d6a5098f7c6e17fc1f329350d950d1ce
treeb74472c7e5bd8ab009e111807e13408b87770324
parent0f66c08e9611b9a63f2f2fd5af0d12e486c4a02e
IPoIB: Clear high octet in QP number

IPoIB assumes that high (reserved) octet in the hardware address is 0,
and copies it into the QPN.  This violates RFC 4391 (which requires
that the high 8 bits are ignored on receive), and will result in an
invalid QPN being used when interoperating with IPoIB connected mode.

Signed-off-by: Michael S. Tsirkin <mst@mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/ulp/ipoib/ipoib_main.c