diff options
author | Bob Pearson <rpearsonhpe@gmail.com> | 2021-02-11 15:04:56 -0600 |
---|---|---|
committer | Jason Gunthorpe <jgg@nvidia.com> | 2021-02-16 14:42:59 -0400 |
commit | bf139b58af09eaed8828510adc094fc281deaf73 (patch) | |
tree | 478f4b6d04e0b5695b66b98d56e23285c395bacf /drivers/infiniband/sw/rxe/rxe_req.c | |
parent | RDMA/ucma: Fix use-after-free bug in ucma_create_uevent (diff) | |
download | linux-dev-bf139b58af09eaed8828510adc094fc281deaf73.tar.xz linux-dev-bf139b58af09eaed8828510adc094fc281deaf73.zip |
RDMA/rxe: Remove unused pkt->offset
The pkt->offset field is never used except to assign it to 0. But it adds
lots of unneeded code. This patch removes the field and related code. This
causes a measurable improvement in performance.
Link: https://lore.kernel.org/r/20210211210455.3274-1-rpearson@hpe.com
Signed-off-by: Bob Pearson <rpearson@hpe.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/infiniband/sw/rxe/rxe_req.c')
-rw-r--r-- | drivers/infiniband/sw/rxe/rxe_req.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/infiniband/sw/rxe/rxe_req.c b/drivers/infiniband/sw/rxe/rxe_req.c index d4917646641a..889290793d75 100644 --- a/drivers/infiniband/sw/rxe/rxe_req.c +++ b/drivers/infiniband/sw/rxe/rxe_req.c @@ -375,7 +375,6 @@ static struct sk_buff *init_req_packet(struct rxe_qp *qp, pkt->psn = qp->req.psn; pkt->mask = rxe_opcode[opcode].mask; pkt->paylen = paylen; - pkt->offset = 0; pkt->wqe = wqe; /* init skb */ |