2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-24 14:45:12 +08:00
linux-next/drivers/infiniband/sw
Bob Pearson bb3ab2979f RDMA/rxe: Compute PSN windows correctly
The code which limited the number of unacknowledged PSNs was incorrect.
The PSNs are limited to 24 bits and wrap back to zero from 0x00ffffff.
The test was computing a 32 bit value which wraps at 32 bits so that
qp->req.psn can appear smaller than the limit when it is actually larger.

Replace '>' test with psn_compare which is used for other PSN comparisons
and correctly handles the 24 bit size.

Fixes: 8700e3e7c4 ("Soft RoCE driver")
Link: https://lore.kernel.org/r/20201013170741.3590-1-rpearson@hpe.com
Signed-off-by: Bob Pearson <rpearson@hpe.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
2020-10-28 10:34:20 -03:00
..
rdmavt RDMA: Remove AH from uverbs_cmd_mask 2020-10-26 19:28:00 -03:00
rxe RDMA/rxe: Compute PSN windows correctly 2020-10-28 10:34:20 -03:00
siw RDMA: Remove uverbs cmds from drivers that don't use them 2020-10-26 19:28:00 -03:00
Makefile rdma/siw: addition to kernel build environment 2019-07-02 17:03:41 -03:00