rte_tm_driver.h(3)
π rte_tm_driver.h β Library Functions Manual π
okay bestie, welcome to rte_tm_driver.h, a lil header from the DPDK crew π«Ά it's a Library Functions Manual page and it's giving "internals only, do not perceive me." stay with me, it's short and cute.
β¨ NAME β¨
rte_tm_driver.h β literally just the header itself, that's the whole name, no notes π
πΈ SYNOPSIS πΈ
#include <stdint.h>
#include <rte_errno.h>
#include 'rte_ethdev.h'
#include 'ethdev_driver.h'
#include 'rte_tm.h'
π Functions π
static int rte_tm_error_set (struct rte_tm_error *error, int code, enum
rte_tm_error_type type, const void *cause, const char *message)
const struct rte_tm_ops * rte_tm_ops_get (uint16_t port_id, struct
rte_tm_error *error)
π¦ Detailed Description π¦
RTE Generic Traffic Manager API (Driver Side) β¨
so like, this file hands out implementation helpers for internal use by PMDs. it is not meant to be exposed to applications, and it is not subject to ABI versioning. read that again bestie β no ABI promises here, none, zero, periodt. π
Definition in file rte_tm_driver.h.
π Function Documentation π
π int rte_tm_error_set (struct rte_tm_error * error, int code, enum rte_tm_error_type type, const void * cause, const char * message)
[inline], [static] β yes queen, both.
Initialize generic error structure. π οΈ
this function also sets rte_errno to a given value. the way it just does that, iconic.
Parameters
errorβ Pointer to error structure (may beNULL). yes,NULLis allowed, no judgement πcodeβ Related error code (rte_errno).typeβ Cause field and error type.causeβ Object responsible for the error. we found the culprit πmessageβ Human-readable error message.
Returns
Error code.
Definition at line 314 of file rte_tm_driver.h.
π const struct rte_tm_ops * rte_tm_ops_get (uint16_t port_id, struct rte_tm_error * error)
Get generic traffic manager operations structure from a port π
Parameters
port_idβ The port identifier of the Ethernet device.errorβ Error details.
Returns
The traffic manager operations structure associated with port_id on success, NULL otherwise. so if you get NULL... that's a no from the port, bestie π
π Author π
Generated automatically by Doxygen for DPDK from the source code. π€β¨
lowkey a warning for you: these helpers are internal PMD stuff, not for applications, and there's no ABI versioning protecting you. fr fr, don't build your app on them and then act surprised. π
and that's the whole page, you ate it π this was DPDK, Version 25.11.3, and the page is rte_tm_driver.h(3). mwah, go forth and manage your traffic ππ¦π
π¦ where this page comes from
- ubuntu resolute: dpdk-doc 25.11.3-0ubuntu0.26.04.1 Β· BSD-3-Clause
- ubuntu stonking: dpdk-doc 25.11.3-1 Β· BSD-3-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms