NDN-DPDK
High-Speed Named Data Networking Forwarder
Loading...
Searching...
No Matches
pktqueue.h File Reference
#include "common.h"

Go to the source code of this file.

Data Structures

struct  PktQueue
 Thread-safe packet queue. More...
struct  PktQueuePopResult
 Packet queue pop result. More...

Typedefs

typedef enum __rte_packed_begin PktQueuePopAct PktQueuePopAct
 Packet queue dequeue method.
typedef struct PktQueue PktQueue
 Thread-safe packet queue.
typedef struct PktQueuePopResult PktQueuePopResult
 Packet queue pop result.
typedef PktQueuePopResult(* PktQueue_PopFunc) (PktQueue *q, struct rte_mbuf *pkts[], uint32_t count, TscTime now)

Variables

 PktQueuePopActPlain
 PktQueuePopActDelay
 PktQueuePopActCoDel
const PktQueue_PopFunc PktQueue_PopJmp []

Typedef Documentation

◆ PktQueue

typedef struct PktQueue PktQueue

Thread-safe packet queue.

It can operate in one of these modes:

  • plain mode: packets are dequeued as fast as possible.
  • delay mode: packets are dequeued no earlier than q->target after it's received.
  • CoDel mode: PktQueuePopResult.drop is set according to CoDel algorithm.

◆ PktQueue_PopFunc

typedef PktQueuePopResult(* PktQueue_PopFunc) (PktQueue *q, struct rte_mbuf *pkts[], uint32_t count, TscTime now)

◆ PktQueuePopAct

enum __rte_packed_begin PktQueuePopAct

Packet queue dequeue method.

◆ PktQueuePopResult

typedef struct PktQueuePopResult PktQueuePopResult

Packet queue pop result.

Variable Documentation

◆ PktQueue_PopJmp

const PktQueue_PopFunc PktQueue_PopJmp[]
extern

◆ PktQueuePopActCoDel

PktQueuePopActCoDel

◆ PktQueuePopActDelay

PktQueuePopActDelay

◆ PktQueuePopActPlain

PktQueuePopActPlain