1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371
1372
1373
1374
1375
1376
1377
1378
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390
1391
1392
1393
1394
1395
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
1455
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474
1475
1476
1477
1478
1479
1480
1481
1482
1483
1484
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512
1513
1514
1515
1516
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538
1539
1540
1541
1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658
1659
1660
1661
1662
1663
1664
1665
1666
1667
1668
1669
1670
1671
1672
1673
1674
1675
1676
1677
1678
1679
1680
1681
1682
1683
1684
1685
1686
1687
1688
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698
1699
1700
1701
1702
1703
1704
1705
1706
1707
1708
1709
1710
1711
1712
1713
1714
1715
1716
1717
1718
1719
1720
1721
1722
1723
1724
1725
1726
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736
1737
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825
1826
1827
1828
1829
1830
1831
1832
1833
1834
1835
1836
1837
1838
1839
1840
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862
1863
1864
1865
1866
1867
1868
1869
1870
|
.. c:enum:: nbft_desc_type
NBFT Elements - Descriptor Types (Figure 5)
**Constants**
``NBFT_DESC_HEADER``
Header: an ACPI structure header with some additional
NBFT specific info.
``NBFT_DESC_CONTROL``
Control Descriptor: indicates the location of host,
HFI, SSNS, security, and discovery descriptors.
``NBFT_DESC_HOST``
Host Descriptor: host information.
``NBFT_DESC_HFI``
HFI Descriptor: an indexable table of HFI Descriptors,
one for each fabric interface on the host.
``NBFT_DESC_SSNS``
Subsystem Namespace Descriptor: an indexable table
of SSNS Descriptors.
``NBFT_DESC_SECURITY``
Security Descriptor: an indexable table of Security
descriptors.
``NBFT_DESC_DISCOVERY``
Discovery Descriptor: an indexable table of Discovery
Descriptors.
``NBFT_DESC_HFI_TRINFO``
HFI Transport Descriptor: indicated by an HFI Descriptor,
corresponds to a specific transport for a single HFI.
``NBFT_DESC_RESERVED_8``
Reserved.
``NBFT_DESC_SSNS_EXT_INFO``
SSNS Extended Info Descriptor: indicated by an SSNS
Descriptor if required.
.. c:enum:: nbft_trtype
NBFT Interface Transport Types (Figure 7)
**Constants**
``NBFT_TRTYPE_TCP``
NVMe/TCP (802.3 + TCP/IP). String Designator "tcp".
.. c:struct:: nbft_heap_obj
NBFT Header Driver Signature
**Definition**
::
struct nbft_heap_obj {
__le32 offset;
__le16 length;
};
**Members**
``offset``
Offset in bytes of the heap object, if any, from byte offset 0h
of the NBFT Table Header.
``length``
Length in bytes of the heap object, if any.
.. c:struct:: nbft_header
NBFT Table - Header (Figure 8)
**Definition**
::
struct nbft_header {
char signature[4];
__le32 length;
__u8 major_revision;
__u8 checksum;
char oem_id[6];
char oem_table_id[8];
__le32 oem_revision;
__le32 creator_id;
__le32 creator_revision;
__le32 heap_offset;
__le32 heap_length;
struct nbft_heap_obj driver_dev_path_sig;
__u8 minor_revision;
__u8 reserved[13];
};
**Members**
``signature``
Signature: An ASCII string representation of the table
identifier. This field shall be set to the value 4E424654h
(i.e. "NBFT", see #NBFT_HEADER_SIG).
``length``
Length: The length of the table, in bytes, including the
header, starting from offset 0h. This field is used to record
the size of the entire table.
``major_revision``
Major Revision: The major revision of the structure
corresponding to the Signature field. Larger major revision
numbers should not be assumed backward compatible to lower
major revision numbers with the same signature.
``checksum``
Checksum: The entire table, including the Checksum field,
shall sum to 0h to be considered valid.
``oem_id``
OEMID shall be populated by the NBFT driver writer by
an OEM-supplied string that identifies the OEM. All
trailing bytes shall be NULL.
``oem_table_id``
OEM Table ID: This field shall be populated by the NBFT
driver writer with an OEM-supplied string that the OEM
uses to identify the particular data table. This field is
particularly useful when defining a definition block to
distinguish definition block functions. The OEM assigns
each dissimilar table a new OEM Table ID.
``oem_revision``
OEM Revision: An OEM-supplied revision number. Larger
numbers are assumed to be newer revisions.
``creator_id``
Creator ID: Vendor ID of utility that created the table.
For instance, this may be the ID for the ASL Compiler.
``creator_revision``
Creator Revision: Revision of utility that created the
table. For instance, this may be the ID for the ASL Compiler.
``heap_offset``
Heap Offset (HO): This field indicates the offset in bytes
of the heap, if any, from byte offset 0h of the NBFT
Table Header.
``heap_length``
Heap Length (HL): The length of the heap, if any.
``driver_dev_path_sig``
Driver Signature Heap Object Reference: This field indicates
the offset in bytes of a heap object containing the Driver
Signature, if any, from byte offset 0h of the NBFT Table
Header.
``minor_revision``
Minor Revision: The minor revision of the structure
corresponding to the Signature field. If the major revision
numbers are the same, any minor revision number differences
shall be backwards compatible with the same signature.
``reserved``
Reserved.
.. c:struct:: nbft_control
NBFT Table - Control Descriptor (Figure 8)
**Definition**
::
struct nbft_control {
__u8 structure_id;
__u8 major_revision;
__u8 minor_revision;
__u8 reserved1;
__le16 csl;
__u8 flags;
__u8 reserved2;
struct nbft_heap_obj hdesc;
__u8 hsv;
__u8 reserved3;
__le32 hfio;
__le16 hfil;
__u8 hfiv;
__u8 num_hfi;
__le32 ssnso;
__le16 ssnsl;
__u8 ssnsv;
__u8 num_ssns;
__le32 seco;
__le16 secl;
__u8 secv;
__u8 num_sec;
__le32 disco;
__le16 discl;
__u8 discv;
__u8 num_disc;
__u8 reserved4[16];
};
**Members**
``structure_id``
Structure ID: This field specifies the element (refer to
:c:type:`enum nbft_desc_type <nbft_desc_type>`). This field shall be set to 1h (i.e.,
Control, #NBFT_DESC_CONTROL).
``major_revision``
Major Revision: The major revision of the structure corresponding
to the Signature field. Larger major revision numbers should
not be assumed backward compatible to lower major revision
numbers with the same signature.
``minor_revision``
Minor Revision: The minor revision of the structure corresponding
to the signature field. If the major revision numbers are
the same, any minor revision number differences shall be backwards
compatible with the same signature.
``reserved1``
Reserved.
``csl``
Control Structure Length (CSL): This field indicates the length
in bytes of the Control Descriptor.
``flags``
Flags, see :c:type:`enum nbft_control_flags <nbft_control_flags>`.
``reserved2``
Reserved.
``hdesc``
Host Descriptor (HDESC): This field indicates the location
and length of the Host Descriptor (see :c:type:`struct nbft_host <nbft_host>`).
``hsv``
Host Descriptor Version (HSV): This field indicates the version
of the Host Descriptor.
``reserved3``
Reserved.
``hfio``
HFI Descriptor List Offset (HFIO): If this field is set to
a non-zero value, then this field indicates the offset in bytes
of the HFI Descriptor List, if any, from byte offset 0h of the
NBFT Table Header. If the **num_hfi** field is cleared to 0h,
then this field is reserved.
``hfil``
HFI Descriptor Length (HFIL): This field indicates the length
in bytes of each HFI Descriptor, if any. If the **num_hfi** field
is cleared to 0h, then this field is reserved.
``hfiv``
HFI Descriptor Version (HFIV): This field indicates the version
of each HFI Descriptor.
``num_hfi``
Number of Host Fabric Interface Descriptors (NumHFI): This field
indicates the number of HFI Descriptors (see :c:type:`struct nbft_hfi <nbft_hfi>`)
in the HFI Descriptor List, if any. If no interfaces have been
configured, then this field shall be cleared to 0h.
``ssnso``
SSNS Descriptor List Offset (SSNSO):: This field indicates
the offset in bytes of the SSNS Descriptor List, if any, from
byte offset 0h of the NBFT Table Header. If the **num_ssns** field
is cleared to 0h, then this field is reserved.
``ssnsl``
SSNS Descriptor Length (SSNSL): This field indicates the length
in bytes of each SSNS Descriptor, if any. If the **num_ssns**
field is cleared to 0h, then this field is reserved.
``ssnsv``
SSNS Descriptor Version (SSNSV): This field indicates the version
of the SSNS Descriptor.
``num_ssns``
Number of Subsystem and Namespace Descriptors (NumSSNS): This
field indicates the number of Subsystem Namespace (SSNS)
Descriptors (see :c:type:`struct nbft_ssns <nbft_ssns>`) in the SSNS Descriptor List,
if any.
``seco``
Security Profile Descriptor List Offset (SECO): This field
indicates the offset in bytes of the Security Profile Descriptor
List, if any, from byte offset 0h of the NBFT Table Header.
If the **num_sec** field is cleared to 0h, then this field
is reserved.
``secl``
Security Profile Descriptor Length (SECL): This field indicates
the length in bytes of each Security Profile Descriptor, if any.
If the **num_sec** field is cleared to 0h, then this field
is reserved.
``secv``
Security Profile Descriptor Version (SECV): This field indicates
the version of the Security Profile Descriptor.
``num_sec``
Number of Security Profile Descriptors (NumSec): This field
indicates the number of Security Profile Descriptors
(see :c:type:`struct nbft_security <nbft_security>`), if any, in the Security Profile
Descriptor List.
``disco``
Discovery Descriptor Offset (DISCO): This field indicates
the offset in bytes of the Discovery Descriptor List, if any,
from byte offset 0h of the NBFT Table Header. If the **num_disc**
field is cleared to 0h, then this field is reserved.
``discl``
Discovery Descriptor Length (DISCL): This field indicates
the length in bytes of each Discovery Descriptor, if any.
If the **num_disc** field is cleared to 0h, then this field
is reserved.
``discv``
Discovery Descriptor Version (DISCV): This field indicates
the version of the Discovery Descriptor.
``num_disc``
Number of Discovery Descriptors (NumDisc): This field indicates
the number of Discovery Descriptors (see :c:type:`struct nbft_discovery <nbft_discovery>`),
if any, in the Discovery Descriptor List, if any.
``reserved4``
Reserved.
.. c:enum:: nbft_control_flags
Control Descriptor Flags
**Constants**
``NBFT_CONTROL_VALID``
Block Valid: indicates that the structure is valid.
.. c:struct:: nbft_host
Host Descriptor (Figure 9)
**Definition**
::
struct nbft_host {
__u8 structure_id;
__u8 flags;
__u8 host_id[16];
struct nbft_heap_obj host_nqn_obj;
__u8 reserved[8];
};
**Members**
``structure_id``
Structure ID: This field shall be set to 2h (i.e.,
Host Descriptor; #NBFT_DESC_HOST).
``flags``
Host Flags, see :c:type:`enum nbft_host_flags <nbft_host_flags>`.
``host_id``
Host ID: This field shall be set to the Host Identifier. This
field shall not be empty if the NBFT and NVMe Boot are supported
by the Platform.
``host_nqn_obj``
Host NQN Heap Object Reference: this field indicates a heap
object containing a Host NQN. This object shall not be empty
if the NBFT and NVMe Boot are supported by the Platform.
``reserved``
Reserved.
.. c:enum:: nbft_host_flags
Host Flags
**Constants**
``NBFT_HOST_VALID``
Descriptor Valid: If set to 1h, then this
descriptor is valid. If cleared to 0h, then
this descriptor is reserved.
``NBFT_HOST_HOSTID_CONFIGURED``
HostID Configured: If set to 1h, then the
Host ID field contains an administratively-configured
value. If cleared to 0h, then the Host ID
field contains a driver default value.
``NBFT_HOST_HOSTNQN_CONFIGURED``
Host NQN Configured: If set to 1h, then the
Host NQN indicated by the Host NQN Heap Object
Reference field (:c:type:`struct nbft_host <nbft_host>`.host_nqn)
contains an administratively-configured value.
If cleared to 0h, then the Host NQN indicated
by the Host NQN Offset field contains a driver
default value.
``NBFT_HOST_PRIMARY_ADMIN_MASK``
Mask to get Primary Administrative Host Descriptor:
indicates whether the Host Descriptor in this
NBFT was selected as the primary NBFT for
administrative purposes of platform identity
as a hint to the OS. If multiple NBFT tables
are present, only one NBFT should be administratively
selected. There is no enforcement mechanism
for this to be coordinated between multiple NBFT
tables, but this field should be set to Selected
(#NBFT_HOST_PRIMARY_ADMIN_SELECTED) if
more than one NBFT is present.
``NBFT_HOST_PRIMARY_ADMIN_NOT_INDICATED``
Not Indicated by Driver: The driver that created
this NBFT provided no administrative priority
hint for this NBFT.
``NBFT_HOST_PRIMARY_ADMIN_UNSELECTED``
Unselected: The driver that created this NBFT
explicitly indicated that this NBFT should
not be prioritized over any other NBFT.
``NBFT_HOST_PRIMARY_ADMIN_SELECTED``
Selected: The driver that created this NBFT
explicitly indicated that this NBFT should
be prioritized over any other NBFT.
.. c:struct:: nbft_hfi
Host Fabric Interface (HFI) Descriptor (Figure 11)
**Definition**
::
struct nbft_hfi {
__u8 structure_id;
__u8 index;
__u8 flags;
__u8 trtype;
__u8 reserved1[12];
struct nbft_heap_obj trinfo_obj;
__u8 reserved2[10];
};
**Members**
``structure_id``
Structure ID: This field shall be set to 3h (i.e., Host Fabric
Interface Descriptor; #NBFT_DESC_HFI).
``index``
HFI Descriptor Index: This field indicates the number of this
HFI Descriptor in the Host Fabric Interface Descriptor List.
``flags``
HFI Descriptor Flags, see :c:type:`enum nbft_hfi_flags <nbft_hfi_flags>`.
``trtype``
HFI Transport Type, see :c:type:`enum nbft_trtype <nbft_trtype>`.
``reserved1``
Reserved.
``trinfo_obj``
HFI Transport Info Descriptor Heap Object Reference: If this
field is set to a non-zero value, then this field indicates
the location and size of a heap object containing
a HFI Transport Info.
``reserved2``
Reserved.
.. c:enum:: nbft_hfi_flags
HFI Descriptor Flags
**Constants**
``NBFT_HFI_VALID``
Descriptor Valid: If set to 1h, then this descriptor is valid.
If cleared to 0h, then this descriptor is reserved.
.. c:struct:: nbft_hfi_info_tcp
HFI Transport Info Descriptor - NVMe/TCP (Figure 13)
**Definition**
::
struct nbft_hfi_info_tcp {
__u8 structure_id;
__u8 version;
__u8 trtype;
__u8 trinfo_version;
__le16 hfi_index;
__u8 flags;
__le32 pci_sbdf;
__u8 mac_addr[6];
__le16 vlan;
__u8 ip_origin;
__u8 ip_address[16];
__u8 subnet_mask_prefix;
__u8 ip_gateway[16];
__u8 reserved1;
__le16 route_metric;
__u8 primary_dns[16];
__u8 secondary_dns[16];
__u8 dhcp_server[16];
struct nbft_heap_obj host_name_obj;
__u8 reserved2[18];
};
**Members**
``structure_id``
Structure ID: This field shall be set to 7h (i.e.,
HFI Transport Info; #NBFT_DESC_HFI_TRINFO).
``version``
Version: This field shall be set to 1h.
``trtype``
HFI Transport Type, see :c:type:`enum nbft_trtype <nbft_trtype>`: This field
shall be set to 03h (i.e., NVMe/TCP; #NBFT_TRTYPE_TCP).
``trinfo_version``
Transport Info Version: Implementations compliant to this
specification shall set this field to 1h.
``hfi_index``
HFI Descriptor Index: The value of the HFI Descriptor Index
field of the HFI Descriptor (see :c:type:`struct nbft_hfi <nbft_hfi>`.index)
whose HFI Transport Info Descriptor Heap Object Reference
field indicates this HFI Transport Info Descriptor.
``flags``
HFI Transport Flags, see :c:type:`enum nbft_hfi_info_tcp_flags <nbft_hfi_info_tcp_flags>`.
``pci_sbdf``
PCI Express Routing ID for the HFI Transport Function:
This field indicates the PCI Express Routing ID as specified
in the PCI Express Base Specification.
``mac_addr``
MAC Address: The MAC address of this HFI, in EUI-48TM format,
as defined in the IEEE Guidelines for Use of Extended Unique
Identifiers. This field shall be set to a non-zero value.
``vlan``
VLAN: If this field is set to a non-zero value, then this
field contains the VLAN identifier if the VLAN associated
with this HFI, as defined in IEEE 802.1q-2018. If no VLAN
is associated with this HFI, then this field shall be cleared
to 0h.
``ip_origin``
IP Origin: If this field is set to a non-zero value, then
this field indicates the source of Ethernet L3 configuration
information used by the driver for this interface. Valid
values are defined in the Win 32 API: NL_PREFIX_ORIGIN
enumeration specification. This field should be cleared
to 0h if the IP Origin field is unused by driver.
``ip_address``
IP Address: This field indicates the IPv4 or IPv6 address
of this HFI. This field shall be set to a non-zero value.
``subnet_mask_prefix``
Subnet Mask Prefix: This field indicates the IPv4 or IPv6
subnet mask in CIDR routing prefix notation.
``ip_gateway``
IP Gateway: If this field is set to a non-zero value, this
field indicates the IPv4 or IPv6 address of the IP gateway
for this HFI. If this field is cleared to 0h, then
no IP gateway is specified.
``reserved1``
Reserved.
``route_metric``
Route Metric: If this field is set to a non-zero value,
this field indicates the cost value for the route indicated
by this HF. This field contains the value utilized by the
pre-OS driver when chosing among all available routes. Lower
values relate to higher priority. Refer to IETF RFC 4249.
If the pre-OS driver supports routing and did not configure
a specific route metric for this interface, then the pre-OS
driver should set this value to 500. If the pre-OS driver
does not support routing, then this field should be cleared
to 0h.
``primary_dns``
Primary DNS: If this field is set to a non-zero value,
this field indicates the IPv4 or IPv6 address of the
Primary DNS server for this HFI, if any, from byte offset
0h of the NBFT Table Header. If this field is cleared to 0h,
then no Primary DNS is specified.
``secondary_dns``
Secondary DNS: If this field is set to a non-zero value,
this field indicates the IPv4 or IPv6 address of
the Secondary DNS server for this HFI, if any, from byte
offset 0h of the NBFT Table Header. If this field is
cleared to 0h, then no Secondary DNS is specified.
``dhcp_server``
DHCP Server: If the DHCP Override bit is set to 1h, then
this field indicates the IPv4 or IPv6 address of the DHCP
server used to assign this HFI address. If that bit is
cleared to 0h, then this field is reserved.
``host_name_obj``
Host Name Heap Object Reference: If this field is set
to a non-zero value, then this field indicates the location
and size of a heap object containing a Host Name string.
``reserved2``
Reserved.
.. c:enum:: nbft_hfi_info_tcp_flags
HFI Transport Flags
**Constants**
``NBFT_HFI_INFO_TCP_VALID``
Descriptor Valid: if set to 1h, then this
descriptor is valid. If cleared to 0h, then
this descriptor is reserved.
``NBFT_HFI_INFO_TCP_GLOBAL_ROUTE``
Global Route vs. Link Local Override Flag:
if set to 1h, then the BIOS utilized this
interface described by HFI to be the default
route with highest priority. If cleared to 0h,
then routes are local to their own scope.
``NBFT_HFI_INFO_TCP_DHCP_OVERRIDE``
DHCP Override: if set to 1, then HFI information
was populated by consuming the DHCP on this
interface. If cleared to 0h, then the HFI
information was set administratively by
a configuration interface to the driver and
pre-OS envrionment.
.. c:struct:: nbft_ssns
Subsystem Namespace (SSNS) Descriptor (Figure 15)
**Definition**
::
struct nbft_ssns {
__u8 structure_id;
__le16 index;
__le16 flags;
__u8 trtype;
__le16 trflags;
__u8 primary_discovery_ctrl_index;
__u8 reserved1;
struct nbft_heap_obj subsys_traddr_obj;
struct nbft_heap_obj subsys_trsvcid_obj;
__le16 subsys_port_id;
__le32 nsid;
__u8 nidt;
__u8 nid[16];
__u8 security_desc_index;
__u8 primary_hfi_desc_index;
__u8 reserved2;
struct nbft_heap_obj secondary_hfi_assoc_obj;
struct nbft_heap_obj subsys_ns_nqn_obj;
struct nbft_heap_obj ssns_extended_info_desc_obj;
__u8 reserved3[62];
};
**Members**
``structure_id``
Structure ID: This field shall be set to 4h
(i.e., SSNS; #NBFT_DESC_SSNS).
``index``
SSNS Descriptor Index: This field indicates the number
of this Subsystem Namespace Descriptor in the
Subsystem Namespace Descriptor List.
``flags``
SSNS Flags, see :c:type:`enum nbft_ssns_flags <nbft_ssns_flags>`.
``trtype``
Transport Type, see :c:type:`enum nbft_trtype <nbft_trtype>`.
``trflags``
Transport Specific Flags, see :c:type:`enum nbft_ssns_trflags <nbft_ssns_trflags>`.
``primary_discovery_ctrl_index``
Primary Discovery Controller Index: The Discovery
Descriptor Index field of the Discovery Descriptor
(see :c:type:`struct nbft_discovery <nbft_discovery>`) that is associated with
this SSNS Descriptor. If a Discovery controller was
used to establish this record this value shall
be set to a non-zero value. If this namespace was
associated with multiple Discovery controllers,
those Discovery controllers shall have records
in the Discovery Descriptor to facilitate multi-path
rediscovery as required. If no Discovery controller
was utilized to inform this namespace record,
this field shall be cleared to 0h.
``reserved1``
Reserved.
``subsys_traddr_obj``
Subsystem Transport Address Heap Object Reference:
This field indicates the location and size of a heap
object containing the Subsystem Transport Address.
For IP based transports types, shall be an IP Address.
``subsys_trsvcid_obj``
Subsystem Transport Service Identifier Heap Object Reference:
This field indicates the location and size of a heap
object containing an array of bytes indicating
the Subsystem Transport Service Identifier.
See :c:type:`enum nbft_trtype <nbft_trtype>`.
``subsys_port_id``
Subsystem Port ID: Port in the NVM subsystem
associated with this transport address used by
the pre-OS driver.
``nsid``
Namespace ID: This field indicates the namespace
identifier (NSID) of the namespace indicated by
this descriptor. This field shall be cleared to 0h
if not specified by the user. If this value is cleared
to 0h, then consumers of the NBFT shall rely
on the NID.
``nidt``
Namespace Identifier Type (NIDT): This field
contains the value of the Namespace Identifier Type (NIDT)
field in the Namespace Identification Descriptor
for the namespace indicated by this descriptor.
If a namespace supports multiple NIDT entries
for uniqueness, the order of preference is NIDT field
value of 3h (i.e., UUID) before 2h (i.e., NSGUID),
and 2h before 1h (i.e., EUI-64).
``nid``
Namespace Identifier (NID): This field contains
the value of the Namespace Identifier (NID) field
in the Namespace Identification Descriptor for
the namespace indicated by this descriptor.
``security_desc_index``
Security Profile Descriptor Index: If the Use Security
Flag bit in the SSNS Flags field is set to 1h, then
this field indicates the value of the Security Profile
Descriptor Index field of the Security Profile
Descriptor (see :c:type:`struct nbft_security <nbft_security>`) associated
with this namespace. If the Use Security Flag bit
is cleared to 0h, then no Security Profile Descriptor
is associated with this namespace and this field
is reserved.
``primary_hfi_desc_index``
Primary HFI Descriptor Index: This field indicates
the value of the HFI Descriptor Index field of the
HFI Descriptor (see :c:type:`struct nbft_hfi <nbft_hfi>`) for the
interface associated with this namespace. If multiple
HFIs are associated with this record, subsequent
interfaces should be populated in the Secondary
HFI Associations field.
``reserved2``
Reserved.
``secondary_hfi_assoc_obj``
Secondary HFI Associations Heap Object Reference:
If this field is set to a non-zero value, then
this field indicates an array of bytes, in which
each byte contains the value of the HFI Descriptor
Index field of an HFI Descriptor in the HFI Descriptor
List. If this field is cleared to 0h, then no
secondary HFI associations are specified.
``subsys_ns_nqn_obj``
Subsystem and Namespace NQN Heap Object Reference:
This field indicates the location and size of
a heap object containing the Subsystem and Namespace NQN.
``ssns_extended_info_desc_obj``
SSNS Extended Information Descriptor Heap Object
Reference: If the SSNS Extended Info In-use Flag
bit is set to 1h, then this field indicates the
offset in bytes of a heap object containing an
SSNS Extended Information Descriptor
(see :c:type:`struct nbft_ssns_ext_info <nbft_ssns_ext_info>`) heap object
from byte offset 0h of the NBFT Table Header.
If the SSNS Extended Info In-use Flag bit is cleared
to 0h, then this field is reserved.
``reserved3``
Reserved.
.. c:enum:: nbft_ssns_flags
Subsystem and Namespace Specific Flags Field (Figure 16)
**Constants**
``NBFT_SSNS_VALID``
Descriptor Valid: If set to 1h, then this descriptor
is valid. If cleared to 0h, then this descriptor
is not valid. A host that supports NVMe-oF Boot,
but does not currently have a remote Subsystem
and Namespace assigned may clear this bit to 0h.
``NBFT_SSNS_NON_BOOTABLE_ENTRY``
Non-bootable Entry Flag: If set to 1h, this flag
indicates that this SSNS Descriptor contains
a namespace of administrative purpose to the boot
process, but the pre-OS may not have established
connectivity to or evaluated the contents of this
Descriptor. Such namespaces may contain supplemental
data deemed relevant by the Administrator as part
of the pre-OS to OS hand off. This may include
properties such as a UEFI device path that may
not have been created for this namespace. This means
an OS runtime may still require the contents
of such a namespace to complete later stages
of boot. If cleared to 0h, then this namespace did
not have any special administrative intent.
``NBFT_SSNS_USE_SECURITY_FIELD``
Use Security Flag: If set to 1h, then there is
a Security Profile Descriptor associated with this
SSNS record and the Security Profile Descriptor Index
field is valid. If cleared to 0h, then there is
no Security Profile Descriptor associated with this
SSNS record and the Security Profile Descriptor Index
field is not valid.
``NBFT_SSNS_DHCP_ROOT_PATH_OVERRIDE``
DHCP Root-Path Override Flag: If set to 1h, then
this SSNS descriptor was populated by consuming
the DHCP Root-Path on this interface. If cleared
to 0h, then the DHCP Root-Path was not used
in populating the SSNS descriptor.
``NBFT_SSNS_EXTENDED_INFO_IN_USE``
SSNS Extended Info In-use Flag: If set to 1h,
then the SSNS Extended Information Offset field
and the SSNS Extended Information Length field
are valid. This flag, if set to 1h, indicates
that a Subsystem and Namespace Extended Information
Descriptor corresponding to this descriptor is present.
``NBFT_SSNS_SEPARATE_DISCOVERY_CTRL``
Separate Discovery Controller Flag: If set to 1h,
then the Discovery controller associated with
this volume is on a different transport address
than the specified in the Subsystem Transport
Address Heap Object Reference. If cleared to 0h,
then the Discovery controller is the same as the
Subsystem Transport Address Heap Object Reference.
``NBFT_SSNS_DISCOVERED_NAMESPACE``
Discovered Namespace Flag: If set to 1h, then
this namespace was acquired through discovery.
If cleared to 0h, then this namespace was
explicitly configured in the system.
``NBFT_SSNS_UNAVAIL_NAMESPACE_MASK``
Mask to get Unavailable Namespace Flag: This
field indicates the availability of the namespace
at a specific point in time. Such use is only
a hint and its use does not guarantee the availability
of that referenced namespace at any future point in time.
``NBFT_SSNS_UNAVAIL_NAMESPACE_NOTIND``
Not Indicated by Driver: No information is provided.
``NBFT_SSNS_UNAVAIL_NAMESPACE_AVAIL``
Available: A referenced namespace described by this
flag was previously accessible by the pre-OS driver.
``NBFT_SSNS_UNAVAIL_NAMESPACE_UNAVAIL``
Unavailable: This namespace was administratively
configured but unattempted, unavailable or
inaccessible when establishing connectivity
by the pre-OS driver.
.. c:enum:: nbft_ssns_trflags
SSNS Transport Specific Flags Field (Figure 17)
**Constants**
``NBFT_SSNS_TRFLAG_VALID``
Transport Specific Flags in Use: If set to 1h, then
this descriptor is valid. If cleared to 0h, then
this descriptor is not valid.
``NBFT_SSNS_PDU_HEADER_DIGEST``
PDU Header Digest (HDGST) Flag: If set to 1h, then
the host or administrator required the connection
described by this Subsystem and Namespace Descriptor
to use the NVM Header Digest Enabled. A consumer
of this information should attempt to use NVM Header
Digest when recreating this connection if enabled.
If cleared to 0h, then the host or administrator
did not require the connection described by this
Subsystem and Namespace Descriptor to use the
NVM Header Digest Enabled.
``NBFT_SSNS_DATA_DIGEST``
Data Digest (DDGST) Flag: If set to 1h, then
the host or administrator required the connection
described by this Subsystem and Namespace Descriptor
to use the NVM Data Digest Enabled. If cleared
to 0h, then the host or administrator did not
require the connection described by this Subsystem
and Namespace Descriptor to use the NVM Data Digest
Enabled. A consumer of this field should attempt
to use NVM Data Digest when recreating this
connection if enabled.
.. c:struct:: nbft_ssns_ext_info
Subsystem and Namespace Extended Information Descriptor (Figure 19)
**Definition**
::
struct nbft_ssns_ext_info {
__u8 structure_id;
__u8 version;
__le16 ssns_index;
__le32 flags;
__le16 cntlid;
__le16 asqsz;
struct nbft_heap_obj dhcp_root_path_str_obj;
};
**Members**
``structure_id``
Structure ID: This field shall be set to 9h
(i.e., SSNS Extended Info; #NBFT_DESC_SSNS_EXT_INFO).
``version``
Version: This field shall be set to 1h.
``ssns_index``
SSNS Descriptor Index: This field indicates the value
of the SSNS Descriptor Index field of the Subsystem
and Namespace Descriptor (see :c:type:`struct nbft_ssns <nbft_ssns>`) whose
SSNS Extended Information Descriptor Heap Object
Reference field indicates this descriptor.
``flags``
Flags, see :c:type:`enum nbft_ssns_ext_info_flags <nbft_ssns_ext_info_flags>`.
``cntlid``
Controller ID: The controller identifier of the first
controller associated with the Admin Queue by the driver.
If a controller identifier is not administratively
specified or direct configuration is not supported
by the driver, then this field shall be cleared to 0h.
``asqsz``
Admin Submission Queue Size (ASQSZ): The Admin Submission
Queue Size utilized for the respective SSNS by the driver.
``dhcp_root_path_str_obj``
DHCP Root Path String Heap Object Reference: If the
SSNS DHCP Root Path Override (#NBFT_SSNS_DHCP_ROOT_PATH_OVERRIDE)
flag bit is set to 1h, then this field indicates
the offset in bytes of a heap object containing
an DHCP Root Path String used by the driver. If the
SNSS DHCP Root Path Override flag bit is cleared to 0h,
then this field is reserved.
.. c:enum:: nbft_ssns_ext_info_flags
Subsystem and Namespace Extended Information Descriptor Flags
**Constants**
``NBFT_SSNS_EXT_INFO_VALID``
Descriptor Valid: If set to 1h, then this descriptor
is valid. If cleared to 0h, then this descriptor
is reserved.
``NBFT_SSNS_EXT_INFO_ADMIN_ASQSZ``
Administrative ASQSZ: If set to 1h, then the value
of the ASQSZ field was provided by administrative
configuration for this SSNS record. If cleared
to 0h, then the value of the ASQSZ field was
either obtained by discovery or assumed
by the driver.
.. c:struct:: nbft_security
Security Profile Descriptor (Figure 21)
**Definition**
::
struct nbft_security {
__u8 structure_id;
__u8 index;
__le16 flags;
__u8 secret_type;
__u8 reserved1;
struct nbft_heap_obj sec_chan_alg_obj;
struct nbft_heap_obj auth_proto_obj;
struct nbft_heap_obj cipher_suite_obj;
struct nbft_heap_obj dh_grp_obj;
struct nbft_heap_obj sec_hash_func_obj;
struct nbft_heap_obj sec_keypath_obj;
__u8 reserved2[22];
};
**Members**
``structure_id``
Structure ID: This field shall be set to 5h
(i.e., Security; #NBFT_DESC_SECURITY).
``index``
Security Profile Descriptor Index: This field indicates
the number of this Security Profile Descriptor in the
Security Profile Descriptor List.
``flags``
Security Profile Descriptor Flags, see :c:type:`enum nbft_security_flags <nbft_security_flags>`.
``secret_type``
Secret Type, see :c:type:`enum nbft_security_secret_type <nbft_security_secret_type>`.
``reserved1``
Reserved.
``sec_chan_alg_obj``
Secure Channel Algorithm Heap Object Reference: If the
Security Policy List field is set to 1h, then this field
indicates the location and size of a heap object containing
a list of secure channel algorithms. The list is an array
of bytes and the values are defined in the Security Type
(SECTYPE) field in the Transport Specific Address Subtype
Definition in the NVMe TCP Transport Specification.
If the Security Policy List field is cleared to 0h, then
this field is reserved.
``auth_proto_obj``
Authentication Protocols Heap Object Reference: If the
Authentication Policy List field is set to 1h, then this
field indicates the location and size of a heap object
containing a list of authentication protocol identifiers.
If the Authentication Policy List field is cleared to 0h,
then this field is reserved.
``cipher_suite_obj``
Cipher Suite Offset Heap Object Reference: If the Cipher
Suites Restricted by Policy bit is set to 1h, then this
field indicates the location and size of a heap object
containing a list of cipher suite identifiers. The list,
if any, is an array of bytes and the values are defined
in the IANA TLS Parameters Registry. If the Cipher Suites
Restricted by Policy bit is cleared to 0h, then this field
is reserved.
``dh_grp_obj``
DH Groups Heap Object Reference: If the Authentication DH Groups
Restricted by Policy List bit is set to 1h, then this field
indicates the location and size of a heap object containing
a list of DH-HMAC-CHAP Diffie-Hellman (DH) group identifiers.
If the Authentication DH Groups Restricted by Policy List
bit is cleared to 0h, then this field is reserved.
``sec_hash_func_obj``
Secure Hash Functions Offset Heap Object Reference: If the
Secure Hash Functions Policy List bit is set to 1h, then
this field indicates the offset in bytes of a heap object
containing a list of DH-HMAC-CHAP hash function identifiers.
The list is an array of bytes and the values are defined
in the NVM Express Base Specification. If the Secure Hash
Functions Policy List bit is cleared to 0h, then this
field is reserved.
``sec_keypath_obj``
Secret Keypath Offset Heap Object Reference: if this field
is set to a non-zero value, then this field indicates
the location and size of a heap object containing a URI.
The type of the URI is specified in the Secret Type field.
If this field is cleared to 0h, then this field is reserved.
``reserved2``
Reserved.
.. c:enum:: nbft_security_flags
Security Profile Descriptor Flags (Figure 22)
**Constants**
``NBFT_SECURITY_VALID``
Descriptor Valid: If set to 1h, then
this descriptor is valid. If cleared
to 0h, then this descriptor is not valid.
``NBFT_SECURITY_IN_BAND_AUTH_MASK``
Mask to get the In-Band Authentication
Required field.
``NBFT_SECURITY_IN_BAND_AUTH_NOT_SUPPORTED``
In-band authentication is not supported
by the NVM subsystem.
``NBFT_SECURITY_IN_BAND_AUTH_NOT_REQUIRED``
In-band authentication is supported by
the NVM subsystem and is not required.
``NBFT_SECURITY_IN_BAND_AUTH_REQUIRED``
In-band authentication is supported by
the NVM subsystem and is required.
``NBFT_SECURITY_AUTH_POLICY_LIST_MASK``
Mask to get the Authentication Policy List
flag: This field indicates whether
authentication protocols were indicated
by policy from driver defaults or
administrative configuration.
``NBFT_SECURITY_AUTH_POLICY_LIST_NOT_SUPPORTED``
Authentication Protocols Heap Object Reference
field Offset and Length are reserved.
``NBFT_SECURITY_AUTH_POLICY_LIST_DRIVER``
Authentication Protocols Offset field and
the Authentication Protocols Length field
indicate a list of authentication protocols
used by the driver.
``NBFT_SECURITY_AUTH_POLICY_LIST_ADMIN``
Authentication Protocols Offset field and
the Authentication Protocols Length field
indicate a list of authentication protocols
that were administratively set and used
by the driver.
``NBFT_SECURITY_SEC_CHAN_NEG_MASK``
Mask to get the Secure Channel Negotiation
Required flag: This field indicates whether
secure channel negotiation (e.g. TLS)
is required.
``NBFT_SECURITY_SEC_CHAN_NEG_NOT_SUPPORTED``
Secure channel negotiation is not supported
by the NVM subsystem.
``NBFT_SECURITY_SEC_CHAN_NEG_NOT_REQUIRED``
Secure channel negotiation is supported
by the NVM subsystem and is not required.
``NBFT_SECURITY_SEC_CHAN_NEG_REQUIRED``
Secure channel negotiation is supported
by the NVM subsystem and is required.
``NBFT_SECURITY_SEC_POLICY_LIST_MASK``
Mask to get the Security Policy List flag:
This field indicates whether secure channel
protocols were indicated by policy from driver
defaults or administrative configuration.
``NBFT_SECURITY_SEC_POLICY_LIST_NOT_SUPPORTED``
The Offset field and Length field in the
Secure Channel Algorithm Heap Object Reference
field are reserved.
``NBFT_SECURITY_SEC_POLICY_LIST_DRIVER``
The Heap Object specified by the Secure Channel
Algorithm Heap Object Reference field indicates
a list of authentication protocols used
by the driver.
``NBFT_SECURITY_SEC_POLICY_LIST_ADMIN``
The Heap Object specified by the Secure Channel
Algorithm Heap Object Reference field indicates
a list of authentication protocols that were
administratively set and used by the driver.
``NBFT_SECURITY_CIPHER_RESTRICTED``
Cipher Suites Restricted by Policy: If set to 1h,
then the Cipher Suite Offset field and the
Ciper Suite Length field indicate a list
of supported cipher suites by the driver.
If cleared to 0h, then the Cipher Suite Offset
field and the Cipher Suite Length field
are reserved.
``NBFT_SECURITY_AUTH_DH_GROUPS_RESTRICTED``
Authentication DH Groups Restricted
by Policy List: If set to 1h, then connections
shall use one of the authentication DH groups
in the Authentication DH Groups List is required.
If cleared to 0h, then no Authentication DH Groups
List is indicated and use of an authentication
DH Group is not required.
``NBFT_SECURITY_SEC_HASH_FUNC_POLICY_LIST``
Secure Hash Functions Policy List: If set to 1h,
then connections shall use one of the secure
hash functions in the Secure Hash Functions
Policy List is required. If cleared to 0h,
then no Secure Hash Functions Policy
List is indicated and use of a secure
hash function is not required.
.. c:enum:: nbft_security_secret_type
Security Profile Descriptor Secret Type
**Constants**
``NBFT_SECURITY_SECRET_REDFISH_HOST_IFACE_URI``
Redfish Host Interface URI:
If set to 1h, then the Secret Keypath
Object Reference is a URI pointing
to a Redfish Key Collection Object
that contains the PSK.
.. c:struct:: nbft_discovery
Discovery Descriptor (Figure 24)
**Definition**
::
struct nbft_discovery {
__u8 structure_id;
__u8 flags;
__u8 index;
__u8 hfi_index;
__u8 sec_index;
__u8 reserved1;
struct nbft_heap_obj discovery_ctrl_addr_obj;
struct nbft_heap_obj discovery_ctrl_nqn_obj;
__u8 reserved2[14];
};
**Members**
``structure_id``
Structure ID: This field shall be set to 6h
(i.e., Discovery Descriptor; #NBFT_DESC_DISCOVERY).
``flags``
Discovery Descriptor Flags, see :c:type:`enum nbft_discovery_flags <nbft_discovery_flags>`.
``index``
Discovery Descriptor Index: This field indicates
the number of this Discovery Descriptor in
the Discovery Descriptor List.
``hfi_index``
HFI Descriptor Index: This field indicates the value
of the HFI Descriptor Index field of the HFI Descriptor
associated with this Discovery Descriptor. If multiple
HFIs share a common Discovery controller, there shall
be multiple Discovery Descriptor entries with one per HFI.
``sec_index``
Security Profile Descriptor Index: This field indicates
the value of the Security Profile Descriptor Index
field of the Security Descriptor associated with
this Discovery Descriptor.
``reserved1``
Reserved.
``discovery_ctrl_addr_obj``
Discovery Controller Address Heap Object Reference:
This field indicates the location and size of a heap
object containing a URI which indicates an NVMe Discovery
controller associated with this Discovery Descriptor.
If this field is cleared to 0h, then no URI is specified.
``discovery_ctrl_nqn_obj``
Discovery Controller NQN Heap Object Reference:
If set to a non-zero value, this field indicates
the location and size of a heap object containing
an NVMe Discovery controller NQN. If the NVMe Discovery
controller referenced by this record requires secure
authentication with a well known Subsystem NQN, this
field indicates the unique NQN for that NVMe Discovery
controller. This record is involved formatted as an NQN
string. If this field is cleared to 0h, then this
field is reserved and the OS shall use the well
known discovery NQN for this record.
``reserved2``
Reserved.
.. c:enum:: nbft_discovery_flags
Discovery Descriptor Flags
**Constants**
``NBFT_DISCOVERY_VALID``
Descriptor Valid: if set to 1h, then this descriptor
is valid. If cleared to 0h, then this descriptor
is reserved.
.. c:enum:: nbft_info_primary_admin_host_flag
Primary Administrative Host Descriptor Flags
**Constants**
``NBFT_INFO_PRIMARY_ADMIN_HOST_FLAG_NOT_INDICATED``
Not Indicated by Driver: The driver
that created this NBFT provided no
administrative priority hint for
this NBFT.
``NBFT_INFO_PRIMARY_ADMIN_HOST_FLAG_UNSELECTED``
Unselected: The driver that created
this NBFT explicitly indicated that
this NBFT should not be prioritized
over any other NBFT.
``NBFT_INFO_PRIMARY_ADMIN_HOST_FLAG_SELECTED``
Selected: The driver that created
this NBFT explicitly indicated that
this NBFT should be prioritized over
any other NBFT.
``NBFT_INFO_PRIMARY_ADMIN_HOST_FLAG_RESERVED``
Reserved.
.. c:struct:: nbft_info_host
Host Descriptor
**Definition**
::
struct nbft_info_host {
unsigned char *id;
char *nqn;
bool host_id_configured;
bool host_nqn_configured;
enum nbft_info_primary_admin_host_flag primary;
};
**Members**
``id``
Host ID (raw UUID, length = 16 bytes).
``nqn``
Host NQN.
``host_id_configured``
HostID Configured Flag: value of True indicates that **id**
contains administratively-configured value, or driver
default value if False.
``host_nqn_configured``
Host NQN Configured Flag: value of True indicates that
**nqn** contains administratively-configured value,
or driver default value if False.
``primary``
Primary Administrative Host Descriptor, see
:c:type:`enum nbft_info_primary_admin_host_flag <nbft_info_primary_admin_host_flag>`.
.. c:struct:: nbft_info_hfi_info_tcp
HFI Transport Info Descriptor - NVMe/TCP
**Definition**
::
struct nbft_info_hfi_info_tcp {
__u32 pci_sbdf;
__u8 mac_addr[6];
__u16 vlan;
__u8 ip_origin;
char ipaddr[40];
__u8 subnet_mask_prefix;
char gateway_ipaddr[40];
__u16 route_metric;
char primary_dns_ipaddr[40];
char secondary_dns_ipaddr[40];
char dhcp_server_ipaddr[40];
char *host_name;
bool this_hfi_is_default_route;
bool dhcp_override;
};
**Members**
``pci_sbdf``
PCI Express Routing ID for the HFI Transport Function.
``mac_addr``
MAC Address: The MAC address of this HFI,
in EUI-48TM format.
``vlan``
The VLAN identifier if the VLAN is associated with
this HFI, as defined in IEEE 802.1q-2018 or zeroes
if no VLAN is associated with this HFI.
``ip_origin``
The source of Ethernet L3 configuration information
used by the driver or 0 if not used.
``ipaddr``
The IPv4 or IPv6 address of this HFI.
``subnet_mask_prefix``
The IPv4 or IPv6 subnet mask in CIDR routing prefix
notation.
``gateway_ipaddr``
The IPv4 or IPv6 address of the IP gateway for this
HFI or zeroes if no IP gateway is specified.
``route_metric``
The cost value for the route indicated by this HFI.
``primary_dns_ipaddr``
The IPv4 or IPv6 address of the Primary DNS server
for this HFI.
``secondary_dns_ipaddr``
The IPv4 or IPv6 address of the Secondary DNS server
for this HFI.
``dhcp_server_ipaddr``
The IPv4 or IPv6 address of the DHCP server used
to assign this HFI address.
``host_name``
The Host Name string.
``this_hfi_is_default_route``
If True, then the BIOS utilized this interface
described by HFI to be the default route with highest
priority. If False, then routes are local to their
own scope.
``dhcp_override``
If True, then HFI information was populated
by consuming the DHCP on this interface. If False,
then the HFI information was set administratively
by a configuration interface to the driver and
pre-OS envrionment.
.. c:struct:: nbft_info_hfi
Host Fabric Interface (HFI) Descriptor
**Definition**
::
struct nbft_info_hfi {
int index;
char transport[8];
struct nbft_info_hfi_info_tcp tcp_info;
};
**Members**
``index``
HFI Descriptor Index: indicates the number of this HFI Descriptor
in the Host Fabric Interface Descriptor List.
``transport``
Transport Type string (e.g. 'tcp').
``tcp_info``
The HFI Transport Info Descriptor, see :c:type:`struct nbft_info_hfi_info_tcp <nbft_info_hfi_info_tcp>`.
.. c:struct:: nbft_info_discovery
Discovery Descriptor
**Definition**
::
struct nbft_info_discovery {
int index;
struct nbft_info_security *security;
struct nbft_info_hfi *hfi;
char *uri;
char *nqn;
};
**Members**
``index``
The number of this Discovery Descriptor in the Discovery
Descriptor List.
``security``
The Security Profile Descriptor, see :c:type:`struct nbft_info_security <nbft_info_security>`.
``hfi``
The HFI Descriptor associated with this Discovery Descriptor.
See :c:type:`struct nbft_info_hfi <nbft_info_hfi>`.
``uri``
A URI which indicates an NVMe Discovery controller associated
with this Discovery Descriptor.
``nqn``
An NVMe Discovery controller NQN.
.. c:struct:: nbft_info_security
Security Profile Descriptor
**Definition**
::
struct nbft_info_security {
int index;
};
**Members**
``index``
The number of this Security Profile Descriptor in the Security
Profile Descriptor List.
.. c:enum:: nbft_info_nid_type
Namespace Identifier Type (NIDT)
**Constants**
``NBFT_INFO_NID_TYPE_NONE``
No identifier available.
``NBFT_INFO_NID_TYPE_EUI64``
The EUI-64 identifier.
``NBFT_INFO_NID_TYPE_NGUID``
The NSGUID identifier.
``NBFT_INFO_NID_TYPE_NS_UUID``
The UUID identifier.
.. c:struct:: nbft_info_subsystem_ns
Subsystem Namespace (SSNS) info
**Definition**
::
struct nbft_info_subsystem_ns {
int index;
struct nbft_info_discovery *discovery;
struct nbft_info_security *security;
int num_hfis;
struct nbft_info_hfi **hfis;
char transport[8];
char traddr[40];
char *trsvcid;
__u16 subsys_port_id;
__u32 nsid;
enum nbft_info_nid_type nid_type;
__u8 *nid;
char *subsys_nqn;
bool pdu_header_digest_required;
bool data_digest_required;
int controller_id;
int asqsz;
char *dhcp_root_path_string;
};
**Members**
``index``
SSNS Descriptor Index in the descriptor list.
``discovery``
Primary Discovery Controller associated with
this SSNS Descriptor.
``security``
Security Profile Descriptor associated with
this namespace.
``num_hfis``
Number of HFIs.
``hfis``
List of HFIs associated with this namespace.
Includes the primary HFI at the first position
and all secondary HFIs. This array is null-terminated.
``transport``
Transport Type string (e.g. 'tcp').
``traddr``
Subsystem Transport Address.
``trsvcid``
Subsystem Transport Service Identifier.
``subsys_port_id``
The Subsystem Port ID.
``nsid``
The Namespace ID of this descriptor or when **nid**
should be used instead.
``nid_type``
Namespace Identifier Type, see :c:type:`enum nbft_info_nid_type <nbft_info_nid_type>`.
``nid``
The Namespace Identifier value.
``subsys_nqn``
Subsystem and Namespace NQN.
``pdu_header_digest_required``
PDU Header Digest (HDGST) Flag: the use of NVM Header
Digest Enabled is required.
``data_digest_required``
Data Digest (DDGST) Flag: the use of NVM Data Digest
Enabled is required.
``controller_id``
Controller ID (SSNS Extended Information Descriptor):
The controller ID associated with the Admin Queue
or 0 if not supported.
``asqsz``
Admin Submission Queue Size (SSNS Extended Information
Descriptor) or 0 if not supported.
``dhcp_root_path_string``
DHCP Root Path Override string (SSNS Extended
Information Descriptor).
.. c:struct:: nbft_info
The parsed NBFT table data.
**Definition**
::
struct nbft_info {
char *filename;
__u8 *raw_nbft;
ssize_t raw_nbft_size;
struct nbft_info_host host;
struct nbft_info_hfi **hfi_list;
struct nbft_info_security **security_list;
struct nbft_info_discovery **discovery_list;
struct nbft_info_subsystem_ns **subsystem_ns_list;
};
**Members**
``filename``
Path to the NBFT table.
``raw_nbft``
The original NBFT table contents.
``raw_nbft_size``
Size of **raw_nbft**.
``host``
The Host Descriptor (should match other NBFTs).
``hfi_list``
The HFI Descriptor List (null-terminated array).
``security_list``
The Security Profile Descriptor List (null-terminated array).
``discovery_list``
The Discovery Descriptor List (null-terminated array).
``subsystem_ns_list``
The SSNS Descriptor List (null-terminated array).
.. c:function:: int nvme_nbft_read (struct nbft_info **nbft, const char *filename)
Read and parse contents of an ACPI NBFT table
**Parameters**
``struct nbft_info **nbft``
Parsed NBFT table data.
``const char *filename``
Filename of the raw NBFT table to read.
**Description**
Read and parse the specified NBFT file into a struct nbft_info.
Free with nvme_nbft_free().
**Return**
0 on success, errno otherwise.
.. c:function:: void nvme_nbft_free (struct nbft_info *nbft)
Free the struct nbft_info and its contents
**Parameters**
``struct nbft_info *nbft``
Parsed NBFT table data.
|