Spdk/test/unit/lib/nvmf
Shuhei Matsumoto d8a105742f nvmf/rdma: Fix overflow of RB tree comparison when qp_num is very big
If 0 - UINT32_MAX or UINT32_MAX - 0 is substituted into a int variable,
we cannot get any expected result.

Fix the bug and add unit test case to verify the fix.

Signed-off-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Change-Id: Iad2ea681ad8ad234e70c7310b58785a999612156
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/11837
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Community-CI: Broadcom CI <spdk-ci.pdl@broadcom.com>
2022-03-09 08:00:58 +00:00
..
ctrlr_bdev.c nvmf: return async/complete status in bdev zcopy operations 2022-01-06 18:53:42 +00:00
ctrlr_discovery.c nvmf: fix discovery log change notice execution 2022-02-09 18:05:51 +00:00
ctrlr.c nvmf: add auxiliary asserts to confirm API usage is correct 2022-02-09 18:05:51 +00:00
fc_ls.c ut/fc : fix fc_ls_ut compilation failure 2021-12-16 08:43:39 +00:00
fc.c nvmf: abort outstanding zcopy reqs in qpair disconnect 2022-01-12 08:20:11 +00:00
nvmf.c nvmf: pass poll group to transport during create 2022-02-23 10:05:15 +00:00
rdma.c nvmf/rdma: Fix overflow of RB tree comparison when qp_num is very big 2022-03-09 08:00:58 +00:00
subsystem.c nvmf: support static CNTLID 2022-01-06 01:20:32 +00:00
tcp.c nvmf: pass poll group to transport during create 2022-02-23 10:05:15 +00:00
transport.c nvmf: pass poll group to transport during create 2022-02-23 10:05:15 +00:00
vfio_user.c nvmf/vfio-user: remove vfio-user CSTS.CFS 2022-03-08 02:35:05 +00:00
Makefile test/nvmf: only build and run transport_ut.c when RDMA is enabled 2021-09-01 07:34:37 +00:00