ice_devlink_...fwd_validate(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

okay so bestie, we're in the Kernel API Manual today (yes, that one, the big book of C spells) and the page we're reading is ice_devlink_...fwd_validate(9) β€” the abbreviated name, because the full one is ice_devlink_local_fwd_validate and it's lowkey a mouthful. it's the little validator that goes "hmm, is this local_fwd value even legal?" before anybody commits to it. no cap, it's giving gatekeeper energy and honestly? she's serving. ✨


🌸 NAME 🌸

ice_devlink_local_fwd_validate β€” Validate passed local_fwd parameter value.

like, literally just that. it checks the vibe of a local_fwd value and tells you if it passes. periodt. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

int ice_devlink_local_fwd_validate (struct devlink *devlink , u32 id ,
       union devlink_param_value *val , struct netlink_ext_ack *extack );

one function, four args, returns an int. she's compact and she knows it πŸ’–


πŸ¦‹ ARGUMENTS πŸ¦‹

  • devlink β€” Unused pointer to devlink instance. yeah queen, she's there but she's not participating. decorative. main character in the cast list only πŸ™ˆ
  • id β€” The parameter ID to validate. this is which parameter we're looking at, so we know we're judging the right one. 🎯
  • val β€” Value to validate. the actual thing under the microscope. this is the moment she's been training for ⭐
  • extack β€” Netlink extended ACK structure. the little messenger that carries extra info back through netlink β€” iykyk 😌

πŸ”₯ DESCRIPTION πŸ”₯

okay so here's the whole tea β˜• β€” the supported values are:

  • "enabled" β€” local_fwd is enabled βœ…
  • "disabled" β€” local_fwd is disabled 🚫
  • "prioritized" β€” local_fwd traffic is prioritized in scheduling πŸ‘‘πŸ”₯

that's it. that's the list. if you're passing something that isn't one of those three strings, she's gonna have feelings about it, and those feelings are negative. πŸ’€

ngl, don't try to get creative with your strings here. she accepts exactly three values and she is not in a generous mood about synonyms πŸ’…

πŸ’œ RETURN πŸ’œ

  • Zero when the passed parameter value is supported βœ…βœ¨
  • Negative value on error 😭

fr fr that's the whole contract: zero = slay, negative = not slay. 🫢


🌈 SEE ALSO 🌈

also the kernel file lives right here, in case you wanna go snooping:

./drivers/net/ethernet/intel/ice/devlink/devlink.c

and here's the whole friend group β€” every one of these cuties is in the same orbit:

thirty-five besties. thirty-five. she keeps her circle tight but large πŸ«ΆπŸ’–


and that's the page, babe πŸŽ€ source path is ./drivers/net/ethernet/intel/i... (yes it's truncated, no I can't fix it, the manpage said so πŸ™ˆ), dated October 2026, and it signs off as ice_devlink_...fwd_validate(9) β€” same as it opened. full circle, iconic behavior, we love a consistent queen πŸ‘‘βœ¨πŸ’…

πŸ“¦ where this page comes from