ENUM NFP_PORT_TYPE(9)
π enum nfp_port_type(9) β a whole vibe check, from the Kernel API Manual π
okay so bestie, this page is all about enum nfp_port_type β literally just the type of port that NFP can switch traffic to β¨ Think of it as the little label that tells the driver what kind of port it's dealing with. That's the whole NAME bit, no cap π«Ά
β¨ SYNOPSIS β¨
here's the actual shape of it, copy-paste energy, do not touch the commas bestie:
enum nfp_port_type {
NFP_PORT_INVALID ,
NFP_PORT_PHYS_PORT ,
NFP_PORT_PF_PORT ,
NFP_PORT_VF_PORT
};
that's it, that's the enum, she's small but she's iconic π
πΈ Constants πΈ
okay so these are the four members and what each one means, and yes every single one matters:
NFP_PORT_INVALIDβ the port is invalid π and like, lowkey important:NFP_PORT_PHYS_PORTtransitions to this state when the port disappears, whether that's because of a FW fault or a config change. so it's not just "oops bad value", it's the actual ghost-town state a phys port ends up in πNFP_PORT_PHYS_PORTβ the external NIC port, like the actual physical one you can point at with your finger π¦NFP_PORT_PF_PORTβ the logical port of a PCI PF πNFP_PORT_VF_PORTβ the logical port of a PCI VF π
π SEE ALSO π
go read these next, iykyk, they're the friend group of this page:
- the kernel file
./drivers/net/ethernet/netronome/nfp/nfp_port.h enum nfp_port_flags(9)struct nfp_port(9)
mwah π that's the whole page β sourced straight from ./drivers/net/ethernet/netronome/nfp/nfp_port.h, dated October 2026, and yes she's still filed under enum nfp_port_type(9) because consistency is main character energy β¨π
π¦ where this page comes from
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms