RDMA/rxe: Move ICRC checking to a subroutine
authorBob Pearson <rpearsonhpe@gmail.com>
Wed, 7 Jul 2021 04:00:33 +0000 (23:00 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Fri, 16 Jul 2021 15:43:33 +0000 (12:43 -0300)
commitfe87fb17c6febdf6e0f7308cdf175de617d24c72
treebcad2b1d954cd0f9c8d7eaf8c05db3d004cec440
parent21bfee9c0c7754408b1f311bffe304caf3e62250
RDMA/rxe: Move ICRC checking to a subroutine

Move the code in rxe_recv() that checks the ICRC on incoming packets to a
subroutine rxe_check_icrc() and move that to rxe_icrc.c.

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