DPDK  23.07.0
Typedefs | Functions
rte_swx_keycmp.h File Reference
#include <stdint.h>
#include <string.h>

Go to the source code of this file.

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

Definition in file rte_swx_keycmp.h.

Typedef Documentation

◆ rte_swx_keycmp_func_t

typedef uint32_t(* rte_swx_keycmp_func_t) (void *key1, void *key2, uint32_t key_size)

Key comparison function prototype

Parameters
[in]key1First key to compare. Must be non-NULL.
[in]key2Second key to compare. Must be non-NULL.
[in]key_sizeKey size in bytes.
Returns
0 when keys are different, 1 when keys are equal.

Definition at line 32 of file rte_swx_keycmp.h.

Function Documentation

◆ rte_swx_keycmp_func_get()

rte_swx_keycmp_func_t rte_swx_keycmp_func_get ( uint32_t  key_size)

Key comparison function get

Parameters
[in]key_sizeKey size in bytes.
Returns
Key comparison function for the given key size