NDN-DPDK
High-Speed Named Data Networking Forwarder
Loading...
Searching...
No Matches
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]

SEC::__type ( key ,
EthXdpLocator  )

◆ __type() [2/4]

SEC::__type ( key ,
int32_t  )

◆ __type() [3/4]

SEC::__type ( value ,
int32_t  )

◆ __type() [4/4]

SEC::__type ( value ,
uint32_t  )

◆ __uint() [1/4]

SEC::__uint ( max_entries ,
1024  )

◆ __uint() [2/4]

SEC::__uint ( max_entries ,
4  )

◆ __uint() [3/4]

SEC::__uint ( type ,
BPF_MAP_TYPE_HASH  )

◆ __uint() [4/4]

SEC::__uint ( type ,
BPF_MAP_TYPE_XSKMAP  )

◆ SEC() [1/2]

struct @271136140246114125124255376061373112371100340253 SEC ( ".maps" )

◆ SEC() [2/2]

SEC ( "xdp" )