Open tbzatek opened 8 months ago
Some more tests (failure cases):
wrong IP address set for the first boot attempt:
wrong IP address set for the second boot attempt:
subsys_nqn
and controller_id
(looks like these data were reused from the first HFI):
{
"index":5,
"num_hfis":1,
"hfis":[
2
],
"transport":"tcp",
"traddr":"192.168.123.12",
"trsvcid":"4420",
"subsys_port_id":0,
"nsid":0,
"nid":"",
"subsys_nqn":"nqn.2014-08.org.nvmexpress.boot.poc:test-target",
"controller_id":17,
"asqsz":0,
"pdu_header_digest_required":0,
"data_digest_required":0
}
Having correct addresses but tearing the NIC link down produces exactly the same results as wrong IP addresses with link up.
Tested with #33 applied on top of the
timberland_upstream-dev-full
branch.Two HFIs:
Defined two boot attempts through HII:
Each port on the target exports four namespaces. EDK2 performs two discovery attempts as expected and generates NBFT with 8 SSNS records (four namespaces * 2 HFIs). So far so good.
However, examining the NBFT table, only one Discovery record is present:
Futhermore, the first four SSNS records properly reference this Disovery Descriptor, the other four records do not. The SSNS Discovered Namespace Flag just follows the buggy behaviour, e.g.:
# nvme nbft show -o json # libnvme/.build/test/nbft/nbft-dump