RDMA/rxe: Move crc32 init code to rxe_icrc.c
authorBob Pearson <rpearsonhpe@gmail.com>
Wed, 7 Jul 2021 04:00:39 +0000 (23:00 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 16 Jul 2021 15:43:34 +0000 (12:43 -0300)
commitadd2b3b80e3a9b8f06562efe79b44809f64640db
tree212fcfa2754ca8c677eb34b3735ac8336e50c4ed
parent63887510571b072217c20ea6e1f9be744dcd0f29
RDMA/rxe: Move crc32 init code to rxe_icrc.c

This patch collects the code from rxe_register_device() that sets up the
crc32 calculation into a subroutine rxe_icrc_init() in rxe_icrc.c.

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