RDMA/rxe: Fix types in rxe_icrc.c
authorBob Pearson <rpearsonhpe@gmail.com>
Wed, 7 Jul 2021 04:00:41 +0000 (23:00 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 16 Jul 2021 15:43:35 +0000 (12:43 -0300)
commit923232bbea88a29f18a2361790582a6474a538fc
tree94373cef819fca22589ed1c85887e51133caa128
parente4f5c82fefa9bce9a5e010901c2d16f2654b1f18
RDMA/rxe: Fix types in rxe_icrc.c

Currently the ICRC is generated as a u32 type and then forced to a __be32
and stored into the ICRC field in the packet. The actual type of the ICRC
is __be32. This patch replaces u32 by __be32 and eliminates the casts.
The computation is exactly the same as the original but the types are more
consistent.

Link: https://lore.kernel.org/r/20210707040040.15434-10-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_icrc.c