|
NDN-DPDK
High-Speed Named Data Networking Forwarder
|
Functions | |
| N_LOG_INIT (FwFwd) | |
| uint32_t | SgRandInt (SgCtx *ctx0, uint32_t max) |
| Generate a random integer. More... | |
| void | SgTriggerTimer (Pit *pit, PitEntry *pitEntry, uintptr_t fwd0) |
| bool | SgSetTimer (SgCtx *ctx0, TscDuration after) |
| Set a timer to invoke strategy after a duration. More... | |
| const struct rte_bpf_xsym * | SgGetXsyms (uint32_t *nXsyms) |
| Obtain external symbols available to strategy dataplane eBPF programs. More... | |
| N_LOG_INIT | ( | FwFwd | ) |
| const struct rte_bpf_xsym* SgGetXsyms | ( | uint32_t * | nXsyms | ) |
Obtain external symbols available to strategy dataplane eBPF programs.
| uint32_t SgRandInt | ( | SgCtx * | ctx, |
| uint32_t | max | ||
| ) |
Generate a random integer.
| max | exclusive maximum. |
| bool SgSetTimer | ( | SgCtx * | ctx, |
| TscDuration | after | ||
| ) |
Set a timer to invoke strategy after a duration.
| after | duration in TSC unit, cannot exceed PIT entry expiration time. |
SGEVT_DATA .Strategy program will be invoked again with SGEVT_TIMER after after . However, the timer would be cancelled if strategy program is invoked for any other event, a different timer is set, or the strategy choice has been changed.