STRUCT HFI1_NETDEV_RX(9)
π struct hfi1_netdev_rx(9)
okay bestie, welcome to the Kernel API Manual β¨ this one's a struct page β the whole thing you need to set up and run an HFI netdev. it's giving backstage-pass energy: all the bookkeeping, none of the spotlight π
πΈ NAME
struct hfi1_netdev_rx β literally the data required to setup and run HFI netdev. that's it, that's the whole vibe π
β¨ SYNOPSIS
struct hfi1_netdev_rx {
struct net_device *rx_napi;
struct hfi1_devdata *dd;
struct hfi1_netdev_rxq *rxq;
int num_rx_q;
int rmt_start;
struct xarray dev_tbl;
atomic_t enabled;
atomic_t netdevs;
};
yes the closing brace is indented, no we are not fixing it, it's iconic π
π Members
rx_napiβ the dummy netdevice that exists so you can "poll" the receive contexts. the quotes are doing a lot of work there and honestly they've earned it π«Άddβ it's anhfi1_devdata. that's the whole description. short king behavior fr fr πrxqβ pointer to the dummy netdev's receive queues π¦num_rx_qβ number of receive queues. a count. we love a simple int β¨rmt_startβ okay so this one is in the struct but the Members list does not describe it. i'm not gonna sit here and make something up about it, that's not the move π it's anint, it's calledrmt_start, that's genuinely all we're told. iykyk πdev_tblβ the netdev table for unique identifier IPoIb VLANs πenabledβ atomic counter of netdevs that are enabling receive queues. when it hits0, NAPI gets disabled. so likeβ¦ last one out turns the lights off πnetdevsβ atomic counter of netdevs using the dummy netdev. when this one hits0, the receive queues get freed π two counters, two different jobs, do not mix them up
ngl the two atomic counters are the main character energy of this struct β one is about NAPI, one is about freeing rx queues, and they both bottom out at 0. keep your eyes on them π
π₯ SEE ALSO
- Kernel file
./drivers/infiniband/hw/hfi1/netdev.h struct hfi1_netdev_rxq(9)
that's the page, bestie, go forth and poll responsibly βπ this little gem lives under ./drivers/infiniband/hw/hfi1 and it's dated October 2026 β mwah, slay, periodt π
ππ¦
π¦ 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