]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitfb8777f8cbebe67466dee234ed336076d8f3e57f
tree25016387e5bd84731ae53b461275fa262d365f21
parent415b6d968e2fd047a89f6de9ebaaaeea4f4076ba
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: 67348b6cf5a5 ("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