dpni_add_vlan_id(9)
π dpni_add_vlan_id β hey bestie, let's talk VLAN ID filters
okay so real talk, this is a page from the Kernel API Manual (that's the manual name, bestie, in case you were wondering π) and it's about one very specific little function: dpni_add_vlan_id. It adds a VLAN ID filter. That's the whole vibe. Slay.
β¨ NAME β¨
dpni_add_vlan_id β Add VLAN ID filter π
πΈ SYNOPSIS πΈ
int dpni_add_vlan_id (struct fsl_mc_io *mc_io , u32 cmd_flags , u16
token , u16 vlan_id , u8 flags , u8 tc_id , u8 flow_id );
no cap, that's exactly how it's written, commas and spacing and all. iconic honestly.
π¦ ARGUMENTS π¦
mc_ioβ Pointer to MC portal's I/O object. like, your entry point to the whole thing π«Άcmd_flagsβ Command flags; one or more of'MC_CMD_FLAG_'βtokenβ Token of DPNI object πvlan_idβ VLAN ID to add. the actual star of the show πflagsβ okay so this one has two moods, and the page spells them out exactly:0βtc_idandflow_idwill be ignored. Pkt with thisvlan_idwill be passed to the next classification stagesDPNI_VLAN_SET_QUEUE_ACTIONβ Pkt with thisvlan_idwill be forward directly to queue defined by thetc_idandflow_idπ (yes that's the original wording, "will be forward", keeping it verbatim because the facts do not change, bestie)
tc_idβ Traffic class selection (0-7) πflow_idβ Selects the specific queue out of the set allocated for the same astc_id. Value must be in range0toNUM_QUEUES - 1π
π₯ RETURN π₯
bestie. the RETURN section is literally empty in the original. like, nothing. void. a whole empty section π so I'm not gonna invent anything for you β nothing is listed here, no cap, that's the tea π
π§ SEE ALSO π§
the kernel file lives at:
Kernel file ./drivers/net/ethernet/freescale/dpaa2/dpni.c
and here's the rest of the fam, all of them, every single one, in order π«Ά
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_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)
and that's the whole page, bestie πβ¨
cute little sign-off before you go: the source/version line at the bottom reads ./drivers/net/ethernet/freesca... (yes, truncated exactly like that, we love a cliffhanger π) and it's dated October 2026 ποΈπ and then it just says dpni_add_vlan_id(9) again because manpages love a little outro. bye bestie, go filter those VLANs π
πΈ
π¦ 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