rte_swx_keycmp.h(3)
π rte_swx_keycmp.h β like, the key-comparison girlies of DPDK π
okay bestie, so this is rte_swx_keycmp.h(3), a whole Library Functions Manual situation, and yes it's giving "small header, big personality." It lives in the DPDK house. Come sit with me. π«Ά
β¨ NAME β¨
rte_swx_keycmp.h β that's it, that's the name, she's lowkey mysterious like that. π
πΈ SYNOPSIS πΈ
Pull her in like this:
#include <stdint.h>
#include <string.h>
π Typedefs
typedef uint32_t(* rte_swx_keycmp_func_t) (void *key1, void *key2,
uint32_t key_size)
π¦ Functions
rte_swx_keycmp_func_t rte_swx_keycmp_func_get (uint32_t key_size)
π Detailed Description π
RTE SWX Key Comparison Functions β the whole vibe of the file, fr fr. That's the summary. Iconic. β¨
Definition in file rte_swx_keycmp.h.
π Typedef Documentation π
typedef uint32_t(* rte_swx_keycmp_func_t) (void *key1, void *key2, uint32_t key_size)
not me introducing you to the Key comparison function prototype β she's the blueprint, the main character energy of this whole header. π
Parameters
key1β First key to compare. Must be non-NULL. (Bestie. Do NOT passNULL. π)key2β Second key to compare. Must be non-NULL. (Same energy. Non-negotiable. π)key_sizeβ Key size in bytes.
Returns
0when keys are different,1when keys are equal. Periodt. No in-between, she's a binary queen. π
Definition at line 31 of file rte_swx_keycmp.h.
π Function Documentation π
rte_swx_keycmp_func_t rte_swx_keycmp_func_get (uint32_t key_size)
Key comparison function get β she fetches you a key comparison function, based on how big your key is. Lowkey the plug. π₯
Parameters
key_sizeβ Key size in bytes.
Returns
- Key comparison function for the given key size. Slay, hand it to you on a silver platter. β
πΈ Author πΈ
Generated automatically by Doxygen for DPDK from the source code. (Yes the robot wrote it, but she still ate. π€π)
and that's the whole page, bestie!! π₯° no cap, every flag, param and return value stayed exactly where it belongs β we just gave it a glow-up β¨
bye babes, go compare some keys responsibly ππ¦
DPDK β Version 25.11.3 π rte_swx_keycmp.h(3) π mwah, talk laterrr π
π
π¦ 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