RDMA/rxe: Check the last packet by RXE_END_MASK
authorXiao Yang <yangx.jy@fujitsu.com>
Wed, 29 Dec 2021 03:44:38 +0000 (11:44 +0800)
committerJason Gunthorpe <jgg@nvidia.com>
Tue, 8 Feb 2022 15:54:38 +0000 (11:54 -0400)
commitb1377cc37f6bebd57ce8747b7e16163a475af295
treef92297ce0df3abe0e42f9ebed15c20cb5ea4743a
parent0d9c00117b8a57a361b27f7bd94284c94155f039
RDMA/rxe: Check the last packet by RXE_END_MASK

It's wrong to check the last packet by RXE_COMP_MASK because the flag is
to indicate if responder needs to generate a completion.

Fixes: 9fcd67d1772c ("IB/rxe: increment msn only when completing a request")
Fixes: 8700e3e7c485 ("Soft RoCE driver")
Link: https://lore.kernel.org/r/20211229034438.1854908-1-yangx.jy@fujitsu.com
Signed-off-by: Xiao Yang <yangx.jy@fujitsu.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
drivers/infiniband/sw/rxe/rxe_resp.c