dpni_set_errors_behavior(9)
π dpni_set_errors_behavior(9) β like, the Kernel API Manual page, bestie
okay so this is dpni_set_errors_behavior from the Kernel API Manual (section 9, the kernel API girlies) and honestly? she's a little short but she works. Let's get into it π«Ά
β¨ NAME β¨
dpni_set_errors_behavior β literally just sets the errors behavior. that's the whole vibe. π
πΈ SYNOPSIS πΈ
int dpni_set_errors_behavior (struct fsl_mc_io *mc_io , u32 cmd_flags ,
u16 token , struct dpni_error_cfg *cfg );
she returns an int, she takes four things, and yes you have to pass all of them. no shortcuts bestie π
π¦ ARGUMENTS π¦
mc_ioβ a pointer to the MC portal's I/O object. like, the portal. the I/O object. your entry point, your main character π«Άcmd_flagsβ command flags, and they're one or more of theMC_CMD_FLAG_crew. pick your flags, queen πtokenβ the token of the DPNI object. that's your little ID badge for the DPNI you're talking to πcfgβ the errors configuration. this is where you actually say what you want the errors behavior to be β¨
π DESCRIPTION π
so the one actual lore drop here is: this function may be called numerous times with different error masks. numerous. like, as many times as you want, with different masks each time. lowkey iconic that she's reusable like that π₯
β RETURN β
ngl the page doesn't say anything here β the section exists and the content is justβ¦ not there. so we're not gonna invent return values, we're just gonna acknowledge the silence ππ
π SEE ALSO π
the kernel file that's giving source of truth:
./drivers/net/ethernet/freescale/dpaa2/dpni.c
and then the whole entire friendship group of DPNI functions β every single one, no cap:
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_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_set_tx_shaping(9),dpni_get_single_step_cfg(9),dpni_set_single_step_cfg(9)
that's the whole group chat, everyone accounted for, no one left on read π§
π real talk: keep the literal bits literal β the flags, the token, the config struct pointer β because the kernel does not accept vibes as arguments, bestie π
okay that's the page!! sourced from ./drivers/net/ethernet/freesca... and dated October 2026 β ty for coming to my TED talk, 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