ksz9477_cls_flower_add(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

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


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