STRUCT IDPF_NETDEV_PRIV(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– NAME πŸ’–

okay so bestie, welcome to the Kernel API Manual page for struct idpf_netdev_priv(9) β€” literally the struct to store vport back pointer. that’s the whole vibe: a lil’ struct holding the vport back pointer, and we’re about to meet every member like it’s a group-chat roll call πŸ’…βœ¨

✨ SYNOPSIS ✨

here’s the struct in all its glory, no cap β€” copy it exactly because this is the real shape:

       struct idpf_netdev_priv {
           struct idpf_adapter *adapter;
           struct idpf_vport *vport;
           u32 vport_id;
           u32 link_speed_mbps;
           u16 vport_idx;
           u16 max_tx_hdr_size;
           u16 tx_max_bufs;
           unsigned long state[BITS_TO_LONGS( IDPF_VPORT_STATE_NBITS)];
           struct rtnl_link_stats64 netstats;
           spinlock_t stats_lock;
        };

πŸ’… Members πŸ’…

okay so let’s do the member-by-member vibe check. every field is iconic in its own way 🫢

  • adapter β€” adapter back pointer. lowkey the adapter’s back-pointer bestie.
  • vport β€” vport back pointer. yes, another back pointer, and it’s serving.
  • vport_id β€” vport identifier. the ID card for the vport, fr fr.
  • link_speed_mbps β€” link speed in mbps. the link speed, in mbps, exactly as advertised πŸ’«
  • vport_idx β€” relative vport index. relative, bestie β€” not absolute.
  • max_tx_hdr_size β€” max header length hardware can support. the hardware has a max header length and this field is literally holding that info 😭
  • tx_max_bufs β€” max buffers that can be transmitted with scatter-gather. scatter-gather said β€œhow many buffers?” and this is the answer.
  • state β€” see enum idpf_vport_state. that’s the reference, no extra lore.
  • netstats β€” packet and byte stats. packets, bytes, stats β€” the whole cute data moment.
  • stats_lock β€” lock to protect stats update. gotta protect that stats update, periodt πŸ”’

πŸ¦‹ SEE ALSO πŸ¦‹

also peep the Kernel file ./drivers/net/ethernet/intel/idpf/idpf.h, plus this whole squad of references β€” every single one is invited to the group chat, no one left on read:


xoxo, your Kernel API Manual girl πŸ’… β€” this page came from source/version ./drivers/net/ethernet/intel/idpf, dated October 2026, and it’s literally struct idpf_netdev_priv(9). mwah πŸ’‹

πŸ“¦ where this page comes from