NDN-DPDK
High-Speed Named Data Networking Forwarder
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions
redir.c File Reference
#include "api.h"

Functions

struct {
SEC (".maps")
 
 __uint (type, BPF_MAP_TYPE_XSKMAP)
 
 __uint (max_entries, 4)
 
 __type (key, int32_t)
 
 __type (value, int32_t)
 
 __uint (type, BPF_MAP_TYPE_HASH)
 
 __uint (max_entries, 1024)
 
 __type (key, EthXdpLocator)
 
 __type (value, uint32_t)
 
 SEC ("xdp")
 

Detailed Description

The redir XDP program redirects packets matching face_map to an XSK.

The Ethernet header of a matching packet is overwritten with EthXdpHdr that includes the uint32 value in the face_map .

Function Documentation

◆ __type() [1/4]

@107::__type ( key  ,
EthXdpLocator   
)

◆ __type() [2/4]

@106::__type ( key  ,
int32_t   
)

◆ __type() [3/4]

@106::__type ( value  ,
int32_t   
)

◆ __type() [4/4]

@107::__type ( value  ,
uint32_t   
)

◆ __uint() [1/4]

@107::__uint ( max_entries  ,
1024   
)

◆ __uint() [2/4]

@106::__uint ( max_entries  ,
 
)

◆ __uint() [3/4]

@107::__uint ( type  ,
BPF_MAP_TYPE_HASH   
)

◆ __uint() [4/4]

@106::__uint ( type  ,
BPF_MAP_TYPE_XSKMAP   
)

◆ SEC() [1/2]

struct @107 SEC ( ".maps"  )

◆ SEC() [2/2]

SEC ( "xdp"  )