|
NDN-DPDK
High-Speed Named Data Networking Forwarder
|
#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") | |
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 .
| @107::__type | ( | key | , |
| EthXdpLocator | |||
| ) |
| @106::__type | ( | key | , |
| int32_t | |||
| ) |
| @106::__type | ( | value | , |
| int32_t | |||
| ) |
| @107::__type | ( | value | , |
| uint32_t | |||
| ) |
| @107::__uint | ( | max_entries | , |
| 1024 | |||
| ) |
| @106::__uint | ( | max_entries | , |
| 4 | |||
| ) |
| @107::__uint | ( | type | , |
| BPF_MAP_TYPE_HASH | |||
| ) |
| @106::__uint | ( | type | , |
| BPF_MAP_TYPE_XSKMAP | |||
| ) |
| struct @107 SEC | ( | ".maps" | ) |
| SEC | ( | "xdp" | ) |