• Bob Pearson's avatar
    RDMA/rxe: Move local ops to subroutine · c1a41126
    Bob Pearson authored
    Simplify rxe_requester() by moving the local operations to a subroutine.
    Add an error return for illegal send WR opcode.  Moved next_index ahead of
    rxe_run_task which fixed a small bug where work completions were delayed
    until after the next wqe which was not the intended behavior.  Let errors
    return their own WC status. Previously all errors were reported as
    protection errors which was incorrect. Changed the return of errors from
    rxe_do_local_ops() to err: which causes an immediate completion.  Without
    this an error on a last WR may get lost. Changed fill_packet() to
    finish_packet() which is more accurate.
    
    Fixes: 8700e2e7c485 ("The software RoCE driver")
    Link: https://lore.kernel.org/r/20210608042552.33275-7-rpearsonhpe@gmail.comSigned-off-by: default avatarBob Pearson <rpearsonhpe@gmail.com>
    Signed-off-by: default avatarJason Gunthorpe <jgg@nvidia.com>
    c1a41126
rxe_req.c 18.5 KB