DPDK  /usr/bin/make-f/build/dpdk-Zgbzfx/dpdk-16.11.8/mk/rte.sdkconfig.mkshowversion
Functions
rte_byteorder.h File Reference
#include <stdint.h>
#include <endian.h>
#include <rte_common.h>
+ Include dependency graph for rte_byteorder.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

static uint16_t rte_bswap16 (uint16_t _x)
 
static uint32_t rte_bswap32 (uint32_t x)
 
static uint64_t rte_bswap64 (uint64_t x)
 
static uint16_t rte_cpu_to_le_16 (uint16_t x)
 
static uint32_t rte_cpu_to_le_32 (uint32_t x)
 
static uint64_t rte_cpu_to_le_64 (uint64_t x)
 
static uint16_t rte_cpu_to_be_16 (uint16_t x)
 
static uint32_t rte_cpu_to_be_32 (uint32_t x)
 
static uint64_t rte_cpu_to_be_64 (uint64_t x)
 
static uint16_t rte_le_to_cpu_16 (uint16_t x)
 
static uint32_t rte_le_to_cpu_32 (uint32_t x)
 
static uint64_t rte_le_to_cpu_64 (uint64_t x)
 
static uint16_t rte_be_to_cpu_16 (uint16_t x)
 
static uint32_t rte_be_to_cpu_32 (uint32_t x)
 
static uint64_t rte_be_to_cpu_64 (uint64_t x)
 

Detailed Description

Byte Swap Operations

This file defines a generic API for byte swap operations. Part of the implementation is architecture-specific.

Definition in file rte_byteorder.h.

Function Documentation

◆ rte_bswap16()

static uint16_t rte_bswap16 ( uint16_t  _x)
static

◆ rte_bswap32()

static uint32_t rte_bswap32 ( uint32_t  x)
static

Swap bytes in a 32-bit value.

Examples:
ip_pipeline/init.c, ip_pipeline/pipeline/pipeline_routing_be.c, and l3fwd-acl/main.c.

◆ rte_bswap64()

static uint64_t rte_bswap64 ( uint64_t  x)
static

Swap bytes in a 64-bit value.

Examples:
ip_pipeline/pipeline/pipeline_routing_be.c.

◆ rte_cpu_to_le_16()

static uint16_t rte_cpu_to_le_16 ( uint16_t  x)
static

Convert a 16-bit value from CPU order to little endian.

◆ rte_cpu_to_le_32()

static uint32_t rte_cpu_to_le_32 ( uint32_t  x)
static

Convert a 32-bit value from CPU order to little endian.

◆ rte_cpu_to_le_64()

static uint64_t rte_cpu_to_le_64 ( uint64_t  x)
static

Convert a 64-bit value from CPU order to little endian.

◆ rte_cpu_to_be_16()

static uint16_t rte_cpu_to_be_16 ( uint16_t  x)
static

◆ rte_cpu_to_be_32()

static uint32_t rte_cpu_to_be_32 ( uint32_t  x)
static

◆ rte_cpu_to_be_64()

static uint64_t rte_cpu_to_be_64 ( uint64_t  x)
static

Convert a 64-bit value from CPU order to big endian.

◆ rte_le_to_cpu_16()

static uint16_t rte_le_to_cpu_16 ( uint16_t  x)
static

Convert a 16-bit value from little endian to CPU order.

◆ rte_le_to_cpu_32()

static uint32_t rte_le_to_cpu_32 ( uint32_t  x)
static

Convert a 32-bit value from little endian to CPU order.

◆ rte_le_to_cpu_64()

static uint64_t rte_le_to_cpu_64 ( uint64_t  x)
static

Convert a 64-bit value from little endian to CPU order.

◆ rte_be_to_cpu_16()

static uint16_t rte_be_to_cpu_16 ( uint16_t  x)
static

◆ rte_be_to_cpu_32()

static uint32_t rte_be_to_cpu_32 ( uint32_t  x)
static

◆ rte_be_to_cpu_64()

static uint64_t rte_be_to_cpu_64 ( uint64_t  x)
static

Convert a 64-bit value from big endian to CPU order.