ksz9477_cls_flower_del(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… 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 β€” The flow_cls_offload instance 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 πŸ¦‹


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