ksz9477_cls_flower_del(9)
π ksz9477_cls_flower_del β kernel API manual, bestie edition
okay so bestie, welcome to ksz9477_cls_flower_del(9) β¨ like yes the title is a whole mouthful but it's literally just "the function that deletes a flow classification rule for one specific port on a ksz_device." she's the cleanup crew, she's the one who shows up after the party and takes the decorations down π
πΈ NAME πΈ
ksz9477_cls_flower_del β remove a flow classification rule for a specified port on a ksz_device. no cap, that's the whole job description π
β¨ SYNOPSIS β¨
int ksz9477_cls_flower_del (struct dsa_switch *ds , int port , struct
flow_cls_offload *cls , bool ingress );
like look at her signature, she's giving very "four parameters, zero drama" π¦ (well, some drama β see RETURN below π)
π«Ά ARGUMENTS π«Ά
dsβ The DSA switch instance. this is the switch itself, the main character πportβ The port number to remove the flow classification rule from. yes, the specific port, not all of them, we are targeted here πclsβ Theflow_cls_offloadinstance containing the flow rule. she's carrying the rule, treat her with respect π§ingressβ A flag indicating if the rule is applied on the ingress path. ingress girlies rise up π
π DESCRIPTION π
okay so here's the vibe check: this function removes a flow classification rule for a specified port on a ksz_device. simple as that, lowkey πΈ
but first β and this is the important part β she checks if the ACL is initialized. and if it is not initialized? she returns an error. periodt. no ACL, no service π
if the ACL is initialized, she removes entries with the specified cookie and rewrites the ACL list. so she's not just deleting, she's doing a whole little renovation afterwards, iconic behavior honestly β¨π₯
β RETURN β
0 on success or a negative error code on failure. that's it, that's the whole fortune cookie π (negative numbers are never a slay, but at least you know what happened π)
π¦ SEE ALSO π¦
- Kernel file
./drivers/net/dsa/microchip/ksz9477_tc_flower.cβ go read the source, iykyk π ksz9477_flower_parse_key_l2(9)ksz9477_flower_parse_key(9)ksz9477_flower_parse_action(9)ksz9477_cls_flower_add(9)β yes bestie, the add counterpart, the yin to this yang π
and that's the page!! π this one lives under ./drivers/net/dsa/microchip, dated October 2026, and she answers to the name ksz9477_cls_flower_del(9) β go delete some flow rules responsibly, bestie, ily πβ¨π«Ά
π¦ 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