dpni_set_tx_shaping(9)
π dpni_set_tx_shaping β the Kernel API Manual page your fave netdev bestie wrote for you
Hiii so this is a page from the Kernel API Manual, and it's all about dpni_set_tx_shaping(9) β like, setting the transmit shaping on a DPNI object. Yes queen, we're doing traffic shaping today. π
β¨ NAME β¨
dpni_set_tx_shaping β Set the transmit shaping πΈ
π₯ SYNOPSIS π₯
int dpni_set_tx_shaping (struct fsl_mc_io *mc_io , u32 cmd_flags , u16
token , const struct dpni_tx_shaping_cfg *tx_cr_shaper , const struct
dpni_tx_shaping_cfg *tx_er_shaper , int coupled );
It returns an int, bestie. That's the whole vibe. π«Ά
π¦ ARGUMENTS π¦
Okay so here's the roster, and every single one of them matters:
mc_ioβ Pointer to MC portal's I/O object. Like, the portal. The I/O object. You know the one. β¨cmd_flagsβ Command flags; one or more of'MC_CMD_FLAG_'. Lowkey just pick your flags and go.tokenβ Token of DPNI object. It's giving "your ticket to the DPNI show". ποΈtx_cr_shaperβ TX committed rate shaping configuration. The committed one. The main character one. πtx_er_shaperβ TX excess rate shaping configuration. The excess one, also invited to the party.coupledβ Committed and excess rate shapers are coupled. They're linked. They're a package deal. iykyk π
π RETURN π
Not meβ the original page literally leaves this section empty. No return values listed. Nothing. Nada. The void. π So that's exactly what you get here too: nothing. I refuse to make up facts, bestie. Not today. β
π SEE ALSO π
First up, the source of truth herself:
- Kernel file
./drivers/net/ethernet/freescale/dpaa2/dpni.c
And now the entire friend group β every one of these, no skipping, periodt:
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_set_max_frame_length(9)dpni_get_max_frame_length(9)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_get_single_step_cfg(9)dpni_set_single_step_cfg(9)
Slay. That's 55 cross-references and I did not drop a single one. π
Go shape that transmit traffic, bestie. Committed rate, excess rate, coupled or not β you've got the whole toolkit. β¨
Sign-off time π this page came from ./drivers/net/ethernet/freesca... (yes, that's literally how the footer truncates it, don't come for me) and it's dated October 2026. Mwah, love you, bye! ππ¦πΈ
π¦ 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