RDMA/rxe: Fix extra copies in build_rdma_network_hdr
authorBob Pearson <rpearsonhpe@gmail.com>
Fri, 18 Jun 2021 04:57:40 +0000 (23:57 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 22 Jun 2021 18:38:52 +0000 (15:38 -0300)
commit1993cbed65bb590a3479d175fc1ac3c775b6bba8
tree25016387e5bd84731ae53b461275fa262d365f21
parent230bb836ee88683052b01e3bff3885c440a785b1
RDMA/rxe: Fix extra copies in build_rdma_network_hdr

build_rdma_network_hdr() in rxe_resp.c does more copying than is
needed. Remove this subroutine and eliminate the extra copies for IPV6 and
reduce the extra copying for IPV4.

Fixes: e404f945a610 ("IB/rxe: improved debug prints & code cleanup")
Link: https://lore.kernel.org/r/20210618045742.204195-4-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