ksz9477_flower_parse_action(9)
π 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β theksz_deviceinstance. 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 youclsβ theflow_cls_offloadinstance 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 π
- Kernel file
./drivers/net/dsa/microchip/ksz9477_tc_flower.cβ go read it, iykyk π ksz9477_flower_parse_key_l2(9)ksz9477_flower_parse_key(9)ksz9477_cls_flower_add(9)ksz9477_cls_flower_del(9)
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
- 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