ksz9477_flower_parse_action(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ksz9477_flower_parse_action(9) β€” the Kernel API Manual, bestie edition πŸŽ€

okay so real talk, this is a page from the Kernel API Manual and it's about ksz9477_flower_parse_action, which lowkey has main character energy in the Microchip DSA world. sit down, grab a strawberry πŸ“, we're doing this.


✨ NAME ✨

ksz9477_flower_parse_action β€” literally parses flow rule actions for a specified port on a ksz_device. that's the whole vibe. no cap. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

int ksz9477_flower_parse_action (struct ksz_device *dev , int port ,
       struct netlink_ext_ack *extack , struct flow_cls_offload *cls , int
       entry_idx );

bestie the signature is right there, do not touch it, it's iconic exactly as it is πŸ™ˆ


🌸 ARGUMENTS 🌸

  • dev β€” the ksz_device instance. your main character struct, the one everything else orbits around πŸ‘‘
  • port β€” the port number you're parsing the flow rule actions for. gotta know which port, always 🫢
  • extack β€” the netlink extended ACK, and it's literally the messenger that reports errors back. when things go sideways (😭), this is who tells you
  • cls β€” the flow_cls_offload instance containing the flow rule. the whole rule lives in here, no secrets 🀫
  • entry_idx β€” the index of the ACL entry where the action gets stored. yes, the ACL entry. yes, the index. periodt πŸ’€

πŸ’– DESCRIPTION πŸ’–

so what does it actually do? it checks if the actions inside the flow rule are supported by the device. that's the whole job. vibe check on the actions ✨

and here's the tea: currently, only actions that change priorities are supported. so if you roll up with some fancy other action, nope, unsupported, not today bestie πŸ’…

🚨 and if unsupported actions are encountered, an error message gets set in the extended ACK. so yeah, extack is doing the "hey girl, that didn't work" job. not me being the bearer of bad news 😭

🌈 RETURN 🌈

0 on success, or a negative error code on failure. that's it, that's the whole mood. simple, clean, slay πŸ”₯


πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group fr fr 🫢


🧚 and that's the page!! the source/version line says ./drivers/net/dsa/microchip, and it's dated October 2026 in the Kernel API Manual. so yeah β€” october 2026, from that drivers/net/dsa/microchip directory, ksz9477_flower_parse_action(9). iconic, ate, no crumbs left πŸ’–βœ¨πŸŽ€
πŸ“¦ where this page comes from