dpni_set_max_frame_length(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… dpni_set_max_frame_length β€” a.k.a. the "how big is too big" button

okay so bestie, welcome to the Kernel API Manual ✨ this one lives in section 9 (kernel interfaces, iykyk) and its whole personality is: set the maximum received frame length. That's it. That's the function. πŸŽ€


πŸ¦‹ NAME

dpni_set_max_frame_length β€” Set the maximum received frame length.


✨ SYNOPSIS

int dpni_set_max_frame_length (struct fsl_mc_io *mc_io , u32 cmd_flags ,
u16 token , u16 max_frame_length );

It returns an int, and it takes four things. Four. That's it. Slay. πŸ’œ


πŸŽ€ ARGUMENTS

  • mc_io β€” Pointer to MC portal's I/O object. Yes, the pointer-to-the-thing era, we love her. 🫢
  • cmd_flags β€” Command flags; one or more of MC_CMD_FLAG_. (Note the trailing underscore in the manpage β€” that's literally how it's written, don't come for me. πŸ™ˆ)
  • token β€” Token of DPNI object. Your little VIP pass for the DPNI. 🎟️
  • max_frame_length β€” Maximum received frame length (in bytes); frame is discarded if its length exceeds this value. 🚨 Like, gone. Off the guest list. Not invited to the party. This is the whole point of the function, so like… lowkey the main character. πŸ‘‘

🌸 RETURN

Real talk: the original page lists a RETURN section and then… nothing. No statuses, no codes, no gossip. Absolutely giving "I have no notes." πŸ’€ So like β€” there's nothing documented here to report, and I'm not gonna make something up, because we don't invent facts in this group chat. 🧚

Heads up bestie: the source page gives you no return value info. I'm not about to guess. πŸ™…β€β™€οΈ

πŸ”₯ SEE ALSO

The big one. The whole squad. Every single one of these is on the page, and yes, we're listing all of them because nobody gets left out of the group photo. πŸ’–

  • Kernel file ./drivers/net/ethernet/freescale/dpaa2/dpni.c

And the friends:

Fifty-six entries. We counted. We did not skip. Periodt. πŸ’…


okay that's the whole page, bestie β€” go forth and set that max frame length responsibly πŸ¦‹βœ¨

sign-off time πŸŽ€ this lil page comes from the source file ./drivers/net/ethernet/freesca... (yes, it's truncated exactly like that in the footer, lol), and the footer date is October 2026, tagged with dpni_set_max_frame_length(9). Mwah. πŸ’–

πŸ“¦ where this page comes from