]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/nes: Fix CRC endianness for RDMA connection establishment on big-endian
authorFaisal Latif <flatif@neteffect.com>
Thu, 21 Feb 2008 14:31:22 +0000 (08:31 -0600)
committerRoland Dreier <rolandd@cisco.com>
Wed, 27 Feb 2008 00:24:29 +0000 (16:24 -0800)
commitbb2e5a0f96883252b5f41904ae7619fed294a396
treee68206af4e17a9542b978ca97aaca1a373ba8349
parentb9203b2af48835b0496f5b5929980f5b45eead5a
RDMA/nes: Fix CRC endianness for RDMA connection establishment on big-endian

With commit b118ae82 ("[LIB] crc32c: Keep intermediate crc state in
cpu order"), the behavior of crc32c changes on big-endian platforms.

Our algorithm expects the previous behavior; otherwise we have RDMA
connection establishment failure on big-endian platforms like powerpc.
Apply cpu_to_le32() to value returned by crc32c() to get the previous
behavior.

Signed-off-by: Faisal Latif <flatif@neteffect.com>
Signed-off-by: Glenn Streiff <gstreiff@neteffect.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/nes/nes.h
drivers/infiniband/hw/nes/nes_cm.c