|
NDN-DPDK
High-Speed Named Data Networking Forwarder
|
Go to the source code of this file.
Macros | |
| #define | PIT_MAX_LIFETIME 120000 |
| Maximum PIT entry lifetime (millis). More... | |
Functions | |
| void | Pit_Init (Pit *pit) |
| Constructor. More... | |
| void | Pit_SetSgTimerCb (Pit *pit, Pit_SgTimerCb cb, uintptr_t ctx) |
| Set callback when strategy timer expires. More... | |
| PitInsertResult | Pit_Insert (Pit *pit, Packet *npkt, const FibEntry *fibEntry) |
| Insert or find a PIT entry for the given Interest. More... | |
| void | Pit_Erase (Pit *pit, PitEntry *entry) |
| Erase a PIT entry. More... | |
| void | Pit_EraseSatisfied (Pit *pit, PitFindResult res) |
| Erase satisfied PIT entries but retain the PccEntry. More... | |
| PitFindResult | Pit_FindByData (Pit *pit, Packet *npkt, uint64_t token) |
| Find PIT entries matching a Data. More... | |
| PitEntry * | Pit_FindByNack (Pit *pit, Packet *npkt, uint64_t token) |
| Find PIT entry matching a Nack. More... | |
| #define PIT_MAX_LIFETIME 120000 |
Maximum PIT entry lifetime (millis).
Erase a PIT entry.
entry is no longer valid. | void Pit_EraseSatisfied | ( | Pit * | pit, |
| PitFindResult | res | ||
| ) |
Erase satisfied PIT entries but retain the PccEntry.
| res | find result, must not have PIT_FIND_NEED_DIGEST. |
| PitFindResult Pit_FindByData | ( | Pit * | pit, |
| Packet * | npkt, | ||
| uint64_t | token | ||
| ) |
Find PIT entries matching a Data.
| npkt | Data packet. |
| token | PCC token of the packet. |
Find PIT entry matching a Nack.
| npkt | Nack packet. |
| token | PCC token of the packet. |
| void Pit_Init | ( | Pit * | pit | ) |
Constructor.
| PitInsertResult Pit_Insert | ( | Pit * | pit, |
| Packet * | npkt, | ||
| const FibEntry * | fibEntry | ||
| ) |
Insert or find a PIT entry for the given Interest.
| npkt | Interest packet. |
The PIT-CS lookup includes forwarding hint. PInterest's activeFh field indicates which fwhint is in use, and setting it to -1 disables fwhint.
If there is a CS match, return the CS entry. If there is a PIT match, return the PIT entry. Otherwise, unless the PCCT is full, insert and initialize a PIT entry.
When a new PIT entry is inserted, the PIT entry owns npkt but does not free it, so the caller may continue using it until PitEntry_InsertDn.
| void Pit_SetSgTimerCb | ( | Pit * | pit, |
| Pit_SgTimerCb | cb, | ||
| uintptr_t | ctx | ||
| ) |
Set callback when strategy timer expires.