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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:30 +0000 (14:23 +0200)
commitcdb2150050c79123f0c130a5696351930c469680
tree40543d89006947e94d5fd74a6ebc5a539264696a
parented750e22e44366e264bcdf7b1cf0713f08f7980a
RDMA/rxe: Check the last packet by RXE_END_MASK

[ Upstream commit b1377cc37f6bebd57ce8747b7e16163a475af295 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/sw/rxe/rxe_resp.c