|
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 .
| SEC::__type | ( | key | , |
| EthXdpLocator | ) |
| SEC::__type | ( | key | , |
| int32_t | ) |
| SEC::__type | ( | value | , |
| int32_t | ) |
| SEC::__type | ( | value | , |
| uint32_t | ) |
| SEC::__uint | ( | max_entries | , |
| 1024 | ) |
| SEC::__uint | ( | max_entries | , |
| 4 | ) |
| SEC::__uint | ( | type | , |
| BPF_MAP_TYPE_HASH | ) |
| SEC::__uint | ( | type | , |
| BPF_MAP_TYPE_XSKMAP | ) |
| struct @271136140246114125124255376061373112371100340253 SEC | ( | ".maps" | ) |
| SEC | ( | "xdp" | ) |