rte_flow_error(3)

✨ NAME ✨

rte_flow_error β€” bestie, it's the verbose error struct from DPDK's flow API, and it's here to tell you exactly what went wrong πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

#include <rte_flow.h>

πŸŽ€ Data Fields πŸŽ€

  • enum rte_flow_error_type type β€” the type, obviously, but also the cause field iykyk
  • const void * cause β€” the thing that did this. the culprit. the perpetrator πŸ™ˆ
  • const char * message β€” the human-readable part, so you can, like, actually read it πŸ’–

🌸 Detailed Description 🌸

okay so. this is the verbose error structure definition ✨ like, this is the one that comes with receipts.

Normally applications allocate this object, and the PMDs fill it in. The message points to a constant string β€” meaning the application does NOT need to free it, no cap, put the free() down 😌

BUT. and this is the important bit, listen up bestie πŸ‘‘

That pointer is only valid as long as its associated DPDK port remains configured. Like, the moment you close the underlying device or unload the PMD? invalidated. gone. expired. the vibe check failed πŸ’€ So don't go holding onto that pointer like it's a situationship you can text back in three weeks.

Also β€” and I cannot stress this enough β€” both cause and message may be NULL regardless of the error type. Yeah. Even if the type says something is wrong, those fields can still just be like... nothing. ghosted. πŸ«₯

Definition lives at line 4378 of file rte_flow.h πŸ“


πŸ”₯ Field Documentation πŸ”₯

πŸ’œ enum rte_flow_error_type type

cause field and error types β€” like, the ~categories~ of what went down.

Definition at line 4379 of file rte_flow.h.

πŸ“ const void* cause

object responsible for the error. the one who did this. the main character of the problem 😀

Definition at line 4380 of file rte_flow.h.

🧚 const char* message

human-readable error message. yes bestie, human-readable, unlike some error codes we could name 🌈

Definition at line 4381 of file rte_flow.h.


🌟 Author 🌟

Generated automatically by Doxygen for DPDK from the source code. not a human, not a girlboss, just a doc generator doing its thing πŸ€–βœ¨


okay that's the whole page bestie, hope this was giving enlightenment πŸ’– This little scroll of knowledge is served up fresh from DPDK, Version 25.11.3, and that's the whole rte_flow_error(3) situation β€” mwah, slay, go forth and debug πŸŽ€πŸ‘‘πŸ¦‹

πŸ“¦ where this page comes from