]> www.infradead.org Git - users/sagi/libnvme.git/commit
tree: Remove default port setting for TCP and RDMA ports
authorDaniel Wagner <dwagner@suse.de>
Mon, 4 Apr 2022 15:36:20 +0000 (17:36 +0200)
committerDaniel Wagner <dwagner@suse.de>
Mon, 4 Apr 2022 15:36:20 +0000 (17:36 +0200)
commit096f3b2b2722d3e8bb77ae11ee999dc18cc8c102
tree3639393437bc05209d8cd2b337ae52faa9d3be64
parent451b365353576e36a3b8852728e9cec1190c9c96
tree: Remove default port setting for TCP and RDMA ports

When the controller is created, the discovery_ctrl attribute is not
set yet. The caller is supposed to set this after the creation of the
new discovery controller. Thus we can't really set the default port at
this level. This is a bit of a chicken-egg situation.

Move this work up to the caller to provide the correct defaults.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
src/nvme/tree.c