NDN-DPDK
High-Speed Named Data Networking Forwarder
|
Functions | |
N_LOG_INIT (DiskStore) | |
void | DiskStore_PutData (DiskStore *store, uint64_t slotID, Packet *npkt, BdevStoredPacket *sp) |
Store a Data packet. More... | |
void | DiskStore_GetData (DiskStore *store, uint64_t slotID, Packet *npkt, struct rte_mbuf *dataBuf, BdevStoredPacket *sp) |
Retrieve a Data packet. More... | |
void DiskStore_GetData | ( | DiskStore * | store, |
uint64_t | slotID, | ||
Packet * | npkt, | ||
struct rte_mbuf * | dataBuf, | ||
BdevStoredPacket * | sp | ||
) |
Retrieve a Data packet.
slotID | disk slot number. |
npkt | an Interest packet. DiskStore takes ownership until callback. |
dataBuf | a uniquely owned, unsegmented, direct mbuf for Data packet. DiskStore takes ownership until callback. |
sp | same BdevStoredPacket used during PutData, will be copied. |
This function asynchronously reads from a specified slot of the underlying disk, and parses the content as a Data packet. Upon success, it assigns interest->diskSlot
and interest->diskData
. Upon failure, it assigns interest->diskSlot
and clears interest->diskData
. It then calls store->getDataCb
with the npkt
.
This function may be invoked on any thread, including non-SPDK thread.
void DiskStore_PutData | ( | DiskStore * | store, |
uint64_t | slotID, | ||
Packet * | npkt, | ||
BdevStoredPacket * | sp | ||
) |
Store a Data packet.
slotID | disk slot number; slot 0 cannot be used. |
npkt | a Data packet. DiskStore takes ownership. |
sp | output of a successful DiskStore_PrepareData . |
This function may be invoked on any thread, including non-SPDK thread.
N_LOG_INIT | ( | DiskStore | ) |
void(* begin) (DiskStore *store, DiskStoreRequest *req, Packet *npkt, uint64_t slotID) | ( | DiskStore * | store, |
DiskStoreRequest * | req, | ||
Packet * | npkt, | ||
uint64_t | slotID | ||
) |
void(* finish) (DiskStore *store, Packet *npkt, int res) | ( | DiskStore * | store, |
Packet * | npkt, | ||
int | res | ||
) |
const char* verb |