FD.io VPP  v21.06-3-gbb25fbf28
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.