---
name: "rte_swx_keycmp.h"
section: "3"
platform: "linux"
package: "dpdk-doc"
version: "24.11.4-0+deb13u1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/rte_swx_keycmp.h"
---

# rte\_swx\_keycmp.h(3)

## NAME

rte\_swx\_keycmp.h

## SYNOPSIS

`#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

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)

Key comparison function prototype

**Parameters**

*key1* First key to compare. Must be non-NULL. \
 *key2* Second key to compare. Must be non-NULL. \
 *key\_size* Key size in bytes.

**Returns**

0 when keys are different, 1 when keys are equal.

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

**Parameters**

*key\_size* Key size in bytes.

**Returns**

Key comparison function for the given key size

## Author

Generated automatically by Doxygen for DPDK from the source code.
