ksz9477_flower_parse_key_l2(9)
π ksz9477_flower_parse_key_l2(9) π
okay so bestie, welcome to the Kernel API Manual β yes that's Kernel API Manual, capital letters, we're being official today π and this page is literally all about ksz9477_flower_parse_key_l2. Sit down, hydrate, let's go.
β¨ NAME β¨
ksz9477_flower_parse_key_l2 β it parses the Layer 2 key from a flow rule and then configures the ACL entries accordingly. that's it, that's the whole job, and honestly? she ate. π
π¦ SYNOPSIS π¦
int ksz9477_flower_parse_key_l2 (struct ksz_device *dev , int port ,
struct netlink_ext_ack *extack , struct flow_rule *rule , unsigned long
cookie , u32 prio );
no cap, that's the whole signature β six args, one int coming back at you. π«Ά
πΈ ARGUMENTS πΈ
every single one, bestie, we're not skipping anybody:
devβ a pointer to thestruct ksz_device. the main character device struct, everything hangs off her πportβ the port number. just a plain number, no drama. π’extackβ a pointer to thestruct netlink_ext_ack. she's the messenger when things go sideways, iykyk.ruleβ a pointer to thestruct flow_rule. this is where the Layer 2 key is living and we're about to parse the heck out of it πcookieβ the cookie you wanna associate with the entry πͺ (yes, literally called a cookie, we love that for us)prioβ the priority of the entry. au32, iconic, no notes. β
π₯ DESCRIPTION π₯
so here's the vibe check: this function parses the Layer 2 key out of the flow rule, then configures the corresponding ACL entries. that's the whole arc. π¦
but before she goes ahead and starts configuring, she does her little pre-flight checks β she checks for unsupported offloads and for available entries before proceeding with the configuration. like a true responsible queen, she looks before she leaps. πβ¨
fr fr do not skip the vibe check β the whole point is she validates before she configures anything.
π RETURN π
0on success π- a negative error code on failure π
that's it. zero means slay, negative means the situation has gone off the rails. π
π SEE ALSO π
go read these next, bestie, they're the friend group:
- Kernel file
./drivers/net/dsa/microchip/ksz9477_tc_flower.cπ ksz9477_flower_parse_key(9)ksz9477_flower_parse_action(9)ksz9477_cls_flower_add(9)ksz9477_cls_flower_del(9)
all of them, no cap, every single reference is right there. π«Ά
and that's the page!! mwah π huge sign-off energy: this little beauty lives in ./drivers/net/dsa/microchip, and she was stamped October 2026 β so yeah, she's dated, she's sourced, she's iconic, periodt. πππ
π¦ 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