RDMA/rxe: Fix redundant skb_put_zero
authorBob Pearson <rpearsonhpe@gmail.com>
Fri, 18 Jun 2021 04:57:43 +0000 (23:57 -0500)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 22 Jun 2021 18:38:53 +0000 (15:38 -0300)
commit2d3b2e4427e2d74085bd2c17ffd737875871c983
tree14cab631f905a61b39dfebd8138c48ce143d914e
parent3896bde92d036de4376b9b4dfa3753ea23659f30
RDMA/rxe: Fix redundant skb_put_zero

rxe_init_packet() in rxe_net.c calls skb_put_zero() to reserve space for
the payload and zero it out. All these bytes are then re-written with RoCE
headers and payload. Remove this useless extra copy.

Fixes: ecb238f6a7f3 ("IB/cxgb4: use skb_put_zero()/__skb_put_zero")
Link: https://lore.kernel.org/r/20210618045742.204195-7-rpearsonhpe@gmail.com
Signed-off-by: Bob Pearson <rpearsonhpe@gmail.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_net.c