]> git.baikalelectronics.ru Git - kernel.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)
commit4e26ff80ff58179fa2061a9863dbbd12f1cb36f0
treeb74472c7e5bd8ab009e111807e13408b87770324
parent142152737b0dee2c2a2157073c71aaf66993bab5
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