| bd7c9e07 | 11-Nov-2023 |
Jim Harris <jim.harris@samsung.com> |
nvme: do port number checking in nvme_parse_addr()
TCP was already range checking the port number, so move it to the common nvme_parse_addr() so that RDMA gets the port checking as well.
Note, prev
nvme: do port number checking in nvme_parse_addr()
TCP was already range checking the port number, so move it to the common nvme_parse_addr() so that RDMA gets the port checking as well.
Note, previously TCP was checking against MAX_INT, so change this to reject >= 65536 instead which is the real IP port limit.
Signed-off-by: Jim Harris <jim.harris@samsung.com> Suggested-by: Alexey Marchuk <alexeymar@nvidia.com> Change-Id: I91e2f23ac4f4d8ec80cdea95a4bbff73477b8464 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/20565 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
show more ...
|
| f5ba8a5e | 26-May-2021 |
Jim Harris <james.r.harris@intel.com> |
nvme: add NVME_CTRLR_STATE_READ_CAP
Read CAP (Capabilities) register as part of controller initialization instead of controller construction.
For now, still read CAP in the pcie and vfio-user contr
nvme: add NVME_CTRLR_STATE_READ_CAP
Read CAP (Capabilities) register as part of controller initialization instead of controller construction.
For now, still read CAP in the pcie and vfio-user controller construction, since they need the drstd (doorbell stride) to construct the admin queue.
Signed-off-by: Jim Harris <james.r.harris@intel.com> Change-Id: I000fe880f2ec0d6de1d565c883d7ea0ae1ac2c81 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/8078 Reviewed-by: Ziye Yang <ziye.yang@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Aleksey Marchuk <alexeymar@mellanox.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Community-CI: Mellanox Build Bot
show more ...
|