STRUCT FCOE_PORT(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

Okay so, from the Kernel API Manual, this is struct fcoe_port β€” the FCoE private structure, bestie. That’s the whole vibe: it’s the private struct for FCoE, and yes, it’s iconic. πŸ’–

✨ SYNOPSIS ✨

       struct fcoe_port {
           void *priv;
           struct fc_lport       *lport;
           struct sk_buff_head   fcoe_pending_queue;
           u8 fcoe_pending_queue_active;
           u32 max_queue_depth;
           u32 min_queue_depth;
           struct timer_list     timer;
           struct work_struct    destroy_work;
           u8 data_src_addr[ETH_ALEN];
           struct net_device * (*get_netdev)(const struct fc_lport *lport);
        };

πŸ’… Members πŸ’…

  • priv β€” the associated fcoe interface. The structure is defined by the low level driver. 🫢
  • lport β€” the associated local port.
  • fcoe_pending_queue β€” the pending Rx queue of skbs. Literally the skb waiting room. 😭
  • fcoe_pending_queue_active β€” indicates if the pending queue is active.
  • max_queue_depth β€” max queue depth of pending queue.
  • min_queue_depth β€” min queue depth of pending queue.
  • timer β€” the queue timer. ⏰
  • destroy_work β€” handle for work context (to prevent RTNL deadlocks). Important little anti-deadlock icon.
  • data_src_addr β€” source address for data.
  • get_netdev β€” function that returns a net_device from lport.

πŸ¦‹ Description πŸ¦‹

An instance of this structure is to be allocated along with the Scsi_Host and libfc fc_lport structures. That’s the tea. β˜•

🌈 SEE ALSO 🌈

Kernel file ./include/scsi/libfcoe.h β€” go look at enum fip_state(9), struct fcoe_ctlr(9), fcoe_ctlr_priv(9), struct fcoe_fcf(9), struct fcoe_rport(9), is_fip_mode(9), struct fcoe_percpu_s(9), fcoe_get_netdev(9), and struct fcoe_netdev_mapping(9). All the friends are here. πŸ’œ


Signed with source-path energy from ./include/scsi, dated October 2026, and starring struct fcoe_port(9) β€” mwah, bestie πŸ’‹βœ¨

πŸ“¦ where this page comes from