ocelot_ifh_set_basic(9)
π 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
- 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