FD.io VPP  v21.10.1-2-g0a485f517
Vector Packet Processing
crc32_5tuple.c File Reference
+ Include dependency graph for crc32_5tuple.c:

Go to the source code of this file.

Data Structures

union  crc32c_5tuple_key_t
 

Functions

static_always_inline void compute_ip6_key (ip6_header_t *ip, crc32c_5tuple_key_t *k)
 
static_always_inline void compute_ip4_key (ip4_header_t *ip, crc32c_5tuple_key_t *k)
 
static_always_inline void compute_ip_key (void *p, crc32c_5tuple_key_t *key)
 
void vnet_crc32c_5tuple_ip_func (void **p, u32 *hash, u32 n_packets)
 
static_always_inline void compute_ethernet_key (void *p, crc32c_5tuple_key_t *key)
 
void vnet_crc32c_5tuple_ethernet_func (void **p, u32 *hash, u32 n_packets)
 
 VNET_REGISTER_HASH_FUNCTION (crc32c_5tuple, static)
 

Variables

static const u8 l4_mask_bits [256]
 

Function Documentation

◆ compute_ethernet_key()

static_always_inline void compute_ethernet_key ( void *  p,
crc32c_5tuple_key_t key 
)

Definition at line 120 of file crc32_5tuple.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ compute_ip4_key()

static_always_inline void compute_ip4_key ( ip4_header_t ip,
crc32c_5tuple_key_t k 
)

Definition at line 54 of file crc32_5tuple.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ compute_ip6_key()

static_always_inline void compute_ip6_key ( ip6_header_t ip,
crc32c_5tuple_key_t k 
)

Definition at line 42 of file crc32_5tuple.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ compute_ip_key()

static_always_inline void compute_ip_key ( void *  p,
crc32c_5tuple_key_t key 
)

Definition at line 68 of file crc32_5tuple.c.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ vnet_crc32c_5tuple_ethernet_func()

void vnet_crc32c_5tuple_ethernet_func ( void **  p,
u32 hash,
u32  n_packets 
)

Definition at line 155 of file crc32_5tuple.c.

+ Here is the call graph for this function:

◆ vnet_crc32c_5tuple_ip_func()

void vnet_crc32c_5tuple_ip_func ( void **  p,
u32 hash,
u32  n_packets 
)

Definition at line 77 of file crc32_5tuple.c.

+ Here is the call graph for this function:

◆ VNET_REGISTER_HASH_FUNCTION()

VNET_REGISTER_HASH_FUNCTION ( crc32c_5tuple  ,
static   
)

Variable Documentation

◆ l4_mask_bits

const u8 l4_mask_bits[256]
static
Initial value:
= {
[IP_PROTOCOL_ICMP] = 16, [IP_PROTOCOL_IGMP] = 8,
[IP_PROTOCOL_TCP] = 32, [IP_PROTOCOL_UDP] = 32,
[IP_PROTOCOL_IPSEC_ESP] = 32, [IP_PROTOCOL_IPSEC_AH] = 32,
[IP_PROTOCOL_ICMP6] = 16,
}

Definition at line 34 of file crc32_5tuple.c.