#include "cs-struct.h"
#include "pcc-entry.h"
#include "pit-struct.h"
Go to the source code of this file.
|
bool | Pcct_Init (Pcct *pcct, const char *id, uint32_t maxEntries, int numaSocket) |
| Initialize keyHt and tokenHt. More...
|
|
void | Pcct_Clear (Pcct *pcct) |
| Clear keyHt and tokenHt, and free cached Data. More...
|
|
PccEntry * | Pcct_Insert (Pcct *pcct, const PccSearch *search, bool *isNew) |
| Insert or find an entry. More...
|
|
void | Pcct_Erase (Pcct *pcct, PccEntry *entry) |
| Erase an entry. More...
|
|
uint64_t | Pcct_AddToken (Pcct *pcct, PccEntry *entry) |
| Assign a token to an entry. More...
|
|
void | Pcct_RemoveToken (Pcct *pcct, PccEntry *entry) |
| Clear the token on an entry. More...
|
|
PccEntry * | Pcct_FindByToken (const Pcct *pcct, uint64_t token) |
| Find an entry by token. More...
|
|
void | PcctEraseBatch_EraseBurst_ (PcctEraseBatch *peb) |
|
◆ PCCT_ERASE_BURST
#define PCCT_ERASE_BURST 32 |
◆ Pcct
The PIT-CS Composite Table (PCCT).
◆ PcctEraseBatch
Context for erasing several PCC entries.
◆ Pcct_AddToken()
Assign a token to an entry.
- Returns
- New or existing token.
◆ Pcct_Clear()
void Pcct_Clear |
( |
Pcct * |
pcct | ) |
|
Clear keyHt and tokenHt, and free cached Data.
- Postcondition
- Pcct mempool can be deallocated.
◆ Pcct_Erase()
Erase an entry.
- See also
- PcctEraseBatch
◆ Pcct_FindByToken()
PccEntry* Pcct_FindByToken |
( |
const Pcct * |
pcct, |
|
|
uint64_t |
token |
|
) |
| |
Find an entry by token.
- Parameters
-
token | the token, only lower 48 bits are significant. |
◆ Pcct_Init()
bool Pcct_Init |
( |
Pcct * |
pcct, |
|
|
const char * |
id, |
|
|
uint32_t |
maxEntries, |
|
|
int |
numaSocket |
|
) |
| |
Initialize keyHt and tokenHt.
- Parameters
-
id | memzone identifier, must be unique. |
maxEntries | PCCT capacity; hashtable capacity will be calculated accordingly. |
- Returns
- whether success. Error code is in
rte_errno
.
◆ Pcct_Insert()
Insert or find an entry.
- Parameters
-
[out] | isNew | whether the entry is new |
- Return values
-
◆ Pcct_RemoveToken()
Clear the token on an entry.
◆ PcctEraseBatch_EraseBurst_()