P4C
The P4 Compiler
Loading...
Searching...
No Matches
bpf_table Struct Reference

A helper structure used to describe attributes. More...

#include <ebpf_registry.h>

Public Attributes

struct bpf_mapbpf_map
 
unsigned int key_size
 
unsigned int max_entries
 
char * name
 
unsigned int type
 
unsigned int value_size
 

Detailed Description

A helper structure used to describe attributes.

This structure describes various properties of the ebpf table such as key and value size and the maximum amount of entries possible. In userspace, this space is theoretically unlimited. This table definition points to an actual hashmap managed by uthash, the relation is many-to-one. "name" should not exceed VAR_SIZE. Functions using bpf_table also assume that "name" is a conventional null-terminated string.

Member Data Documentation

◆ bpf_map

struct bpf_map* bpf_table::bpf_map

◆ key_size

unsigned int bpf_table::key_size

◆ max_entries

unsigned int bpf_table::max_entries

◆ name

char* bpf_table::name

◆ type

unsigned int bpf_table::type

◆ value_size

unsigned int bpf_table::value_size