FD.io VPP  v20.09-64-g4f7b92f0a
Vector Packet Processing
af_xdp.bpf.c File Reference
+ Include dependency graph for af_xdp.bpf.c:

Go to the source code of this file.

Macros

#define DEBUG_PRINT(fmt, ...)
 
#define ntohs(x)   __constant_ntohs(x)
 

Functions

int xdp_sock_prog (struct xdp_md *ctx)
 

Variables

struct bpf_map_def xsks_map
 

Macro Definition Documentation

◆ DEBUG_PRINT

#define DEBUG_PRINT (   fmt,
  ... 
)

Definition at line 26 of file af_xdp.bpf.c.

◆ ntohs

#define ntohs (   x)    __constant_ntohs(x)

Definition at line 29 of file af_xdp.bpf.c.

Function Documentation

◆ xdp_sock_prog()

int xdp_sock_prog ( struct xdp_md *  ctx)

Definition at line 40 of file af_xdp.bpf.c.

Variable Documentation

◆ xsks_map

struct bpf_map_def xsks_map
Initial value:
= {
.type = BPF_MAP_TYPE_XSKMAP,
.key_size = sizeof(int),
.value_size = sizeof(int),
.max_entries = 64,
}

Definition at line 32 of file af_xdp.bpf.c.