NDN-DPDK
High-Speed Named Data Networking Forwarder
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Data Structures | Typedefs | Enumerations | Variables
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 PktQueuePopAct PktQueuePopAct
 Packet queue dequeue method. More...
 
typedef struct PktQueue PktQueue
 Thread-safe packet queue. More...
 
typedef struct PktQueuePopResult PktQueuePopResult
 Packet queue pop result. More...
 
typedef PktQueuePopResult(* PktQueue_PopFunc) (PktQueue *q, struct rte_mbuf *pkts[], uint32_t count, TscTime now)
 

Enumerations

enum  PktQueuePopAct { PktQueuePopActPlain , PktQueuePopActDelay , PktQueuePopActCoDel }
 Packet queue dequeue method. More...
 

Variables

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

Packet queue dequeue method.

◆ PktQueuePopResult

Packet queue pop result.

Enumeration Type Documentation

◆ PktQueuePopAct

Packet queue dequeue method.

Enumerator
PktQueuePopActPlain 
PktQueuePopActDelay 
PktQueuePopActCoDel 

Variable Documentation

◆ PktQueue_PopJmp

const PktQueue_PopFunc PktQueue_PopJmp[]
extern