ocelot_ifh_set_basic(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ocelot_ifh_set_basic(9) β€” like, the Kernel API Manual page, bestie πŸŽ€

okay so welcome to the glow-up of ocelot_ifh_set_basic, straight out of the Kernel API Manual ✨ this is the little function that fills in the basic deets on an Injection Frame Header, and honestly? she's doing the most important background work and nobody claps. we're clapping today. πŸ‘‘


🌸 SYNOPSIS 🌸

void ocelot_ifh_set_basic (void *ifh , struct ocelot *ocelot , int port
, u32 rew_op , struct sk_buff *skb );

that's the whole vibe. five arguments, returns absolutely nothing (void), and yet she's carrying the packet on her back fr fr. πŸ’€


πŸ¦‹ ARGUMENTS πŸ¦‹

  • ifh β€” pointer to the Injection Frame Header memory. this is the canvas, bestie, and you're about to paint on it. 🎨
  • ocelot β€” the switch private data structure. the mysterious main character. you don't question her, you just pass her along. πŸ‘‘
  • port β€” the egress port number. where the packet is headed, iykyk. πŸšͺ
  • rew_op β€” the egress rewriter operation for PTP. yes that's the exact wording, no I'm not paraphrasing, it's giving very specific and we respect it. ⏱️
  • skb β€” pointer to the socket buffer, aka the packet. the little guy. the payload. the reason we're all here. 🫢

πŸ’– DESCRIPTION πŸ’–

so what she actually does: she populates the Injection Frame Header with the basic information for this skb β€” and the list is literally:

  • the analyzer bypass bit
  • destination port
  • VLAN info
  • egress rewriter info

that's it. that's the whole job. no cap. a modest little four-item to-do list that keeps the whole switch from having a meltdown. lowkey iconic. 🌈

ngl, the word "basic" is doing her dirty here β€” nothing about frame headers is basic, she's just humble. πŸ’…

🧚 SEE ALSO 🧚

  • Kernel file ./drivers/net/ethernet/mscc/ocelot.c β€” go read her source, she's right there πŸ“
  • ocelot_update_vlan_reclassify_rule(9) β€” the friend in the same friend group, go say hi πŸ’œ

and that's the page!! mwah πŸ’‹ this lil writeup came to you courtesy of the kernel file at ./drivers/net/ethernet/mscc, dated October 2026, and yes she's officially ocelot_ifh_set_basic(9) β€” stan her, cite her, set your basic info responsibly. πŸŽ€βœ¨πŸ¦‹

πŸ“¦ where this page comes from