STRUCT NFP_ABM(9)
π NAME π
struct nfp_abm β the ABM NIC app structure, bestie. that's it, that's the vibe β¨
okay so quick manual-name moment before we dive in: this page lives in the Kernel API Manual, and it's literally all about one struct. buckle up π
π¦ SYNOPSIS π¦
here's the whole thing, character for character, no cap:
struct nfp_abm {
struct nfp_app *app;
unsigned int pf_id;
unsigned int red_support;
unsigned int num_prios;
unsigned int num_bands;
unsigned int action_mask;
u32 *thresholds;
unsigned long *threshold_undef;
u8 *actions;
size_t num_thresholds;
unsigned int prio_map_len;
u8 dscp_mask;
enum devlink_eswitch_mode eswitch_mode;
const struct nfp_rtsym *q_lvls;
const struct nfp_rtsym *qm_stats;
const struct nfp_rtsym *q_stats;
};
so many fields. she's giving main character energy π
πΈ Members πΈ
okay, field-by-field tour, keep up π«Ά
appβ back pointer tonfp_app. yes bestie, it's a back pointer. she points home πpf_idβ the ID of our PF link πred_supportβ is RED offload supported. short answer: it tells you whether RED offload is supported πnum_priosβ number of supported DSCP prioritiesnum_bandsβ number of supported DSCP priority bands πΆaction_maskβ bitmask of supported actionsthresholdsβ current threshold configurationthreshold_undefβ bitmap of thresholds which have not been set. love a bitmap that keeps receipts πactionsβ current FW action configurationnum_thresholdsβ number of thresholds and bits inthreshold_undef. they match, periodt πprio_map_lenβ computed length of FW priority map (in bytes) πdscp_maskβ mask FW will apply on DSCP fieldeswitch_modeβ devlink eswitch mode, advanced functions only visible in switchdev mode. read that again: only visible in switchdev mode ππ₯q_lvlsβ queue level control areaqm_statsβ queue statistics symbolq_statsβ basic queue statistics (only in per-band case) β
π§ SEE ALSO π§
go read these next, iykyk:
- Kernel file
./drivers/net/ethernet/netronome/nfp/abm/main.h struct nfp_alink_stats(9)struct nfp_alink_xstats(9)struct nfp_qdisc(9)struct nfp_abm_link(9)
ok one tiny housekeeping note so nothing gets lost: this page is from ./drivers/net/ethernet/netrono... and it's dated October 2026 π
k that's the whole struct, go slay your networking, 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