NDN-DPDK
High-Speed Named Data Networking Forwarder
Loading...
Searching...
No Matches
strategy Directory Reference

Files

 
api.h
 
delay.c
 
empty.c
 
fastroute.c
 
multicast.c
 
reject.c
 
roundrobin.c
 
sequential.c
 
weighted.c

Detailed Description

ndn-dpdk/bpf/strategy

This directory contains forwarding strategies, implemented using the strategy API defined in api.h.

To implement a strategy named foo:

1. Add foo.c, and include api.h. 2. Implement the SgMain function as declared in api.h. 3. If the strategy accepts JSON parameters, implement the SgInit function and provide a JSON schema via SGINIT_SCHEMA macro. 4. All other functions must be marked as SUBROUTINE.