ENUM NFP_PORT_TYPE(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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_PORT transitions 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