ksz9477_cls_flower_add(9)
π ksz9477_cls_flower_add(9)
okay so bestie, welcome to the Kernel API Manual β this one's a (9) page, which is kernel-speak for "devs only, but you're a dev now so slay" β¨
πΈ NAME
ksz9477_cls_flower_add β adds a flow classification rule for a specified port on a ksz_device. that's it. that's the whole vibe π
π¦ SYNOPSIS
int ksz9477_cls_flower_add (struct dsa_switch *ds , int port , struct
flow_cls_offload *cls , bool ingress );
like yes the line break is doing its own thing in the middle of struct flow_cls_offload, we don't judge, we copy it exactly π
β¨ ARGUMENTS
dsβ the DSA switch instance. your main character switch, the one we're messing with π«Άportβ the port number you're adding the flow classification rule to. gotta be specific, bestie, no vague energy πclsβ theflow_cls_offloadinstance holding the flow rule itself. the actual rule, the payload, the moment πingressβ a flag telling us whether the rule gets applied on the ingress path. yes/no, in-or-out, that kind of thing π₯
π DESCRIPTION
so this function does the thing: it adds a flow classification rule for a specified port on a ksz_device. π«
before it commits though, it does a little vibe check β it checks whether ACL offloading is even supported, and then it parses the flow keys and actions. if the ACL is not supported? it just returns an error. no drama, no workaround, error, periodt π
also: if there are unprocessed entries hanging around, it goes ahead and parses the action for the rule. very "if you're still here let's finish this" of it π§
β RETURN
0 on success, or a negative error code on failure. that's the whole spectrum, bestie β flawless victory or a negative number, no in-between π
π SEE ALSO
- Kernel file
./drivers/net/dsa/microchip/ksz9477_tc_flower.c ksz9477_flower_parse_key_l2(9)ksz9477_flower_parse_key(9)ksz9477_flower_parse_action(9)ksz9477_cls_flower_del(9)
and that's the page!! mwah ππ«Ά
source: ./drivers/net/dsa/microchip Β· dated October 2026 β like, that's the version stamp and the date, right there in the sign-off, we stayed on theme, we ate, no crumbs π
πΈβ¨
π¦ 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