libnvme(9)
โจ libnvme(9) โ the API manual, bestie edition โจ
Okay so today we're looking at libnvme(9), and the little star of this page is struct nbft_hfi_info_tcp โ aka the HFI Transport Info Descriptor - NVMe/TCP (Figure 14). Yes it's a struct, yes it's giving "gigantic field list", but we're gonna get through it together, iykyk. ๐
๐ NAME ๐
struct nbft_hfi_info_tcp โ the HFI Transport Info Descriptor - NVMe/TCP (Figure 14). That's it, that's the whole name, slay.
๐ฆ SYNOPSIS ๐ฆ
Here's the whole struct, copied exactly, no edits, no vibes-based renaming:
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;
struct nbft_heap_obj hfi_ext_info_obj;
__u8 pcie_seg_num;
__u8 reserved2[11];
};
๐ Members ๐
Bestie, grab a snack, we're going field by field. Every single one. No skipping. ๐
structure_idโ the Structure ID ๐ชช. This field shall be set to7h(i.e., HFI Transport Info;#NBFT_DESC_HFI_TRINFO). It's literally the ID card for this descriptor.versionโ the Version ๐. This field shall be set to1h.trtypeโ the HFI Transport Type, seeenum nbft_trtype. This field shall be set to03h(i.e., NVMe/TCP;#NBFT_TRTYPE_TCP). Obviously it's TCP, we been knew.trinfo_versionโ the Transport Info Version ๐ท๏ธ. This field shall be set to2h, and the supported values include1h(Boot Spec rev. 1.0).hfi_indexโ the HFI Descriptor Index ๐. This is the value of the HFI Descriptor Index field of the HFI Descriptor (seestruct nbft_hfi.index) whose HFI Transport Info Descriptor Heap Object Reference field indicates this HFI Transport Info Descriptor. It's like a mutuals situation โ they point at each other.flagsโ the HFI Transport Flags, seeenum nbft_hfi_info_tcp_flags. That's where the flag lore lives.pci_sbdfโ the 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โ the 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 โ so no zero MAC, okay? Not allowed.vlanโ the 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 to0h.ip_originโ the 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_ORIGINenumeration specification. This field should be cleared to0hif the IP Origin field is unused by driver.ip_addressโ the 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โ the Subnet Mask Prefix ๐ญ. This field indicates the IPv4 or IPv6 subnet mask in CIDR routing prefix notation. CIDR notation, we love to see it.ip_gatewayโ the 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 to0h, then no IP gateway is specified.reserved1โ Reserved. Not for us, back off. ๐route_metricโ the 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 [sic, that's what it says โ "this HF"]. This field contains the value utilized by the pre-OS driver when chosing [sic] 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 to500. If the pre-OS driver does not support routing, then this field should be cleared to0h.primary_dnsโ the 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 offset0hof the NBFT Table Header. If this field is cleared to0h, then no Primary DNS is specified.secondary_dnsโ the 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 offset0hof the NBFT Table Header. If this field is cleared to0h, then no Secondary DNS is specified.dhcp_serverโ the DHCP Server ๐ฌ. If the DHCP Override bit is set to1h, then this field indicates the IPv4 or IPv6 address of the DHCP server used to assign this HFI address. If that bit is cleared to0h, then this field is reserved.host_name_objโ the 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.hfi_ext_info_objโ the HFI Transport Info Extended Information Descriptor Object Reference (since rev. 1.1) ๐งฉ. 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 Extended Information Descriptor (seestruct nbft_hfi_info_ext). Extended info, extended vibes.pcie_seg_numโ the PCIe Segment Number (since rev. 1.1) ๐ข. The Segment Number for the specified Controller when the PCI Express Link is in Flit mode. If the PCI Express interface is not in Flit mode, or if the pre-OS driver does not support Flit mode, then this field should be cleared to0h.reserved2โ Reserved. Again. Leave it alone. ๐
Reminder bestie:reserved1andreserved2are reserved. Do not go putting your own little data in there. That's not your space. ๐ซถ
๐ Sign-off ๐
That's the whole page, no cap โ every field, every 0h, every "shall be set to", all of it. This was the struct nbft_hfi_info_tcp page from the libnvme(9) API Manual, dated October 2026. Go forth and parse your NBFT tables, main character. ๐๐
๐ฆ where this page comes from
- arch rolling: nvme-cli 3.2-1 ยท GPL-2.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms