RDMA/rxe: Fix extra copy in prepare_ack_packet
authorBob Pearson <rpearsonhpe@gmail.com>
Fri, 18 Jun 2021 04:57:42 +0000 (23:57 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 22 Jun 2021 18:38:53 +0000 (15:38 -0300)
commit3896bde92d036de4376b9b4dfa3753ea23659f30
tree2e0ba130d55ed7bbfc5e0b02e271ae11b4476033
parentec0fa2445c18ec49a0b7ee0aaa82d1ec00968fc9
RDMA/rxe: Fix extra copy in prepare_ack_packet

Currently prepare_ack_packet writes almost all the fields of the BTH in
the ack packet twice. Replace code with the subroutine init_bth().

Fixes: 8700e3e7c485 ("Soft RoCE driver")
Link: https://lore.kernel.org/r/20210618045742.204195-6-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_resp.c