rte_mtr_error(3)
π rte_mtr_error π
okay bestie, gather round, because today we're getting into rte_mtr_error(3) from the DPDK Library Functions Manual and honestly? it's giving "small struct, big feelings" β¨
πΈ NAME πΈ
rte_mtr_error β the little struct that tells you what went wrong when your traffic metering shenanigans go sideways π«Ά
β¨ SYNOPSIS β¨
#include <rte_mtr.h>
π Data Fields
enum rte_mtr_error_type typeconst void * causeconst char * message
π¦ Detailed Description π¦
It's a verbose error structure definition, periodt. Like, she's not just a vibes-only "something broke" β she tells the whole story π
So here's the tea: this object is normally allocated by applications and set by PMDs, and the message points to a constant string which does not need to be freed by the application. Iconic, no cleanup required, we love that for us π
But (and this is the part where you go π) its pointer can be considered valid only as long as its associated DPDK port remains configured. Closing the underlying device or unloading the PMD invalidates it. So don't be holding onto that pointer like it's your emotional support bestie after the port's gone β she's gone too π
And listen: both cause and message may be NULL regardless of the error type. Yep, even when there's an error type. No cap. π
Definition at line 554 of file rte_mtr.h.
π Field Documentation π
π enum rte_mtr_error_type type
Cause field and error type. That's the "what kind of problem are we having today" field π
Definition at line 555 of file rte_mtr.h.
πΈ const void* cause
Object responsible for the error. The literal culprit. The main character of the crime scene π₯
Definition at line 556 of file rte_mtr.h.
π const char* message
Human-readable error message β aka the part you actually read instead of squinting at numbers β¨
Definition at line 557 of file rte_mtr.h.
β Author β
Generated automatically by Doxygen for DPDK from the source code. (Not a human author, just a very productive robot π§)
okay that's the whole page, bestie, you ate that π«Ά and just so we're keeping receipts: this was auto-magic'd out of the DPDK docs, Version 25.11.3, so if you're on a different version, vibe check your own headers first π πβ¨
π¦ 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