NDN-DPDK
High-Speed Named Data Networking Forwarder
|
#include "api.h"
Data Structures | |
struct | FibEntryInfo |
Typedefs | |
typedef struct FibEntryInfo | FibEntryInfo |
Functions | |
SUBROUTINE uint64_t | RxInterest (SgCtx *ctx) |
uint64_t | SgMain (SgCtx *ctx) |
The strategy dataplane program. More... | |
uint64_t | SgInit (SgCtx *ctx) |
The strategy initialization procedure. More... | |
SGINIT_SCHEMA ({ "$schema":"http://json-schema.org/draft-07/schema#", "type":"object", "properties":{ "weights":{ "description":"nexthop weights", "type":"array", "minItems":1, "items":{"type":"integer", "minimum":1, "maximum":255} } }, "required":["weights"], "additionalProperties":false }) | |
The weighted strategy randomly picks a nexthop by assigned weights. If the chosen nexthop is unusable (face down, supression, etc), packet is lost. Initial and retransmitted Interests are treated the same.
typedef struct FibEntryInfo FibEntryInfo |
SUBROUTINE uint64_t RxInterest | ( | SgCtx * | ctx | ) |
uint64_t SgInit | ( | SgCtx * | ctx | ) |
The strategy initialization procedure.
A strategy should implement this function if it accepts parameters. This is called when a strategy is activated on a FIB entry. It should populate FIB entry scratch area according to JSON parameters.
SGINIT_SCHEMA | ( | { "$schema":"http://json-schema.org/draft-07/schema#", "type":"object", "properties":{ "weights":{ "description":"nexthop weights", "type":"array", "minItems":1, "items":{"type":"integer", "minimum":1, "maximum":255} } }, "required":["weights"], "additionalProperties":false } | ) |
uint64_t SgMain | ( | SgCtx * | ctx | ) |
The strategy dataplane program.
Every strategy must implement this function.