STRUCT NFP_DEVLINK_PARAM_U8_ARG(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, welcome to the Kernel API Manual (section 9, the fun one πŸ’…) β€” this page is all about struct nfp_devlink_param_u8_arg, aka the Devlink u8 parameter get/set arguments. it's giving "little struct, big job" and honestly? we're obsessed 🫢


🌸 SYNOPSIS 🌸

here's the whole vibe, laid out exactly:

struct nfp_devlink_param_u8_arg {
    const char *hwinfo_name;
    const char *default_hi_val;
    int invalid_dl_val;
    u8 hi_to_dl[4];
    u8 dl_to_hi[4];
    u8 max_dl_val;
    u8 max_hi_val;
 };

no cap, that's the entire struct. six little members and a whole lotta mapping energy 🌈


πŸŽ€ Members πŸŽ€

  • hwinfo_name β€” the HWinfo key name. literally just the name of the key, that's her whole personality ✨
  • default_hi_val β€” the default HWinfo value you fall back on if the HWinfo doesn't exist. backup plan energy πŸ¦‹
  • invalid_dl_val β€” the devlink value to use when the HWinfo is unknown/invalid. and heads up: it's -errno if there's no unknown/invalid value available, so don't be surprised 😭
  • hi_to_dl β€” the HWinfo β†’ devlink value mapping. translating one direction, iconically πŸ”₯
  • dl_to_hi β€” the devlink β†’ hwinfo value mapping. and now the other direction, bc we contain multitudes πŸ’œ
  • max_dl_val β€” maximum devlink value supported. for validation only, bestie β€” don't go using it as a real value, iykyk πŸ‘‘
  • max_hi_val β€” maximum HWinfo value supported. also for validation only! same rule, no exceptions πŸ™ˆ

πŸ¦‹ SEE ALSO πŸ¦‹

  • Kernel file ./drivers/net/ethernet/netronome/nfp/devlink_param.c β€” go read the source, it's right there and it's lowkey iconic πŸ“–

ngl, a note for the validation girlies: max_dl_val and max_hi_val are for validation only. that's the whole warning. that's the post. πŸ’€

🌸 okay that's the page, bestie! this came from the source/version line ./drivers/net/ethernet/netrono... dated October 2026, and yes it's still filed under struct nfp_...param_u8_arg(9) β€” go forth and map those values, periodt πŸ’–πŸŽ€πŸ¦‹

πŸ“¦ where this page comes from