dpni_set_max_frame_length(9)
π
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 ofMC_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:
dpni_prepare_key_cfg(9)dpni_open(9)dpni_close(9)dpni_set_pools(9)dpni_enable(9)dpni_disable(9)dpni_is_enabled(9)dpni_reset(9)dpni_set_irq_enable(9)dpni_get_irq_enable(9)dpni_set_irq_mask(9)dpni_get_irq_mask(9)dpni_get_irq_status(9)dpni_clear_irq_status(9)dpni_get_attributes(9)dpni_set_errors_behavior(9)dpni_get_buffer_layout(9)dpni_set_buffer_layout(9)dpni_set_offload(9)dpni_get_qdid(9)dpni_get_tx_data_offset(9)dpni_set_link_cfg(9)dpni_get_link_cfg(9)dpni_get_link_state(9)dpni_get_max_frame_length(9)β the read-only sister page, obsessed with her tbh πdpni_set_multicast_promisc(9)dpni_get_multicast_promisc(9)dpni_set_unicast_promisc(9)dpni_get_unicast_promisc(9)dpni_set_primary_mac_addr(9)dpni_get_primary_mac_addr(9)dpni_get_port_mac_addr(9)dpni_enable_vlan_filter(9)dpni_add_vlan_id(9)dpni_remove_vlan_id(9)dpni_add_mac_addr(9)dpni_remove_mac_addr(9)dpni_clear_mac_filters(9)dpni_set_rx_tc_dist(9)dpni_set_congestion_notification(9)dpni_set_queue(9)dpni_get_queue(9)dpni_get_statistics(9)dpni_set_taildrop(9)dpni_get_taildrop(9)dpni_get_api_version(9)dpni_set_rx_fs_dist(9)dpni_set_rx_hash_dist(9)dpni_add_fs_entry(9)dpni_remove_fs_entry(9)dpni_set_qos_table(9)dpni_add_qos_entry(9)dpni_remove_qos_entry(9)dpni_clear_qos_table(9)dpni_set_tx_shaping(9)dpni_get_single_step_cfg(9)dpni_set_single_step_cfg(9)
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
- 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