]> www.infradead.org Git - users/sagi/libnvme.git/commit
fabrics: add default port number for NVMe/TCP I/O controllers
authorDaniel Wagner <dwagner@suse.de>
Tue, 22 Feb 2022 15:06:52 +0000 (16:06 +0100)
committerDaniel Wagner <dwagner@suse.de>
Tue, 22 Feb 2022 15:06:52 +0000 (16:06 +0100)
commit9b17a87b01136a9d88872d69c75460890cdc408f
tree2263a65ea63096415a277ca10dbf0f24e281dd66
parentfcfc3880fec5a3226c024f9bb3e1bc8a3d56fed0
fabrics: add default port number for NVMe/TCP I/O controllers

As per section 7.4.9.3 "Transport Service Identifier" of the NVMe over
Fabrics 1.1 specification, the default IANA port number for a NVMe/TCP
discovery controller is 8009. But at the same time, it also clearly
states that NVMe/TCP I/O controllers should not use TCP port number
8009, but may instead use 4420 as the default here.

So make sure to fill these values appropriately, and pass it down.

Signed-off-by: Martin George <marting@netapp.com>
[dwagner: backport from monolithic branch]
Signed-off-by: Daniel Wagner <dwagner@suse.de>
src/nvme/tree.c