STRUCT EFX_REP(9)
β¨ struct efx_rep(9) β¨
okay so bestie, welcome to the Kernel API Manual π this one is all about struct efx_rep and honestly? it's giving "private data for an Efx representor" and we're obsessed. let's get into it π
πΈ NAME πΈ
struct efx_rep β private data for an Efx representor, no cap π
π¦ SYNOPSIS π¦
struct efx_rep {
struct efx_nic *parent;
struct net_device *net_dev;
u32 msg_enable;
u32 mport;
unsigned int idx;
unsigned int write_index, read_index;
unsigned int rx_pring_size;
struct efx_tc_flow_rule dflt;
struct list_head list;
struct list_head rx_list;
spinlock_t rx_lock;
struct napi_struct napi;
struct efx_rep_sw_stats stats;
struct devlink_port *dl_port;
};
like, that's the whole squad right there π every single one of these fields is a main character in their own way:
parentβ the efx PF that manages this representor, literally the mom friend of the struct π«Άnet_devβ the representor netdevice, that's its whole identity fr frmsg_enableβ log message enable flags, aka the volume knob for how chatty it gets π£οΈmportβ m-port ID of the corresponding VF, you know the vibe πidxβ VF index, its little number in the lineup β¨write_indexβ number of packets enqueued torx_listπ₯read_indexβ number of packets consumed fromrx_listπ€rx_pring_sizeβ max length of the RX list, the limit bestie, the ceiling π§dfltβ default-rule for MAE switching, the fallback plan when nobody's picking πlistβ entry onefx->vf_reps, it's on the list (literally) πrx_listβ list of SKBs queued for receive in NAPI poll, the queue of destiny πrx_lockβ protectsrx_list, do NOT skip the lock bestie, that's how you get chaos πnapiβ NAPI control structure, iconic, no notes βstatsβ software traffic counters for netdev stats, the receipts πdl_portβ devlink port associated to this netdev representor, the linked bestie π
reminder bestie:rx_lockprotectsrx_list. that's not a suggestion, that's the whole point. miss it and it's giving undefined chaos π
π§ SEE ALSO π§
- Kernel file
./drivers/net/ethernet/sfc/ef100_rep.hβ go read it, iykyk πβ¨
and that's the page!! mwah π this little beauty lives in ./drivers/net/ethernet/sfc and it's dated October 2026 β so like, future iconic behavior πβ¨ go forth and represent, bestie π¦π
π¦ 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