]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit09c4ee6f03320b415ad8d5c4eb50ae961e5f540c
tree40543d89006947e94d5fd74a6ebc5a539264696a
parent032d993c4cf774b26803ba7f7d7295605cc6cc0a
RDMA/rxe: Check the last packet by RXE_END_MASK

[ Upstream commit 04d71f8cb889f5e0991f6d62717a283889e85ae7 ]

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: d68145d5253d ("IB/rxe: increment msn only when completing a request")
Fixes: c4397c211d7d ("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