ENUM DPNI_OFFLOAD(9)
π enum dpni_offload(9) β so you wanna know what kind of offload we're talking about π
okay bestie, real talk: this is a page from the Kernel API Manual, and it's literally just a little enum that tells you which offload a command is aimed at. that's the whole vibe. no cap, it's small but it's iconic in its own way β¨
β¨ NAME β¨
enum dpni_offload β identifies a type of offload targeted by the command π―
like, when a command needs to know "hey, which offload are we doing here?", this enum is the answer. it's giving traffic director energy πββοΈ
πΈ SYNOPSIS πΈ
enum dpni_offload {
DPNI_OFF_RX_L3_CSUM ,
DPNI_OFF_RX_L4_CSUM ,
DPNI_OFF_TX_L3_CSUM ,
DPNI_OFF_TX_L4_CSUM
};
yes bestie, that trailing comma and that blank line before the closing brace are exactly how it's written β we copy verbatim in this house π
π¦ Constants π¦
okay so there are literally four members, and they're all checksum-coded. hit it:
DPNI_OFF_RX_L3_CSUMβ Rx L3 checksum validation π§Ύβ¨ (yep, receive side, layer 3, checksum gets validated)DPNI_OFF_RX_L4_CSUMβ Rx L4 checksum validation ππ (receive side, layer 4, same deal)DPNI_OFF_TX_L3_CSUMβ Tx L3 checksum generation π οΈπΈ (transmit side, layer 3, the checksum gets generated)DPNI_OFF_TX_L4_CSUMβ Tx L4 checksum generation π οΈβ (transmit side, layer 4, generated again)
lowkey notice the pattern:RX= validate,TX= generate, and L3/L4 each get one of each. the way that symmetry ate π
π SEE ALSO π
bestie, strap in, because this list is long and we're keeping every single one, periodt. first up, the actual file this lives in:
- Kernel file
./drivers/net/ethernet/freescale/dpaa2/dpni.hπ
and now the whole friend group π«Ά:
DPNI_MAX_TC(9),DPNI_MAX_DPBP(9),DPNI_ALL_TCS(9),DPNI_ALL_TC_FLOWS(9),DPNI_NEW_FLOW_ID(9),DPNI_OPT_TX_FRM_RELEASE(9),DPNI_OPT_NO_MAC_FILTER(9),DPNI_OPT_HAS_POLICING(9),DPNI_OPT_SHARED_CONGESTION(9),DPNI_OPT_HAS_KEY_MASKING(9),DPNI_OPT_NO_FS(9),DPNI_OPT_SHARED_FS(9),struct dpni_pools_cfg(9),struct dpni_attr(9),DPNI_ERROR_EOFHE(9),DPNI_ERROR_FLE(9),DPNI_ERROR_FPE(9),DPNI_ERROR_PHE(9),DPNI_ERROR_L3CE(9),DPNI_ERROR_L4CE(9),enum dpni_error_action(9),struct dpni_error_cfg(9),DPNI_BUF_LAYOUT_OPT_TIMESTAMP(9),DPNI_BUF_LAYOUT_OPT_PARSER_RESULT(9),DPNI_BUF_LAYOUT_OPT_FRAME_STATUS(9),DPNI_BUF_LAYOUT_OPT_PRIVATE_DATA_SIZE(9),DPNI_BUF_LAYOUT_OPT_DATA_ALIGN(9),DPNI_BUF_LAYOUT_OPT_DATA_HEAD_ROOM(9),DPNI_BUF_LAYOUT_OPT_DATA_TAIL_ROOM(9),struct dpni_buffer_layout(9),enum dpni_queue_type(9),union dpni_statistics(9),struct dpni_link_cfg(9),struct dpni_link_state(9),enum dpni_dist_mode(9),enum dpni_fs_miss_action(9),struct dpni_fs_tbl_cfg(9),struct dpni_rx_tc_dist_cfg(9),DPNI_FS_MISS_DROP(9),struct dpni_rx_dist_cfg(9),struct dpni_qos_tbl_cfg(9),enum dpni_dest(9),struct dpni_queue(9),struct dpni_queue_id(9),enum dpni_congestion_unit(9),enum dpni_congestion_point(9),struct dpni_dest_cfg(9),DPNI_CONG_OPT_FLOW_CONTROL(9),struct dpni_congestion_notification_cfg(9),struct dpni_taildrop(9),struct dpni_rule_cfg(9),DPNI_FS_OPT_DISCARD(9),DPNI_FS_OPT_SET_FLC(9),DPNI_FS_OPT_SET_STASH_CONTROL(9),struct dpni_fs_action_cfg(9),struct dpni_tx_shaping_cfg(9),struct dpni_single_step_cfg(9)
not me listing all of these π but fr fr, they're all here, none skipped, iykyk π
and that's the whole page bestie!! π tiny enum, huge main-character energy.
later, besties β this was served fresh from ./drivers/net/ethernet/freesca..., dated October 2026, and it's literally titled enum dpni_offload(9) ππ¦ slay π
π¦ 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